![Omron CJ1G-CPUxx Instructions Manual Download Page 787](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491787.webp)
766
Interrupt Control Instructions
Section 3-20
After completion of interrupt task 3, recorded interrupts are executed in order
of their priority. Since an input from interrupt input 0 was recorded, I/O inter-
rupt task 0 (interrupt task 100) will be executed when task 3 is completed.
Interrupt input 1 isn’t retained by CLI(691), so that input is cleared.
If interrupt inputs 0 through 3 all go ON and CLI(691) isn’t executed, all of the
inputs will be recorded and the interrupt tasks will be executed in order after
interrupt task 3 is completed. (The interrupt tasks are executed in order of
their priority, from the lowest interrupt number to the highest.)
Note
1.
It isn’t always necessary to use CLI(691).
2.
When CLI(691) isn’t executed, all of the I/O interrupt inputs received during
the execution of an interrupt task will be recorded. If a recorded input is re-
ceived again, the later input will be ignored.
3.
When two or more I/O interrupt inputs are recorded, they are executed in
order of their priority. The order in which the recorded inputs were received
is irrelevant.
Scheduled Interrupt Processing (N=4 or 5)
A scheduled interrupt is repeated at regular intervals set with MSKS(690) and
independent of the timing of the PLC cycle. N numbers 4 and 5 correspond to
scheduled interrupt numbers 2 and 3, respectively.
Scheduled Interrupt
Processing
The main features of scheduled interrupt processing are listed below.
1,2,3...
1.
The scheduled interrupts are masked (disabled) when the PLC is first
turned on.
2.
Set the time to the first scheduled interrupt (after execution of MSKS(690))
with CLI(691). The time to the first scheduled interrupt is unpredictable if it
isn’t set with CLI(691).
Interrupt input 2
Interrupt input 0
Interrupt input 1
I/O Interrupt task
Recorded interrupts
Interrupt input 1 is cleared by CLI(691).
Already recorded, so
later input is ignored.
Task 3
Task 3
Task 0
CLI(691) is executed. Interrupt inputs 0 and 3
are retained and input 1 is cleared.
Interrupt task 1
Interrupt task 3
Interrupt task 0
Interrupt task 3
Interrupt task 2
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...