5/17/2019 11:51 AM | |
Posts: 35 Rating:
|
Hi, I am in the same situation. I use Highspeedcounter function from the Siemens library. But does anyone have an example to turn impulses into an instantaneous flow ? For volumetric flow, you need just know the K factor of the flowmeter. xxx puls = xxx liters, when the impuls is reached we can reset the value and create a bit that is used in the standard program. Regards, Serge ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 05/17/2019 13:09:22New subject after splitting |
|
5/17/2019 4:27 PM | |
Joined: 7/7/2010 Last visit: 6/14/2024 Posts: 14802 Rating:
|
I recently implemented this on an s7-1200 PLC using TIA Portal V13 SP1. The hardware configuration for the HSC is important. My configuration for pulse counting -> flow rate: Count / Single phase / User program / Count up / Reset value 0 / Reference value 2147483647 / Generate interrupt for counter value equals reference / call hardware interrupt OB that manages the flow rate calculation when it approaches a large value (I used largest DINT value). In the Hardware interrupt OB, it simply calls CTRL_HSC with CV input TRUE. In the program logic, I perform a CONV from DINT to REAL of the input count. A calibration was then performed to set the gain and offset for the flow rate (the K could be used to replace the gain set during calibration). I tried just using the K but because the K-factor was based on a specific set of conditions on a specific fluid, and this system was not anywhere close to those standard temperature / pressure / fluid settings, flowing into a graduated cylinder and stop watch over several runs established a very accurate and repeatable flow rate.
|
science guy |
|
5/27/2019 2:08 PM | |
Posts: 35 Rating:
|
Hi, do you have an example of this program ? Serge
|
Follow us on