
5. Programming
5.2 Interrupt operation
The enable/disable of the interrupt program is changed as follows.
PLC mode | HALT | |
|
| |
Scan |
|
|
| 1 |
Interrupt Disable
RUN
2
Enable
HOLD
n
Disable
(Hold)
RUNHALT
n+1
EnableDisable
Time
In the RUN mode, interrupt operation is disabled at the first scan, and enabled from the second scan.
In the HALT mode, interrupt operation is disabled.
In the HOLD mode, interrupt operation is disabled but the interrupt requests occurred during HOLD mode is held.
During interrupt program execution, other interrupts are disabled, and the interrupt request is held as follows.
PLC mode | HALT |
|
| RUN |
|
|
|
| |
|
| Interrupt program | Execution | |
Scan | 1 | 2 | n | n n+1 |
Interrupt | Disable |
| Enable | Disable |
|
|
(Hold)
HALT
n+2
EnableDisable
Time
Note) The held interrupt requests are accepted when interrupt status is changed to enable, according to the priority as follows.
(Timer interrupt → I/O#1 → I/O#2 → … → I/O#8, in default)