![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030123.webp)
83
Instruction Functions
Section 2-2
2-2-17 Subroutine Instructions
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SUBROUTINE
CALL
SBS
@SBS
091
Output
Required
811
MACRO
MCRO
@MCRO
099
Output
Required
817
SUBROUTINE
ENTRY
SBN
092
Output
Not required
821
SUBROUTINE
RETURN
RET
093
Indicates the end of a subroutine program.
Output
Not required
824
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
parameter 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)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...