6F3B0253

7. Instructions

FUN 129

RET

Subroutine return

Expression

−− [ RET ]−

Function

This instruction indicates the end of a subroutine. When program execution is reached this instruction, it is returned to the original CALL instruction.

Execution condition

Input

Operation

-

Execution

Output

-

Operand

No operand is required.

Example

Main program

[ CALL N.008 ]

Note

Subroutine

[ SUBR (008)]

[ RET ]

Refer to the SUBR instruction (FUN 137).

The RET instruction can be programmed only in the program type ‘Subroutine’.

The RET instruction must be connected directly to the left power rail.

204 T1-16S User’s Manual

Page 206
Image 206
Toshiba 6F3B0253 user manual Ret, Subroutine return