Przed
(* START / STOP + lampka + TON - wersja przed refaktorem *)IF StartPB THEN MotorRun := TRUE;END_IF; IF StopPB THEN MotorRun := FALSE;END_IF; IF MotorRun THEN LampCmd := TRUE; DelayTON(IN := TRUE, PT := T#5s); IF DelayTON.Q THEN RunConfirmed := TRUE; END_IF;ELSE LampCmd := FALSE; DelayTON(IN := FALSE, PT := T#5s); RunConfirmed := FALSE;END_IF; IF FaultActive THEN MotorRun := FALSE; LampCmd := FALSE;END_IF;