Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 894

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Interrupt Control Instructions
Note
Flags
Operation Examples
sponding bit of C is ON and retains the recorded interrupt input when the cor-
responding bit is OFF.
Interrupt input n
Internal status
Recorded interrupt cleared
If an I/O interrupt task is being executed and an interrupt input with a different
interrupt number is received, that interrupt number is recorded internally. The
recorded I/O interrupts are executed later in order of their priority (from the
lowest number to the highest).
If you want to ignore interrupt inputs that are received while an interrupt task is
being executed, use CLI(691) to clear the recorded interrupts before they are
executed.
N = 4 or 5: Setting the Time to the First Scheduled Interrupt Task
When N is 4 or 5, the content of C specifies the time interval to the first sched-
uled interrupt task.
MSKS(690)
Time to first
scheduled interrupt
1. The CJ1M-CPU11/21 supports only one scheduled interrupt task, interrupt
task 2 for scheduled interrupt 0.
2. The time unit for the scheduled interrupt tasks is set in the PLC Setup as
the Scheduled Interrupt Interval.
N = 10 or 11: Clearing High-speed Counter Interrupts (CJ1M Only)
When N is 10 or 11, CLI(691) clears or retains the recorded high-speed
counter interrupt (either target or range comparison) specified by N.
Name
Label
Error Flag
ER
Interrupts have different priority levels. A power OFF interrupt is given the
highest priority, followed by I/O interrupts, external interrupts, and finally
scheduled interrupts. Lower numbered I/O interrupts are given priority over a
higher numbered I/O interrupts.
Example for CS1W-INT01/CJ1W-INT01
When CIO 000000 is ON in the following example, CLI(691) clears the
recorded interrupts for the specified interrupt inputs in Interrupt Input Unit 0.
Interrupt
input n
Internal
status
Recorded interrupt retained
Execution of scheduled
interrupt task.
ON if N is not within the specified range of 0 to 5 (0, 1, or
4 to 11 for CJ1M).
ON if C is not within the specified range of 0000 to 00FF
hex when N is 0 to 3 (for I/O interrupts and C200HS-INT
only).
ON if C is not 0000 or 0001 hex (for high-speed counter
interrupts and CJ1M built-in interrupt inputs only).
ON if C is not within the specified range of 0 to 9,999 dec-
imal (0000 to 270F hex) for scheduled interrupts.
OFF in all other cases.
Section 3-20
Operation
855

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents