Averaging a analog signal (DL-450)

protec

Member
Join Date
Jul 2002
Location
Marion Indiana, USA
Posts
2
Hello Gurus,

I have an analog, D.P. sensor; The reading bounces between .4 & .56 Inches of water coming into V3000 (0-4095).

I need to use this signal in a PID loop so an average of the input over a 10 second time would be better to keep the PID from modulating it’s output too much.

I’m not sure how to take several readings and then average them in my Automation Direct PL-450 PLC.

Any comments, help etc. would be welcomed and appreciated!

Thanks, Mark

[email protected]
 
Instead of averaging I would used a first order digital filter.The form I usually use is:

Y0= (Y-1*K) +[x0*(1-K)]

Y0 New Output
Y-1 Last Output
x0 New Input
K Filter Constant

K must be between 0 and 1. Larger K provides more filtering.

Hope this helps.
Keith
 
This is the formula Kieth provided in DL-205 format. Note that when you filter you loose some response time and a minor amount of accuracy.
 

Similar Topics

Hi, I have a bit of PLC experience in Siemens and have unfortunately been blessed with working on Automation Studio and B&R which has been a big...
Replies
5
Views
1,331
I have a Flow meter that returns a 4-20 signal and the problem I have is the pump is a diaphram pump so theres alot of pulsing causing my...
Replies
19
Views
7,990
The PLC code calculates oil flow rate and outputs it on D420. It is represented on the HMI as a vertical bar. Problem is that the operator says...
Replies
33
Views
4,854
Hello, I am working with a laser encoder that is providing the speed of a fiber strand to our AB 1756-L61 PLC. In order to calculate the amount...
Replies
3
Views
3,082
Hi ;Configure A1s64AD card in slot 3 is as attached. This is averaging count. my signals are coming in at channel 3 and 4. There are spiking so i...
Replies
1
Views
1,623
Back
Top Bottom