A-55
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-19 Interrupt Control Instructions
A-1-19 Interrupt Control Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
SET INTER-
RUPT MASK
MSKS
@MSKS
690 Output Required
READ
INTERRUPT
MASK
MSKR
@MSKR
692 Reads the current interrupt processing settings that were set with
MSKS(690).
Output Required
CLEAR
INTERRUPT
CLI
@CLI
691 Output Required
DISABLE
INTER-
RUPTS
DI
@DI
693 Output Required
MSKS(690)
N
C
N: Interrupt number
C: Control data
Set scheduled interrupt
time interval.
Mask (1) or unmask (0)
interrupt inputs 0 to 7.
Time interval
Scheduled
interrupt
I/O
interrupt
Interrupt Input Unit 0 to 3
Sets up interrupt processing for I/O interrupts, input
interrupts, or scheduled interrupts. I/O interrupts, input
interrupts, and scheduled interrupts are masked (disabled)
when the PLC is first turned ON. MSKS(690) can be used
to unmask or mask interrupts and set the time intervals for
scheduled interrupts.
MSKR(692)
N
D
N: Interrupt number
D: Destination word
CLI(691)
N
C
N: Interrupt number
C: Control data
Recorded interrupt cleared Recorded interrupt retained
MSKS(690)
N = 0 to 3
N = 4 to 5
Time to first
scheduled interrupt
Execution of scheduled
interrupt task.
Internal
status
Interrupt
input n
Interrupt
input n
Internal
status
Clears or retains recorded interrupt inputs for I/O interrupts
or sets the time to the first scheduled interrupt for scheduled
interrupts.
DI(693)
Disables execution of
all interrupt tasks
(except the power OFF
interrupt).
Disables execution of all interrupt tasks except the power
OFF interrupt.
When CIO 0000.00 turns ON in
this example, all interrupt tasks
except for the power OFF
interrupt task are disabled.