Omron SYSMAC CV Series Operation Manual page 555

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Instruction Set
Name, mnemonic, variations,
and symbol
SUBROUTINE ENTRY
SBN
(150)
SBN
N
SUBROUTINE CALL
SBS, jSBS
(151)
SBS
N
SUBROUTINE RETURN
RET
(152)
RET
INTERRUPT MASK
MSKS, jMSKS
(153)
MSKS
N
S
CLEAR INTERRUPT
CLI, jCLI
(154)
CLI
N
S
READ MASK
MSKR, jMSKR
(155)
MSKR
N
D
MACRO
MCRO, MCRO
(156)
MCRO
N
S
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.
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.
Marks the end of a subroutine and returns
control to the main program.
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 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.
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.
(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.
D
Function
Appendix A
Operand data
Page
areas
N:
377
#
N:
378
#
None
377
N:
S:
385
#
CIO
G
A
T/C
#
DM
DR
IR
N:
S:
386
#
CIO
G
A
T/C
#
DM
DR
IR
N:
D:
388
#
CIO
G
A
DM
DR
IR
380
S:
D:
CIO
CIO
G
G
A
A
T/C
T/C
DM
DM
545

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents