Subroutine Instructions - Omron SYSMAC CS Series Programming Manual

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

Advertisement

Subroutine Instructions

3-16 Subroutine Instructions

Instruction
Symbol/Operand
Mnemonic
Code
SUBROUTINE
CALL
SBS(091)
SBS
@SBS
091
N: Subroutine
number
SUBROUTINE
ENTRY
SBN(092)
SBN
092
N: Subroutine
number
SUBROUTINE
RET(093)
RETURN
RET
093
MACRO
MCRO(099)
MCRO
@MCRO
099
N: Subroutine
number
S: 1st input
parameter word
D: 1st output
parameter word
112
Calls the subroutine with the specified subroutine number and executes that
program.
N
Indicates the beginning of the subroutine program with the specified
subroutine number.
N
Indicates the end of a subroutine program.
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
N
D to D+3.
S
MCRO(099)
D
MCRO(099)
Function
Execution condition ON
Main program
Subroutine
program
(SBN(092) to
RET(093))
or
Subroutine region
Execution of subroutine
between SBN(092) and
RET(093).
The subroutine uses A600
to A603 as inputs and A604
to A607 as outputs.
Section 3-16
Execution
condition
Output
Required
Program end
Output
Not required
Output
Not required
Output
Required
Location

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents