3. Instructions
Interrupt Control Instructions
Interrupt Control Instructions
The CS/CJ-series CPU Units support the following interrupts.
Type
I/O Interrupts
Scheduled
Interrupts
Power OFF
Interrupt
External Interrupts
Input Interrupts
High-speed
Counter Interrupts
Outline of Interrupt Control Instructions
SET INTERRUPT MASK: MSKS(690)
I/O interrupts, input interrupts, and scheduled interrupts are masked (disabled) when the PLC enters
RUN mode. MSKS(690) can be used to unmask or mask interrupt inputs for I/O interrupts/input
interrupts and to start/stop the internal timers for scheduled interrupts.
CLEAR INTERRUPT: CLI(691)
CLI(691) clears or retains recorded interrupt inputs for I/O interrupts/input interrupts or sets the time to
the first scheduled interrupt for scheduled interrupts. It also clears or retains causes of high-speed
counter interrupts for CJ1M and CJ2M CPU Units.
READ INTERRUPT MASK: MSKR(692)
MSKR(692) reads the current interrupt processing settings that were set with MSKS(690).
DISABLE INTERRUPTS: DI(693)
Temporarily disables execution of all interrupt tasks except the power OFF interrupt. All interrupt causes
that occur while interrupts are disabled will be recorded.
ENABLE INTERRUPTS: EI(694)
Enables execution of all interrupt tasks (excluding power OFF interrupt task) that were disabled with
DI(693). If interrupt causes were recorded while interrupts were disabled, the corresponding interrupt
tasks are executed.
708
Execution condition
Interrupt input from the Interrupt Input Unit on the
CPU Rack turns ON/OFF.
Scheduled (fixed intervals)
When power turns OFF (After the default power
OFF detection time + power OFF detection delay
time)
When requested by an Special I/O Unit or CPU Bus
Unit on the CPU Rack or by an Inner Board (CS
Series only)
When interrupt inputs built into the CPU Unit turn
ON or OFF (CJ2M-CPU@@ with CJ2M-MD21@
Pulse I/O Module mounted or CJ1M-CPU2@ Only)
When high-speed counter inputs built into the CPU
Unit meet conditions for target-value comparison or
range comparison (CJ2M-CPU@@ with CJ2M-
MD21@ Pulse I/O Module mounted or CJ1M-
CPU2@ Only)
Setting procedure
Use the MSKS instruction to assign inputs from Interrupt Input Units
on the CPU Rack.
Use the MSKS instruction to set the interrupt interval. See Scheduled
Interrupt Time Units in PLC Setup.
See Power OFF Interrupt Task and Power OFF Detection Delay Time
in PLC Setup.
The interrupt conditions and interrupt task numbers are specified in
the settings for Special I/O Units, CPU Bus Units, and Inner Boards
that support interrupts. MSKS(690) is not used.
Use the MSKS(690) instruction to assign built-in inputs as interrupt
inputs.
Use the CTBL (COMPARISON TABLE LOAD) instruction to specify
the target value and interrupt task number. MSKS(690) cannot be
used.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Need help?
Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?
Questions and answers