RPSTiger
Member
I have a Directlogic DLO6 with a High speed counter card (CTRIO). I have three flow meters that Im trying to display related data on the HMI. Two of the meters are 1725 Pulse per gallon they are connected to the CTRIO card. I need to display both a total gallons register and a flow rate. The card DOES NOT have the ability to use raw and scaled data at the same time, so I had to pick one or the other. My total gallons accuracy is more important. I set the CTRIO to count to 172 and reset which gives me a pulse each 1/10th of a gallon that I can count with a up/down counter up to 9999999.9 Gallons. I then created a rung as follows each second:
Load counter value
Change from Hex to BCD
Subtract Previous counter value
Multiply by 60 ( to get pulses per min)
Divide by 1725 (Pulses per gallon for this meter)
Output the value to register read by HMI
Load Counter Value (Again)
Change from Hex to BCD
Output to the register refered to in line 3 above for the the next 'previous value"
The result is a value on the HMI that is not allways accurate depending on the flow rate and also if the counter resets (old-new = negative# ??)... I even tryed to do this every 100 millisec but I get worse results
???? What else could I do to get more accurate results?????
My third flow meter is 62 pulses per gallon and going into the high speed counter on X0. Im having similar troubles here.
PLEASE HELP ME FIGURE THIS OUT BEFORE I BECOME BALD FROM PULLING OUT MY OWN HAIR THANKS
Load counter value
Change from Hex to BCD
Subtract Previous counter value
Multiply by 60 ( to get pulses per min)
Divide by 1725 (Pulses per gallon for this meter)
Output the value to register read by HMI
Load Counter Value (Again)
Change from Hex to BCD
Output to the register refered to in line 3 above for the the next 'previous value"
The result is a value on the HMI that is not allways accurate depending on the flow rate and also if the counter resets (old-new = negative# ??)... I even tryed to do this every 100 millisec but I get worse results
???? What else could I do to get more accurate results?????
My third flow meter is 62 pulses per gallon and going into the high speed counter on X0. Im having similar troubles here.
PLEASE HELP ME FIGURE THIS OUT BEFORE I BECOME BALD FROM PULLING OUT MY OWN HAIR THANKS