Other Control Syntaxes - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

4 ST PROGRAM EXPRESSIONS

4.3.4 Other control syntaxes

4 - 20
(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.
Program
RETURN
[Description example]
(a) When actual device is used in IF conditional statement Boolean expression
IF X0 THEN
RETURN;
END_IF;
Jump
(If X0 is ON, the statement in IF is executed.
(* The program after the RETURN line is ignored. *)
*)
4 - 20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents