668
Subroutines Section 3-18
3-18 Subroutines
This section describes instructions used to create and control subroutines.
3-18-1 SUBROUTINE CALL: SBS(091)
Purpose Calls the subroutine with the specified subroutine number and executes that
program.
Ladder Symbol
Variations
Applicable Program Areas
Operands N: Subroutine number
Specifies the subroutine number between 0 and 255 decimal.
Operand Specifications
Instruction Mnemonic Function code Page
SUBROUTINE CALL SBS 091 668
MACRO MCRO 099 674
SUBROUTINE ENTRY SBN 092 678
SUBROUTINE RETURN RET 093 680
GLOBAL SUBROUTINE CALL GSBS 750 681
GLOBAL SUBROUTINE ENTRY GSBN 751 688
GLOBAL SUBROUTINE RETURN GRET 752 691
SBS(091)
N
N: Subroutine number
Variations Executed Each Cycle for ON Condition SBS(091)
Executed Once for Upward Differentiation @SBS(091)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area N
CIO Area ---
Work Area ---
Holding Bit Area ---
Auxiliary Bit Area ---
Timer Area ---
Counter Area ---
DM Area ---
Indirect DM addresses
in binary
---
Indirect DM addresses
in BCD
---
Constants 0 to 255 (decimal)
Data Registers ---
Index Registers ---
Indirect addressing
using Index Registers
---