Mitsubishi Electric MELSEC Q Series Programming Manual page 61

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

4 ST PROGRAM EXPRESSIONS
4 - 21
(2) EXIT syntax
[Format]
EXIT;
[Explanation]
The EXIT syntax can be used in the repeat statement of an ST program
and terminates a repeat loop midway.
When the EXIT syntax is reached during execution of a repeat loop, the
repeat loop processing after the EXIT syntax is not executed. The program
is continued on the line that follows the one where the repeat loop
processing has been terminated.
Loop statement
TRUE
Conditional
statement
FALSE
Statement
[Description example]
(a) When actual device is used in IF conditional Boolean expression
FOR D0 : = 0 TO 10 D0 (* If the D0 value is less than or equal to 10,
IF D1 > 10 THEN
EXIT;
END_IF;
END_FOR;
FALSE
TRUE
EXIT
(* repeat is executed.
(* Whether the D1 value is greater than 10
(* or not is checked.
(* If the D1 value is greater than 10,
(* repeat processing
(* ends.
*)
*)
*)
*)
*)
*)
*)
4 - 21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents