EasyManua.ls Logo

Omron SYSMAC CV Series - Page 555

Omron SYSMAC CV Series
636 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...
Appendix AInstruction Set
545
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
SUBROUTINE ENTRY
SBN
(150)
SBN N
Calls subroutine N. Moves program operation
to the specified subroutine. N must be BCD
between 000 and 999 for the CV1000,
CV2000, or CVM1-CPU11/21-EV2 or between
000 and 099 for the CV500 or
CVM1-CPU01-EV2.
N:
#
377
SUBROUTINE CALL
SBS, jSBS
(151)
SBS N
Marks the start of subroutine N. N must be
BCD between 000 and 999 for the CV1000,
CV2000, or CVM1-CPU11/21-EV2 or between
000 and 099 for the CV500 or
CVM1-CPU01-EV2.
N:
#
378
SUBROUTINE RETURN
RET
(152)
RET
Marks the end of a subroutine and returns
control to the main program.
None 377
INTERRUPT MASK
MSKS, jMSKS
(153)
MSKS N S
N must be between 0 and 5 for the CV1000,
CV2000, or CVM1-CPU11/21-EV2 or between
0 and 4 for the CV500 or CVM1-CPU01-EV2.
If N is 0 to 3, it designates the unit number of
the Interrupt Input Unit 0 to 3, the bits of the
designated Interrupt Input Unit corresponding
to ON bits in S are masked, and bits
corresponding to OFF bits in S are unmasked.
If N is 4 or 5, a scheduled interrupt is
designated and the time interval for the
scheduled interrupt is set according to the
value in S and the time unit set in the PC
Setup. CLI(154) should be used to set the time
to the first scheduled interrupt. Unstable
operation might result if the time to the first
interrupt is not set.
N:
#
S:
CIO
G
A
T/C
#
DM
DR
IR
385
CLEAR INTERRUPT
CLI, jCLI
(154)
CLI N S
N must be between 0 and 5 for the CV1000,
CV2000, or CVM1-CPU11/21-EV2 or between
0 and 4 for the CV500 or CVM1-CPU01-EV2.
If N is 0 to 3, it designates the unit number of
the Interrupt Input Unit and the interrupt inputs
from the designated Interrupt Input Unit
corresponding to ON bits in S are cleared. If N
is 4 or 5, a scheduled interrupt is designated
and the time to the first interrupt is set
according to the value in S and the time unit
set in the PC Setup.
N:
#
S:
CIO
G
A
T/C
#
DM
DR
IR
386
READ MASK
MSKR, jMSKR
(155)
MSKR N D
If N is 0 to 3, writes the current mask status of
the designated Interrupt Input Unit into D. If N
is 4 or 5, writes the scheduled interrupt interval
into D. N must be between 0 and 5 for the
CV1000, CV2000, or CVM1-CPU11/21-EV2 or
between 0 and 4 for the CV500 or
CVM1-CPU01-EV2.
N:
#
D:
CIO
G
A
DM
DR
IR
388
MACRO
MCRO, MCRO
(156)
MCRO N S D
(V2 only) MCRO(156) allows a single subroutine to
replace several subroutines that have identical
structure but different operands. The
subroutine number (N) range is 000 to 999.
S:
CIO
G
A
T/C
DM
D:
CIO
G
A
T/C
DM
380

Table of Contents

Related product manuals