Implementace statoveho automatu v PLC
Statovy automat je vzor pro rizeni complexnich procesu s definovanymi stavy.
Priklad
CASE currentState OF
stIdle: IF start_cmd THEN currentState := stRunning; END_IF
stRunning: IF done THEN currentState := stDone; END_IF
END_CASE