series of math instructions to come up with avg flow

Snap25

Lifetime Supporting Member
Join Date
Dec 2014
Location
Michigan
Posts
237
How would one come up with an average flow from the live GPM from the flow meter? I have the SCP set up and can watch the live GPM but I have fluid going through a filter and when the average flow drops below a set point I would like to activate a filter backwash cleaning cycle. Thanks
 
How would one come up with an average flow from the live GPM from the flow meter? I have the SCP set up and can watch the live GPM but I have fluid going through a filter and when the average flow drops below a set point I would like to activate a filter backwash cleaning cycle. Thanks


You should better define your objective. "Average" flow can mean different things. There are multiple possibilities for deriving a running average, or for damping an input signal, which appears to be what you are seeking to accomplish. One method is to sum a fixed number of samples of the instantaneous flow rate and then divide that value by the number of samples taken.
 
test.png


?
 
what the main purpose your 'average' ?

what about your total per-shift/day ?

I would like an average flow when the fluid is going into a freshly clean filter in the filter chamber so I can set a low flow setpoint to stop the filteeing to do a filter sleeve cleanse and resetting the ave flow figure. Then resume the filtering and doing another avg flow calculation.
 
I would like an average flow when the fluid is going into a freshly clean filter in the filter chamber so I can set a low flow setpoint to stop the filteeing to do a filter sleeve cleanse and resetting the ave flow figure. Then resume the filtering and doing another avg flow calculation.

would it be better to look at the dp across the filter? dont shoot the messenger.:confused:
 
Use a timer to calculate a new average at the desired interval, and when the timer times out:
multiply the current average by the number of samples
add the current flow rate to the product
add one to the number of samples
divide the product by the new number of samples
the result is the new average

Use a second timer to terminate the calculation after the desired time has elapsed and zero the average and number of samples.
 
TJ are this standard process or additional process,

I'm not sure what you mean. It is "standard" math, though, nothing exotic.

New average = ((old average x old number of samples) + new sample) / new number of samples

It is done with simple four function capabilities. The only caution is you may need floating point to maintain accuracy and avoid overflows.
 
See this post for an example program for computing a running average. It should be a simple matter to convert it to flow. In ControlLogix you can simplify the example further with a FIFO and the AVE instruction.

On cooling tower filters we use a differential pressure switch to trigger a backwash. However, it turns out that the cycle is fairly periodic and predictable. The load on the filter is virtually constant, so we could just as well use a timer. I mention this because a DP switch or time based are options to consider.
 
Last edited:

Similar Topics

how to communicate FactoryTalk Optix and Mitsubishi Q Series. I want to know the details of that
Replies
0
Views
34
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
254
Hi, We couldn’t find anything specific, so am starting a new thread. I’m trying to migrate a config from a ML1400 to a micro820 & am experiencing...
Replies
1
Views
90
Does anyone know what the data transfer rate for this series of CompactLogix PLC's? 1769-L24ER-QB1B to be exact. Cheers.
Replies
1
Views
97
Back
Top Bottom