FX Series Programmable Controlers Applied Instructions 5
5-9
5.1.3 SRET (FNC 02)
Operation:
SRET signifies the end of the current subroutine and returns the program flow to the step
immediately following the CALL instruction which activated the closing subroutine.
Points to note:
a) SRET can only be used with the CALL instruction.
b) SRET is always programmed after an FEND instruction - please see the CALL (FNC
01)
instruction for more details.
Mnemonic Function
Operands
Program steps
D
SRET
FNC 02
(
Subroutine
return)
Returns operation
from a subroutine
program
N/A
Automatically returns to the step immediately
following the CALL instruction which activated
the subroutine.
SRET:
1step
FX
1S
FX1N FX2N
FX2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION