809
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
31
FNC276
-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
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
p
Inform
ati
on
B
Ex
ecuti
on
T
imes
4) When catching a short pulse
In the program example shown below, the ON status is held for a certain period of time after a short pulse turns
ON.
Pulse input
X003
M0
ON
ON
TO
TO
Step
0
I301
Interrupt
pointer
When the rising edge of X003 is detected
M8000
RUN monitor
M0
M0
T0
K10
FNC 04
EI
T0
FNC 06
FEND
FNC 03
IRET
END
SET
M0
RST
M0
Interrupts are enabled by EI instruction.
The ON/OFF signal in M0 is utilized in this
program.
The period of time to hold M0 is specified.
After the timer time, M0 is reset.
The main program is finished by FEND
instruction.
When X003 turns ON and the interrupt routine is
executed, M0 is set to ON unconditionally.