4 - 20 4 - 20
4 ST PROGRAM EXPRESSIONS
4.3.4 Other control syntaxes
(1) RETURN syntax
[Format]
RETURN;
[Explanation]
The RETURN syntax is used to terminate a program in a function block or
an ST program.
When the RETURN syntax is used in a program, the processing after the
RETURN syntax are all ignored, and a jump occurs from the place where
RETURN is executed to the last line of the ST program or the program in
the function block.
Jump
Program
RETURN
[Description example]
(a) When actual device is used in IF conditional statement Boolean expression
IF X0 THEN
(If X0 is ON, the statement in IF is executed.
*)
RETURN;
(* The program after the RETURN line is ignored. *)
END_IF;
Summary of Contents for MELSEC L series
Page 1: ...Programming Manual Structured Text ...
Page 2: ......
Page 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Page 297: ......