Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 716

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

SBS
Instruction
SUBROUTINE CALL
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
Not allowed
Operands
Operand
N
Subroutine number
N: Subroutine number
Specifies the subroutine number between 0 and 1023 decimal.
Note For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the subroutine number must be between the range &0 to
&255 decimal.
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
Combined-use instructions
SBN (subroutine entry) instructions and RET (subroutine return) instructions
Flags
Name
Error Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SBS
@SBS
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
---
---
---
---
---
Label
ER
• ON if nesting exceeds 16 levels.
• ON if the specified subroutine number does not exist.
• ON if a subroutine calls itself.
• ON if a subroutine being executed is called.
• ON if the specified subroutine is not defined in the current task.
• OFF in all other cases.
Function
code
Calls the subroutine with the specified subroutine
091
number and executes that program.
SBS
SBS(091)
N
N: Subroutine number
Subroutines
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
Operation
3. Instructions
Function
SFC action or transition
Interrupt tasks
programs
OK
Not allowed
Data type
Size
---
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
3
1
TR
bits
---
---
679

Advertisement

Table of Contents
loading

Table of Contents