Hello,
I am new to plcs and using structured text IEC 61131-3.
I want to turn off and on a pump based on level setpoints from an analog signal. I have the text.
if tankLevel > HighSP then
hspump1out := 0.0;
elsif tanklevel < LowSP then
hspump1out := 1.0;
end_if;
But how do I get the program to repeat? Once the level lowers to kick on the pump the program ends and does not turn off at the top setpoint.
Thanks
I am new to plcs and using structured text IEC 61131-3.
I want to turn off and on a pump based on level setpoints from an analog signal. I have the text.
if tankLevel > HighSP then
hspump1out := 0.0;
elsif tanklevel < LowSP then
hspump1out := 1.0;
end_if;
But how do I get the program to repeat? Once the level lowers to kick on the pump the program ends and does not turn off at the top setpoint.
Thanks