3.35 SBL (Subroutine Label), RET (Subroutine Return)
■
Ladder diagram
■
List of operands
Operand
Description
Subroutine program number
n
Available data specification range: 0 to 65535/1 PB (It is recommended to specify sequentially from
0.)
■
Outline of operation
● When the execution condition is ON, the subroutine call instruction is executed to start the
subroutine program beginning with the SBL instruction with the specified number.
■
Precautions for programming
● "Subroutine program n" represents the program code between the SBL n instruction and the
RET instruction. Be sure to write it to an address which follows the ED instruction.
● In the SBL instruction, specify the values of "n" sequentially from 0.
● Subroutines can be nested up to 16 layers deep.
WUME-FP7CPUPGR-12
3.35 SBL (Subroutine Label), RET (Subroutine Return)
3-109