How to average in a SLC

rojay

Member
Join Date
Sep 2011
Location
Cleveland
Posts
11
In this application I need to monitor duct pressure with an analog input, and control an air make up damper with an analog output to maintain a set-point. My problem is the input could fluxuate greatly. Is there any way to average this value?
 
I recommend trending it both filtered and unfiltered, and you might find averaging after a filter works best for such a sensitive reading as duct pressure which is libel to carry harmonics from the fans which are pulling/pushing against it...

Also, investigate filtering options in certain SLC input cards.

But when trending the signal in RSLogix, and comparing it to the results of the filtered signal, you can easier judge what you want your SLC control algorithm to "see" and select/adjust filter, average, time weighted average or some other combinations until it looks right.

Give us part numbers and details if you can for you input cards, SLC CPU, Software you're using ... as much as you can share will get great results here.

Paul
 
Thanks for the information everybody, this was very helpful. I appreciate the quick responses, the PLC community is a good one.
 
I had a problem with conveyor motors using a Micrologix 1100 that I averaged out with a sequencer and was wondering if your FIFO running average would be a better way to go.
 
Hmmm. I guess I don't have RSLogix on this PC yet. But for sure if Alaric linked you up with an averaging algorithm, it will work as advertised and not cause a problem. I can't imagine using a sequencer for this so I will have to peak at this code tomorrow if I get my panel building further along.
 

Similar Topics

Does this instruction calculate values during a single scan, or does it require number of scans based on element count in the array? For Example...
Replies
3
Views
108
I am working on a program in Cscape to take a pulse input from a flow meter and output an average of the last 5 minutes of flow and total flow to...
Replies
1
Views
570
I am storing values into an array. I am wanting to find an average of the highs and an average of the lows. Something like this... After 50...
Replies
36
Views
8,818
I need to keep a running pass/fail yield of the previous 5,000 parts produced. I have used this formula before to calculate average: AvgValue =...
Replies
6
Views
2,140
is it possible to capture a value while its constantly changing then taking its highest reading? I have a nozzle that sprays for 10 seconds. I...
Replies
14
Views
3,427
Back
Top Bottom