News:

  • June 09, 2026, 03:13:13 AM

Login with username, password and session length

Author Topic: digital s/w filter  (Read 8738 times)

bruce

  • Newbie
  • *
  • Posts: 2
digital s/w filter
« on: June 11, 2010, 11:56:16 AM »
has anyone worked out code for a filter in a pid loop. i have a lot of noise in my K thermo's coming back to my plc. loops are for high temp glass ovens.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: digital s/w filter
« Reply #1 on: June 11, 2010, 12:11:28 PM »
In DirectSOFT5, there are 2 IBoxes: FILTER and FILTERB.

FILTER: BCD
FILTERB: Binary

Both of these do a 1st-order filter on the specified Raw Data value using the specified time interval.

New = Old + ((Raw - Old)/FDC)
« Last Edit: June 11, 2010, 12:16:35 PM by Greg »
There are two types of people in the world; those that can extrapolate from incomplete data sets.

bruce

  • Newbie
  • *
  • Posts: 2
Re: digital s/w filter
« Reply #2 on: June 11, 2010, 12:37:53 PM »
thanks, i'll look for that and see how it works.
B