RET
7.6.4
Return from subroutine program
RET
Structured ladder
RET
EN
Input argument,
Output argument,
Function
(1) Indicates the end of the subroutine program.
(2) When the RET instruction is executed, returns to the next step of the CALL(P) instruction
which called the subroutine program.
7.6 Structured Instructions
7-108
7.6.4 Return from subroutine program
ENO:=
ENO
EN:
Executing condition
ENO:
Execution result
Internal device
Setting
R, ZR
data
Bit
Word
−
Main routine
program
CALL
END
ST
(EN);
RET
J
\
U
Bit
Word
−
Pn
Pn
Universal
UD
indicates the following instruction.
RET
:Bit
:Bit
Zn
Constant
\G
Subroutine
program
RET
RET
High
Performance
Others