35 Interrupt Function and Pulse Catch Function
808
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
35.5 Timer Interrupt (Interrupt in Constant Cycle)
3. Cautions
1) When the HKY, SEGL or PR instruction is used in an interrupt program, the instruction turns ON M8029
in the interrupt program.
When M8029 is referred to in the main program as shown below, M8029 may be changed by an interrupt
program depending on the interrupt timing, even if M8029 is referred to immediately after an instruction.
As a result, whether the instruction is executed completely cannot be determined properly.
M100
M8000
RUN
monitor
M8029
D100
Y000
D0
M0
K6
H6F
K1
X000
K8
X000
IVCK: Instruction to use M8029
When an interrupt occurs at this timing,
whether the instruction is executed completely
cannot be determined properly.
When interrupt is given at every 20 ms.
[Main program]
[Interrupt program]
(Event: I620)
Program examples
EI
EN ENO
RST
EN ENO
IVCK
EN ENO
d
s1
s2
n
REF
EN
d
n
ENO
Y000
K8
REF
EN
d
n
ENO
HKY
EN
s
ENO
d1
d2
d3