2
-
10
CHAPTER2 SEQUENCE PROGRAMS
2
2.2 Sequ
ence Pr
ogram C
onfig
uration
2.2.3 I
nterr
upt progr
am
(3) Operation when an interrupt factor occurs
There are restrictions on interrupt programs depending on the interrupt factor occurrence timing.
(a) When an interrupt factor occurs before the interrupt program execution status is
enabled
The CPU module stores the interrupt factor occurred.
As soon as the interrupt program execution status is enabled, the CPU module executes the interrupt program
corresponding to the stored interrupt factor.
When the same interrupt factor occurs more than one time before the interrupt program execution status is
enabled, the CPU module operates as follows:
1) Basic model QCPU
The CPU module stores the interrupt factors of I0 to I15, I28 to I31, and I50 to I127 only once.
2) High Performance model QCPU, Process CPU, or Redundant CPU
The CPU module stores the interrupt factors of I0 to I27, I28 to I31, I50 to I255, and fixed scan execution type
programs only once.
As for I32 to I41 and I49, the CPU module discards the interrupt factors occurred while interrupts are
disabled.
(b) When an interrupt factor occurs in the STOP or PAUSE status
The CPU module executes the interrupt program as soon as the interrupt program execution status is enabled
after the CPU module status is changed to RUN.
Figure 2.11 When an interrupt factor occurs before interrupts are enabled
Figure 2.12 When an interrupt factor occurs in the STOP or PAUSE status
Main routine
program
Interrupt
program
Interrupt factor
occurrence
Not executed because
the interrupt program
execution status is
disabled (DI).
Executed as soon as
the interrupt program
execution status
changes to enabled.
Interrupt
enabled (EI)
Execution
Main routine
program
Interrupt
program
Interrupt factor
occurrence
STOP/PAUSE
RUN
Not executed because
the CPU module is in
the STOP status.
Executed as soon as the interrupt
program execution status changes
to enabled after the CPU module
status is changed from
STOP/PAUSE to RUN.
Interrupt
enabled (EI)
Execution
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......