Siemens S7-300 CPU315-2DP
Hi Guys
I need to accurately calculate the flow rate of a material that is passing through a totalised flow meter. At the moment I have a simple 1 second timer setup so that it calculates the difference between a snapshot DINT of the last total and the current DINT total then * 60 to give me the flow rate per minute.
This is not very stable due to the scan times of the PLC. Is there another way so that the scan times of the PLC will not affect the calculation of the flow rate, maybe by using the system time in the calculations or calling system function.
If possible please provide code examples in your replys.
Cheers
Hi Guys
I need to accurately calculate the flow rate of a material that is passing through a totalised flow meter. At the moment I have a simple 1 second timer setup so that it calculates the difference between a snapshot DINT of the last total and the current DINT total then * 60 to give me the flow rate per minute.
This is not very stable due to the scan times of the PLC. Is there another way so that the scan times of the PLC will not affect the calculation of the flow rate, maybe by using the system time in the calculations or calling system function.
If possible please provide code examples in your replys.
Cheers