810
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
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]
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
T0 T0
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.