Return From Subroutine Programs - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

RET
Program Example
(1) The following program executes a subroutine program with argument when X20 is turned ON.
[Ladder Mode]
7.6.4
RET

Return from subroutine programs

7.6.4
RET
RET
Setting
Internal Devices
Data
Bit
––
Function
(1) Indicates end of subroutine program
(2) When the RET instruction is executed, returns to the step following the CALL (P), FCALL (P), ECALL (P), EFCALL (P) or
XCALL instruction which called the subroutine program.
390
[List Mode]
Step
R, ZR
Word
Bit
Main routine
program
CALL
Pn
END
Device
Instruction
High
Basic
performance
J
\
U
\G
Word
––
Subroutine
program
Pn
RET
Process
Redundant Universal
LCPU
RET
Zn
Constants
Other

Advertisement

Table of Contents
loading

Table of Contents