EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
348
7 APPLICATION INSTRUCTION
7.4 Structuring instruction
Returning from the subroutine program
RET/SRET
These instructions indicate an end of a subroutine program.
The RET instruction can be used as SRET.
Processing details
These instructions indicate an end of a subroutine program.
When the RET instruction is executed, the program execution returns to the step following the CALL(P) or XCALL
instruction that called the subroutine program.
Precautions
If the RET (SRET) instruction is executed in a user interrupt program (I-IRET), a compiling error occurs.
Operation error
Ladder diagram Structured text
Not supported
Error code
(SD0/SD8067)
Description
3381 The END, FEND, GOEND, or STOP instruction is executed before the RET instruction is executed.
3382 While the number of nesting levels is decreased by the return instruction, the result becomes negative.
(The number of RET (SRET) instructions is larger than that of the CALL instructions.)
CALL (P)
END
(P)
RET(SRET)
Subroutine programMain routine program

Table of Contents

Related product manuals