Mitsubishi Electronics FX3G User Manual

Page of 964
803
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.2 Common Items
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
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