Totalizing realtime flow

bobwithdana

Member
Join Date
Dec 2003
Location
california
Posts
239
I need to totalize real time flow in a contrologix processor. I have the analog flow at 0 to 150 Gallons per minute and need to totalize gallons.

I can do this with some ugly code. Was wondering if anyone has a clean way to do the math.

Thanks Bob
 
It akk depends in your version of RS5000. If you have the pro edition you can use the "Totalizer". If not then do a search here on totalize for various examples.
 
Thanks for the quick reply ken, Its 4/20 analog scaled 0 to 150 GPM. I am using a Bubble tube for the DP of the Weir level. We have the engineering specs on the height of the wier relating to flow over the wier. Problem is this method does not provide us with a pulse output so I have to figure out the math.
 
For an analog signal, I'd just run a simple accumulator in a periodic task. The task should be timed to be faster running than your expected worst-case delta-flow rate (but not faster than the analog module can update).

If you ran the task every 60,000 ms for example, than you just directly add the scaled signal to a totalizer register. If you run the task every 1,000 ms, you would divide the scaled signal (GPM) by 60 to get GPS, and add that into the totalizer register.

For any rate, the actual calculation would be:

Totalizer = Totalizer + (Scaled_Input * (Task_Period_MSec / 60,000))

Just set the register to zero with a one shot to clear it at any time.
 
Thanks guys, This is what I came up with using a 10 Msec periodic task.

-----------------------------------------------------
[CPT]----------------------- WEIR_FLOW.FLOW_TOTAL

WEIR_FLOW.SCALED/360000+WEIR_FLOW.FLOW_TOTAL
------------------------------------------------------



Thanks again

Bob
 

Similar Topics

Hello everyone! I've got something I'm trying to figure out and I'm possibly overthinking it. I've got a 25,000 gallon bulk chemical tank with an...
Replies
12
Views
2,178
Hello, all. I’ve worked with totalizers based on a flow meter. However, I am trying to use ladder logic on totalizing a tank based on volume. I...
Replies
1
Views
1,134
Is this reasonable to do? I am using a SLC 5/05 so there's no totalizing instruction, I think I have to make my own. Anybody done this, any...
Replies
14
Views
4,333
Hi, please i wish to do batch totalizing ( automatic flow control) i wish to use Endress+Hauser flow transmitter with Allen Bradley 1400 to do...
Replies
30
Views
6,005
Hey GE guys, wondering if any of you had any experience with getting the TOTALIZER instruction working in Proficy Machine Edition. Seems...
Replies
9
Views
3,729
Back
Top Bottom