SCADA_Dude
Member
I have reviewed the IEC 1131 documentation and previous posts, and cannot find a way to ensure a transition only executes if it's true for a certain amount of time. (Not to be confused with the time the previous action was true as in step1.T > T#5s)
For example:
When pressure goes above psi setpoint and stays that way for 5 seconds, then execute transition. If say after 4 seconds, the pressure drops back down, reset the timer to 0 and do not execute the transition.
Do I have to create a boolean and toggle that after the delay in a seperate section of the program? This seems like a messy way to do it, because I'd like to see the timer in the SFC...
Is this possible?
Thanks
For example:
When pressure goes above psi setpoint and stays that way for 5 seconds, then execute transition. If say after 4 seconds, the pressure drops back down, reset the timer to 0 and do not execute the transition.
Do I have to create a boolean and toggle that after the delay in a seperate section of the program? This seems like a messy way to do it, because I'd like to see the timer in the SFC...
Is this possible?
Thanks