35 Interrupt Function and Pulse Catch Function
797
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.2 Common items
2) Timing chart
Example in which latched outputs are reset (countermeasures)
1) Program example
2) Timing chart
Execution of interrupt
program I001
triggered by X000
X001
Current value
of C0
1
2
3
Counter
is reset.
Because the C0 reset instruction
is valid, the current value of C0
remains unchanged even if
pulses are input.
C0 remains reset.
Y007 is being output.
Outputs are latched.
RST
C0
Y007
Interrupt program
EI
EN ENO
OUT_C
EN ENO
CCoil
CValue
RST
EN ENO
d
M8000
Y007
CC0
K10
CC0
RST
EN ENO
d
M8001
CC0
RST
EN ENO
d
Y007
X002
RUN monitor
(normally OFF)
X001
A
B
Program to deactivate the preceding C0
RST instruction inside the subroutine.
Program to reset Y007 at an arbitrary time.
[Main program]
[Interrupt program]
(Event: I001)
X001
Current value
of C0
1
2
3
Y007 is reset
RST
C0
Y007
1
2
3
4
X002
Counter reset instruction is deactivated
(part in above program).
B
Counter is reset.
(part in above
program)
A
Execution of interrupt
program I001
triggered by X000
Interrupt program