Omron SYSMAC CS Series Instruction & Reference Manual page 647

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

SBN/RET
Instruction
SUBROUTINE ENTRY
SUBROUTINE RETURN
Symbol
Applicable Program Areas
 SBN
Function block
Area
definitions
Usage
Not allowed
 RET
Function block
Area
definitions
Usage
Not allowed
Operands
Operand
N
Subroutine number
 SBN
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
SBN
N
---
---
---
Combined-use instructions
SBS (subroutine call) instruction or MCRO (macro) instruction
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SBN
---
RET
---
SBN
SBN(092)
N
N: Subroutine number
Block program areas
Step program areas
Not allowed
Not allowed
Block program areas
Step program areas
Not allowed
Not allowed
Description
AR
T
C
DM
EM
---
---
---
---
---
Function
code
Indicates the beginning of the subroutine program with
092
the specified subroutine number.
093
Indicates the end of a subroutine program.
Subroutines
Not allowed
Subroutines
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
---
3. Instructions
Function
RET
RET(093)
SFC action or transition
Interrupt tasks
programs
OK
Not allowed
SFC action or transition
Interrupt tasks
programs
OK
Not allowed
Data type
Size
SBN
---
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
---
3
TR
bits
---
613

Advertisement

Table of Contents
loading

Table of Contents