ALGORITHM TOGGLE IN ST :
OUT := NOT OUT;
When an event occurs at the
input of an instance of this Function Block type, the output value
is toggled (complemented), and an event is then issued at the
This behavior is defined by the Execution Control Chart (ECC) and algorithm shown above.