803
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.2 Common Items
31
FNC277-FNC279
Data
Transfer 3
32
FNC280-FNC289
High-Speed
Processing 2
33
FNC290-FNC299
Extension File
Register Control
34
FNC300-FNC305
FX
3U
-CF-ADP
35
SFC•STL
Programming
36
Interrupt
Function
37
Special Device
38
Error Code
A
Version Up
Information
B
Execution Times
36.2 Common Items
36.2.1 How to disable interrupt function
This section describes how to disable the interrupt function.
1. Limiting the program interrupt range [interrupt function]
1) Programming method
Program the FNC 05 (DI) instruction to set the interrupt disabled zone.
Even if an interrupt is generated between the DI instruction and EI instruction (interrupt disabled zone), the
interrupt is executed after the EI instruction.
2) Program example
3) Cautions
a) The interrupt inputs with special auxiliary relay for interrupt disable (M8050 to M8059) turned ON are
excluded.
b) When the disabled zone is long, interrupts are accepted, but the interrupt processing is started after
considerable time.
When the interrupt disabling setting is not required, program only EI instruction. It is not always necessary to
program DI instruction.
2. Disabling interrupt pointers (for each interrupt routine) [interrupt function]
1) Programming method
The special auxiliary relays M8050 to M8059 for disabling interrupt are provided.
While an interrupt disable flag (M8050 to M8059) is ON, a corresponding interrupt program is not executed even if
the interrupt disable flag is set to OFF after a corresponding interrupt is generated.
*1. Cleared when the PLC mode is changed from RUN to STOP.
Input interrupt
The input interrupts X000 to X005 correspond to M8050 to M8055
*1
respectively. When a relay M8050 to
M8055 turns ON, a corresponding input interrupt is disabled.
Timer interrupt
The timer interrupts I6 to I8 correspond to M8056 to M8058
*1
respectively. When a relay M8056 to
M8058 turns ON, a corresponding timer interrupt is disabled.
High-speed counter
interrupt
When M8059
*1
turns ON, all of the high-speed counter interrupts I010 to I060 are disabled.
Interrupts are
disabled
Interrupts are
enabled
FNC 04
EI
FNC 05
DI
FNC 06
FEND