Hello,
I am using an A-B micro830 PLC and analog input plug-in with Connected Components Workbench 3. I have a flow meter sending a 0-5V analog flow reading to the PLC that I need to have calculate current flow rate and total flow rate since user reset. I can read and convert the analog input value to a correct flow rate but I am having trouble figuring out how to integrate the rate to track the total. I think my problem is that I do not know what I should use as the time to integrate the calculated flow value over. I tried putting in a 1 second delay with a TON block right before the analog input value is converted to a flow rate but my total is going up much faster than it should be at the rate I have set so my program must be incorrect somewhere. In debugging it looks like the TON is not actually delaying anything as I can see the total updating more than once every second. Any suggestions?
Thank you!
I am using an A-B micro830 PLC and analog input plug-in with Connected Components Workbench 3. I have a flow meter sending a 0-5V analog flow reading to the PLC that I need to have calculate current flow rate and total flow rate since user reset. I can read and convert the analog input value to a correct flow rate but I am having trouble figuring out how to integrate the rate to track the total. I think my problem is that I do not know what I should use as the time to integrate the calculated flow value over. I tried putting in a 1 second delay with a TON block right before the analog input value is converted to a flow rate but my total is going up much faster than it should be at the rate I have set so my program must be incorrect somewhere. In debugging it looks like the TON is not actually delaying anything as I can see the total updating more than once every second. Any suggestions?
Thank you!