Jump to content

Recommended Posts

Posted
Does anyone have sample code showing how to add input filtering on Thermocouple inputs. I have followed all the required hardware installation requirements and still get irratic readings. I see fluctuations of 20-25F even with the inputs shorted which should show a stable ambient temperature. The T/C module is in slot 1 of a 10 slot base with a 350 CPU.
Posted
I'm no guru for PLC Direct, but if shorted terminals fluctuate 20 F then you've got someting really flaky in your setup. Just mho. As far as filtering the simplest filter on an analog input is to add a percentage of the new and 1 - percentage of the old to get the filtered reading. Math looks like follows: Filtered Reading = (0.25 * New Reading) + (0.75 * Previous Filtered Reading) You apply this logic after each new reading. The larger the percentage of new reading the less filtering.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...