390
RET
Program Example
(1) The following program executes a subroutine program with argument when X20 is turned ON.
[Ladder Mode]
[List Mode]
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.
7.6.4
RET
Return from subroutine programs
7.6.4
RET
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Step
Instruction
Device
Basic
Process
High
performance
Redundant Universal
LCPU
RET
RET
Main routine
program
CALL Pn
END
Subroutine
program
RET
Pn