Jump to content

Recommended Posts

Posted

I want to make a water meter, with a flow sensor.the flow rate can vary during filling so I think I will record the flow rate every 1/2 second but I am not sure of the final precision!

  • MVP 2023
Posted
3 hours ago, Magnien said:

I am not sure of the final precision!

Me, neither.

You'll have to give us information on your pipe size, flow sensor make and model, which PLC model you want to use, and your anticipated flow rate range before any of us can give you direction.

Joe T.

  • MVP 2023
Posted

OK - so you've got the 20 mm ID unit where 4/20 mA = 5 to 85 l/min: 

image.png.e4e42f69420fb4975ae73390efdd11e8.png

The -RA22 is the high resolution analog input board, where 0 - 20 mA = 0 to 16384 counts.  4 mA = 3277 counts, so your 4/20 signal will be spread over 13,107 counts.  

If you use a virtual decimal place at 0.xx, you can scale your flowrate input to 5.00 to 85.00 l/min.

The -RA22 has four analog inputs which are dedicated to input type.  AI 0 and AI1 are for thermocouples and 100 ohm RTDs, and AI 2 and AI 3 are for 0-10VDC or 4/20 mA.  You'll need to set the jumpers inside the unit to select the 4/20 input.  I'd recommend connecting your flowmeter to AI 2.

Your linearization block can be set up like this:

image.png.8108b1d410d7722900332278c40e8545.png

 

I've attached a program showing this.  How often you sample it and the math to totalize flow is up to you.  Since your input flowrate can be up to 8500, I'd recommend doing your math in MLs as you will quickly overrun the maximum value of an MI which is 32,727.

To answer your question, your precision is 0.01 l/min.

Joe T.

Flowmeter scaling JT.vlp

Posted

now, I would like to create a water meter with this flow rate: with an example selection: 100 liters.I press a START button, a solenoid valve opens and the water fills a tank. As soon as 100 liters are reached, the solenoid valve closes.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.