Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
798
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.2 Common Items
36.2 Common Items
36.2.1 How to disable interrupt function and pulse catch function
This section describes how to disable the interrupt function and pulse catch function.
1. Limiting the program interrupt range [interrupt function and pulse catch 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.
These special auxiliary relays are not valid for the pulse catch function.
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