Interrupt Control Instructions - Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

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
Outline of Interrupt Control Instructions
SET INTERRUPT MASK: MSKS(690)
Both I/O interrupt tasks and scheduled interrupt tasks are masked (disabled) when the PLC enters RUN
mode. MSKS(690) can be used to unmask or mask I/O interrupts and set the time intervals for
scheduled interrupts.
Note The power OFF interrupt is set in the PLC Setup.
CLEAR INTERRUPT: CLI(691)
CLI(691) clears or retains recorded interrupt inputs for I/O interrupts or sets the time to the first
scheduled interrupt for scheduled interrupts. It also clears or retains recorded high-speed counter
interrupts for CJ1M 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)
DI(693) disables execution of all interrupt tasks except the power OFF interrupt.
ENABLE INTERRUPTS: EI(694)
EI(694) enables execution of all interrupt tasks except the power OFF interrupt.
Precautions in Using Interrupt Tasks
Precautions for All Interrupts
• When IORF(097), FIORF(225), IORD(222), or IOWR(223) is being executed within an interrupt task
to refresh I/O in a Special I/O Unit, cyclic refreshing with that Special I/O Unit must be disabled in the
PLC Setup.
If cyclic refreshing with the Special I/O Unit is enabled in the PLC Setup and one of the following
operations occurs during an interrupt task, a non-fatal Duplicate Refresh Error will occur and the
Interrupt Task Error Flag (A402.13) will be turned ON.
• I/O refreshing is performed for the same Special I/O Unit by IORF(097) or FIORF(225).
• The same Special I/O Unit's data area is read by IORD(222) or written by IOWR(223).
• Be sure that the interrupt task does not require more than 10 ms if a C200H Special I/O Unit or
SYSMAC BUS Remote I/O Slave Rack is connected. If an interrupt task longer than 10 ms is
executed during I/O refreshing with the Special I/O Unit or Slave Rack, a non-fatal will occur and the
Interrupt Task Error Flag (A40213) will be turned ON.
700
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)
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.
None (always valid)
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents