Справочник Пользователя для Mitsubishi Electronics FXCPU

Скачать
Страница из 838
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
, FX
0
, FX
0N
, FX
1S
, FX
1N
, FX
1NC
, FX
U
, FX
2C
, FX
2N,
 FX
2NC,
 FX
3S,
 FX
3G
 or FX
3GC
 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