B&R – PLC – Structured Text – EXIT Statement

Syntax

EXIT;


Example

FOR Var1 := 0 TO 1 DO

FOR Var2 := 0 TO 2 DO

IF Var3 = 3 THEN

EXIT;

END_IF;

Var4 := 4;

END_FOR;

Var5 := 5;
END_FOR;