Subroutines Instructions; Sbs - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions

Subroutines Instructions

SBS

Instruction
SUBROUTINE CALL
Symbol
Applicable Program Areas
Area
Usage
Operands
Operand
N
Subroutine number
N: Subroutine number
Specifies the subroutine number between 0 and 127 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
2-290
Mnemonic
Variations
SBS
@SBS
Step program areas
OK
Description
AR
T
C
DM
---
---
---
---
Label
P_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 addresses
Constants
@DM
*DM
---
---
OK
Operation
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Interrupt tasks
OK
Data type
Size
---
1
CF
Pulse bits
TR bits
---
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents