35 Interrupt Function and Pulse Catch Function
803
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
31
Applied Instructions
(Data Transfer 3)
32
Applied Instructions
(High Speed
Processing 2)
33
Applied Instructions
(Extension File
Register Control)
34
Applied Instructions
(FX
3U
-CF-ADP)
35
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
B
Applied
Instruction List
35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
2. Example of program to measure the short pulse width using a high speed ring counter (For
FX
3U and FX3UC PLCs only)
EI
EN ENO
X010
D8099
Interrupts are enabled by EI instruction.
The main program is described.
The ring counter is set to ON.
When X000 turns ON: The ring counter is
reset to OFF, and measurement is started.
RST
EN ENO
d
RST
EN ENO
d
M0
The special data register M8099 up-counts the 0.1 ms clock
from the next operation cycle after being driven.
When the count value exceeds "32,767", it is returned to "0".
MOV
EN
s
ENO
d
D0D8099
SET
EN ENO
d
M0
M8099
D8099
X010
When X001 turns OFF: The ring counter value is
transferred to D0, and measurement is completed.
When the rising edge
of X000 is detected
[Main program]
[Interrupt program]
(Event: I001)
When the rising edge
of X001 is detected
[Interrupt program]
(Event: I100)