Sign in to follow this  
Followers 0
Fer

Pulse flow meter

7 posts in this topic

Hi, Has anybody has experience on converting the pulse from a flow meter to gallons per second. I try using the pulse to frequency instruction but the output that I get s verr bouncy all over the place. Or do you know of a way to measure the time between two pulses I think this for sure will give me what I'm looking for? Thank you an advance.

Share this post


Link to post
Share on other sites
Fer There are 2 ways to determine frequency: Count pulses over time, and divide by time, or measure the time between 2 signals. Without averaging, both will show some variation. What is the frequency range of the pulses from the flow meter (your low speed and your high speed), and what resolution are you trying to show. Also, what PLC (and input module if appropriate) are you using?

Share this post


Link to post
Share on other sites
Iam using the high speed input from a CP1L PLC and my flow meter resolution is 132 pulses / gallon my flow range is 2.6 - 26gal/min. I try using the PRV2 instruction to determine the frequency over a second, but the output is all over the place im not sure if this is coming from the signal or that is a scan time error issue...

Share this post


Link to post
Share on other sites
Fer It should not be a scan time error in the PLC. The high speed counting and frequency measurment functions are both interrupt functions, and are not part of the PLC scan. At a constant flow rate, how much is the measured frequency changing in the PLC?

Share this post


Link to post
Share on other sites
I suspect your problem is that the PLC is too fast for your data rate. Your pulse rate could be as low as 5 per second. I had a similar problem with an irrigation system control a few years ago. I ended up using the AVG function running in a cyclic task that only ran once per second in order to get enough pulse counts to get a real value. Even then it was a bit erratic. Edited by Mendon Systems

Share this post


Link to post
Share on other sites
Good solution, Mendon Systems!

Share this post


Link to post
Share on other sites
Hi Anthony. what is it that you do with the AVG, what are averaging with it?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0