Flow Rate To Total Production

Kabir

Member
Join Date
Mar 2004
Posts
107
This the problem guys
I am installing flow meters at different sections of the plant to measure %loss in production.
Since the flow meters are there I also want to use them to produce figures of production over each shift.
I would think that I should integrate the flow rate in order to obtain this figure.

How exactly do I write the ladder logic for this application.

Hardware: Allen Bradley PLC5 Enhanced
Software: RSLogix5

And if there is anyone with this information I also wanted to know what are some of the common errors that exist with this system
 
Last edited:
Need some info here!

You are probably measuring instantaneous flow with your meters. I would suppose you are getting values of flow rate in some engineering units that are consistent with your plant needs. You should convert the instantaneous readings to mass flow and then totalize them. You can do the conversion this way:

Qm= D x Qvol

where Qm = mass flow rate
D = Fluid density (mass per unit volume)
Qvol = volume flow rate ( ie: what you are already measuring)

Once you have the mass flow rate, then just keep a running total of the amount in the PLC data table. Your PLC code should sample the flow rate at some rate that is consistent with your needs and you may want to do a trial and error method on that depending on how much your rate changes over time. If it is fairly constant, then you can sample fewer times than if it is changing rate quickly. Be sure to use consistent units in the calculation above or you may get oranges when you are wanting apples.
Some of my learned colleagues here will doubtless have other suggestions for you but this might get you started.
 
Analog flow indicators generate an output based on Quantity/Time. For instance Gil/Fortnight.

Once we know the engineering units range it's easy to build a totalizer. Here's an example.

For our example we'll assume that your flow meter output is in a less common range, say Liter/Minute.

1) Designate a subroutine for the calculation
2) Call that subroutine 1/sec (as an STI if possible)
3) Add the following rung to the subroutine

------------- F8:0 = F8:0 + (AnalogIn/60.0)

Since the sensor gives it's reading in minutes and we call the subroutine once/second we add 1/60th of the current reading to the total. This is the simplest method I know and there are going to be some overflow issues (eventually) with the floating point data.

If the flow meter output was in the range of ??/hour you'd divide the analog input value by 3600.0. If you change the STI resolution the denominator will change accordingly.

Oh yea, note that I divided the AnalogIn value by 60.0 (float) and not by 60 (int). Do this to force the PLC to perform the division using FP math.

Hope this helps,

Good Luck,

(8{)} ( .)
 
Most of the flow meters that I'm used to dealing with have more than one output. At my plant we use a pulse output to totalize, and a 4-20mA analog signal for flow rates. Uses more I/O, but is also easier to setup and trouble shoot.

Ken
 
FOR TOTAL PRODUCTION CALCULATION

Just measure the pulse input from flow meter and convert the pulse into kg as you can set the flow meter pulse to any value. then add this kg unit in data block and monitor it an op panel.thats all
 
Most of the flow meters that I'm used to dealing with have more than one output. At my plant we use a pulse output to totalize, and a 4-20mA analog signal for flow rates. Uses more I/O, but is also easier to setup and trouble shoot.

Ken
Could you please share a PLC program using cx-programmer to count the output pulse of a mass flow meter?
We have a refrigerant gas charging machine in our factory. I am trying a lot to understand the concept of the mass flow meter plc program but can't succeed.
I need help from an expert.
Any assistance regarding this issue would be appreciated.
 

Attachments

  • 1.JPG
    1.JPG
    56.4 KB · Views: 1
  • Counter input.JPG
    Counter input.JPG
    40.5 KB · Views: 1
  • Mass flow meter-2.JPG
    Mass flow meter-2.JPG
    49.4 KB · Views: 1

Similar Topics

I need to measure the volume of water used in during water intake phase of a CIP (washing program) in order to insure that there is a specific...
Replies
3
Views
4,321
OK then.... I've just been told the project going in has changed (no surprise, easily solved) but I've had a request to totalize the water going...
Replies
7
Views
2,782
Dear Friends, Is there a special function block in S7-300 which can be used to have a total counter value , from a flow rate value? For...
Replies
12
Views
6,091
Hi, The hardware is: Click Plc model # CO-O1DD1-O HMI model # S3ML-R magnetic-inductive flow meter model # FMM100-1001. I will set the flow meter...
Replies
4
Views
172
One of the engineers has asked me to add code to the PLC to calculate oil flow rate based on delta pressure, using the equation below: Flow rate...
Replies
13
Views
2,819
Back
Top Bottom