EasyManua.ls Logo

Omron CJ - INSTRUCTIONS - 2-2-18 Subroutine Instructions

Omron CJ - INSTRUCTIONS
1308 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
95
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-18 Subroutine Instructions
2-2-18 Subroutine Instructions
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
SUBROUTINE
CALL
SBS
@SBS
091
Output
Required
687
MACRO
MCRO
@MCRO
099
Output
Required
693
SUBROUTINE
ENTRY
SBN
092
Output
Not required
696
SUBROUTINE
RETURN
RET
093
Indicates the end of a subroutine program. Output
Not required
696
GLOBAL SUB-
ROUTINE CALL
(CJ2, CS1-H,
CJ1-H, CJ1M, or
CS1D only)
GSBS
750
Calls the subroutine with the specified subroutine number and exe-
cutes that program.
Output
Not required
699
SBS(091)
N
N: Subroutine
number
Calls the subroutine with the specified subroutine number and
executes that program.
Execution condition ON
Main program
Program end
Subroutine
program
(SBN(092) to
RET(093))
MCRO(099)
N
S
D
N: Subroutine
number
S: 1st input
parameter word
D: 1st output
p
arameter word
MCRO(099)
MCRO(099)
Calls the subroutine with the specified subroutine number and
executes that program using the input parameters in S to S+3 and the
output parameters in D to D+3.
Execution of sub-
routine between
SBN(092) and
RET(093).
The subroutine uses A600 to
A603 as inputs and A604 to
A607 as outputs.
SBN(092)
N
N: Subroutine
number
Subroutine region
or
Indicates the beginning of the subroutine program with the specified
subroutine number.
RET(093)
GSBS(750)
N
N: Subroutine
number

Table of Contents

Related product manuals