3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.1 Sequence Program
3.1.3 Interrupt programs
3
- 16
1
Overview
2
Performance
Specification
3
Sequence Program
Configuration and
Execution Conditions
4
I/O Nunber Assignment
5
Memories and Files
Handled by CPU Module
6
Functions
7
Communication with
Intelligent Function
Module
8
Parameters
(4) When interrupt factor occurs
There are restrictions on interrupt programs depending on the interrupt factor
occurrence timing.
(a) When interrupt factor occurs before interrupts are enabled
The CPU module stores the interrupt factor that has occurred.
As soon as interrupts are enabled, the interrupt program corresponding to the
stored interrupt factor is executed.
When the same interrupt factor occurs several times before interrupts are
enabled, the operation is performed as described below.
1) Basic model QCPU
Interrupt factors of I0 to I15, I28 to I31 and I50 to I127 are stored only once.
2) High Performance model QCPU, Process CPU or Redundant CPU
Interrupt factors of I0 to I27 and I50 to I255 are stored only once.
For those of I32 to I41 and I49, factors occurred in the interrupt-disabled status
are discarded.
For those of I28 to 31 and in the fixed scan execution type program, all
interrupt factors occurred are stored and, as soon as interrupt is enabled, all of
interrupt programs corresponding to those factors are executed.
Note that factors generated with interrupts masked by the IMASK instruction
are all discarded.
(b) When interrupt factor occurs in STOP/PAUSE status
When an interrupt factor occurs in the STOP/PAUSE status, the CPU module
execute the interrupt program corresponding to the interrupt factor as soon as an
interrupts are enabled after the CPU module status changes to RUN.
Diagram 3.12 When interrupt factor occurs before interrupts are enabled
Diagram 3.13 When interrupt factor occurs in STOP/PAUSE status
Main routine
program
Interrupt
program
Interrupt factor
occurrence
Not executed as
interrupt is
disabled (DI).
Executed
when interrupt
is enabled.
Interrupt enable (EI)
Execution
Main routine
program
Interrupt
program
Interrupt factor
occurrence
STOP/PAUSE
to RUN
Interrupt program
is not executed
during STOP.
Executed when interrupt is
enabled after
STOP/PAUSE RUN.
Interrupt enable (EI)
Execution