Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
35 Interrupt Function and Pulse Catch Function
798
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay
Function]
35.3.1 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
1. Outline
An interrupt routine is executed by the input signal from an input X000 to X005.
2. Application
Because the external input signal can be processed without being affected by the operation cycle of the PLC,
this interrupt is suitable to high speed control and receiving of short pulses.
3. Basic program (programming procedure)
4. Number and operation of (six) interrupt pointers
*1. The input numbers differ from one type of PLC to another.
FX
0, FX0S and FX0N PLCs: supports X000 to X003 only.
*2. Cleared when the PLC mode is changed from RUN to STOP.
Input number
*1
Pointer number
Interrupt disable command
Interrupt at rising edge Interrupt at falling edge
X000 I001 I000
M8050
*2
X001 I101 I100
M8051
*2
X002 I201 I200
M8052
*2
X003 I301 I300
M8053
*2
X004 I401 I400
M8054
*2
X005 I501 I500
M8055
*2
Interrupts are enabled.
Interrupt routine 2)
(Interrupt program)
EI
EN ENO
Main program
Interrupt routine 1)
(Interrupt program)
When the rising edge of X000 is detected
When the falling edge of X001 is detected
Interrupt inputs are accepted after EI instruction.
It is not necessary to program DI (disable interrupt)
instruction if there is no zone where input interrupts
should be disabled.
[Main program]
[Interrupt program]
(Event: I001)
When X000 turns ON, its rising edge is detected,
and the interrupt routine 1) is executed.
The program execution returns to the main program
after executing routine 1).
When X001 turns OFF, its falling edge is detected,
and the interrupt routine 2) is executed.
The program execution returns to the main program
after executing routine 2).
[Main program]
[Interrupt program]
(Event: I001)
[Interrupt program]
(Event: I100)
I 0
0:Interrupt at falling edge 1:Interrupt at rising edge
0 to 5 according to the inputs X000 to X005