![FATEK FBs Series Manual Download Page 215](http://html1.mh-extra.com/html/fatek/fbs-series/fbs-series_manual_3764826215.webp)
Advanced Function Instruction
7 -5 1
FUN 68
RTS
RETURN FROM SUBROUTINE
FUN 68
RTS
z
This instruction is used to represent the end of a subroutine. Therefore it can only appear within the
subroutine area. Its input side has no control signal, so there is no way to serially connect any contacts.
This instruction is self sustain, and is directly connected to the power line.
z
When PLC encounter this instruction, it means that the execution of a subroutine is finished. Therefore it will
return to the address immediately after the CALL instruction, which were previously executed and will
continue to execute the program.
z
If this instruction encounters any of the three flow control instructions MC, SKP, or JMP, then this instruction
may not be executed (it will be regarded as not exist). If the above instructions are used in the subroutine
and causing the subroutine not to execute the RTS instruction, then PLC will halt the operation and set the
M1933( flow error flag) to 1. Therefore, no matter what the flow is going, it must always ensure that any
subroutine must be able to execute a matched RTS instruction.
z
For the usage of the RTS instruction please refer to instructions for the CALL instruction.