Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
35 Interrupt Function and Pulse Catch Function
804
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
35.4 Input Interrupt (Interrupt by External Signal) [With Delay function]
35.4 Input Interrupt (Interrupt by External Signal) [With Delay function]
1. Outline
An input interrupt has the function to delay execution of an interrupt routine in units of 1 ms.
The delay time can be specified using the pattern program shown below.
By using the delay function, the mounting position of a sensor used for input interrupts can be adjusted
electrically without changing the actual position.
The FX
0S, FX0, FX0N, FX1S, FX1N, FX1NC, FXU, FX2C, FX2N, FX2NC, FX3S, FX3G or FX3GC PLC does not
support this function.
2. Programming procedure
3. Timing chart
D8393
M8393
MOV
EN
s
ENO
d
1) Delay time (unit: ms)
Program to be executed as input interrupt
Contact for setting delay time
K
*
Delay time specification program
Be sure to describe the delay time specification program
shown on the left at the head of an interrupt routine program.
Because this program is a pattern program, change only the
delay time 1).
Only a constant (K) or data register (D) is available for
specifying the time here *.
[Interrupt program]
(Event: I )
Interrupt input(X000 to X005)
Interrupt input is
executed
Because the previous interrupt processing is not
completed, the interrupt processing is not executed here.
Valid
Delay time (ms) IRET instruction