This is a PLC Ladder Logic to calculate the flow rate and also count the total flow or totalizer.
By using some math, bit and comparator functions, prepare a PLC program that can calculate the flow rate of gas and also count the total flow.
In this example, we are assuming the transmitter output 4-20 mA is equivalent to “Differential Pressure” instead of direct flow reading. So we are applying the square root function in PLC to derive the equivalent flow rate from this measured “differential pressure”.
In this Network 1, we are converting Analog Signal of the Differential Pressure Transmitter which is in 4 – 20 mA to digital value 0-1000 Pa.
In the Network 2, We are finding Flow Rate by applying formula( Flow Rate = k √∆P ). Where k is the constant which is 10000 in my case and ∆P is the differential pressure in Pascal, which we are getting from the above network.
So we are using square root block and multiplication block to achieve this formula.
The unit of flow rate is m3/hr.
Now this is tricky network, if you count the total flow then you must do increment the flow rate at every minimum time frame whichever is possible.
So here I have used clock memory here and minimum possibility of time frame of my PLC is 0.1s (seconds). So I have to find out the flow rate at 0.1s for that.
I have used the below formula to find out the flow rate at 0.1s
In this Network 4, we are doing addition of flow rate at 0.1s at every 0.1s and save it to Total_Flow.
This is the totalizer of the flow.
If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.
You can also follow us on Facebook and Twitter to receive daily updates.
Read Next:
Learn an example PLC program to control a pump based on level sensors using ladder…
In the PLC timer application for security camera recording, when motion is detected then camera…
In this example, we will learn batch mixing with PLC ladder logic program using timer…
This PLC example on manufacturing line assembly is an intermediate-level PLC program prepared for the…
In this article, you will learn the PLC programming example with pushbutton and motor control…
This article teaches how to convert Boolean logic to PLC programming ladder logic with the…
View Comments
Hi,
How to find K constant?
Please give that formula
Hi Navaneethan, did you ever find out how to find the K formula, I am looking for it as well.
Hi,
How did you create pulses for every second?
Hi sir/maam
how to create the scaling program