FUNCTION_BLOCK E_TOGGLE

Hover on a highlighted element
to pop up its description (if any).

ECC
ALGORITHM TOGGLE IN ST :
   OUT := NOT OUT;
END_ALGORITHM

When an event occurs at the REQ input of an instance of this Function Block type, the output value OUT is toggled (complemented), and an event is then issued at the CNF output.

This behavior is defined by the Execution Control Chart (ECC) and algorithm shown above.

NOTE - The E_T_FF FB type is recommended instead of this type for future designs.