Hi all,
I'm just starting out in the plc world. For school we had some introduction into codesys v3.5, basically we get given visualizations and have to provide the code either in ladder or in function block. I decided to also try to code the assignments in structured text as an exercise.
Thanks for bearing with me. On to the question:
In the attached screenshot you can see both the ladder and the structured text program. The ladder works fine. I can switch pumps on and off, and when the thermal overload kicks in (via button) the corresponding visual alerts turn on and p1 switches to p2.
I've got the same thing working in ST, but for one thing. the second visual alert (H4) stays true, and I cannot work out why.
Does anyone have an idea?
I'm just starting out in the plc world. For school we had some introduction into codesys v3.5, basically we get given visualizations and have to provide the code either in ladder or in function block. I decided to also try to code the assignments in structured text as an exercise.
Thanks for bearing with me. On to the question:
In the attached screenshot you can see both the ladder and the structured text program. The ladder works fine. I can switch pumps on and off, and when the thermal overload kicks in (via button) the corresponding visual alerts turn on and p1 switches to p2.
I've got the same thing working in ST, but for one thing. the second visual alert (H4) stays true, and I cannot work out why.
Does anyone have an idea?