alanled100
Member
I have a programming problem. I was originally asked to read and display a flowmeter with a 4-20mA o/p and display a continuous flow reading. The customer has changed his mind now and wants to see total flow/leakage over a preselected time say 3 mins.
As the flowmeter is not giving me a pulse o/p its going to be difficult. I was thinking of writing a FB in STL that would take a reading every second and move it to a line in a DB upto 60 then add them divide by 60 (because the flowmeter reads in litres per min) and this should giv me a reasonably accurate leakage reading i think. The problem is im not great at STL and could do with some guidance if poss.
As the flowmeter is not giving me a pulse o/p its going to be difficult. I was thinking of writing a FB in STL that would take a reading every second and move it to a line in a DB upto 60 then add them divide by 60 (because the flowmeter reads in litres per min) and this should giv me a reasonably accurate leakage reading i think. The problem is im not great at STL and could do with some guidance if poss.