2-295
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Subroutines Instructions
2
SBN/RET
SBN/RET
Applicable Program Areas
SBN

RET

Operands
SBN

N: Subroutine number

Specifies the subroutine number between 0 and 127 decimal.
Operand Specifications

Combined-use instructions

SBS (subroutine call) instruction
Instruction Mnemonic Variations Function
code Function
SUBROUTINE ENTRY SBN --- 092 Indicates the beginning of the subroutine program with
the specified subroutine number.
SUBROUTINE RETURN RET --- 093 Indicates the end of a subroutine program.
Symbol
SBN RET
Area Step program areas Subroutines Interrupt tasks
Usage Not allowed Not allowed OK
Area Step program areas Subroutines Interrupt tasks
Usage Not allowed OK OK
Operand Description Data type Size
SBN
N Subroutine number --- 1
Area Word addresses Indirect DM addresses Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
SBN N --- --- --- --- --- --- --- --- --- OK --- --- ---
N: Subroutine number
SBN(092)
N
RET(093)