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

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

Advertisement

3. Instructions
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
688
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
---
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
---
---
---
---
---
TR
bits
---

Advertisement

Table of Contents
loading

Table of Contents