Mitsubishi Electronics FX3S Garage Door Opener User Manual


 
817
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.5 Timer Interrupt (Interrupt in Constant Cycle)
31
FNC277-FNC279
Data
Transfer 3
32
FNC280-FNC289
High-Speed
Processing 2
33
FNC290-FNC299
Extension File
Register Control
34
FNC300-FNC305
FX
3U
-CF-ADP
35
SFC•STL
Programming
36
Interrupt
Function
37
Special Device
38
Error Code
A
Version Up
Information
B
Execution Times
3. Cautions
1) When the HKY (FNC 71), SEGL (FNC 74) or PR (FNC 77) 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.
program example
2) Countermeasures
Disable interrupts using the DI instruction in the section from the instruction which uses M8029 in the main
program to the point after M8029 is referred to.
Countermeasures program example
M8000
RUN
monitor
FNC 06
FEND
FNC 04
EI
FNC 71
HKY
FNC 50
REF
X000 K8
K8
FNC 50
REF
X000 Y000
Y000
D0 M0
M100
FNC270
IVCK
K6 H6F D100 K1
M100
M8029
RST
FNC 03
IRET
END
Interrupt at every 20 ms
When an interrupt occurs at this timing,
whether the instruction is executed
completely cannot be determined properly.
Instruction to use M8029
in the main program
I620
Interrupt
pointer
M8000
RUN
monitor
FNC 06
FEND
FNC 04
EI
FNC 05
DI
FNC 04
EI
FNC 71
HKY
FNC 50
REF
X000 K8
K8
FNC 50
REF
X000 Y000
Y000
D0 M0
M100
FNC270
IVCK
K6 H6F D100 K1
M100
M8029
RST
FNC 03
IRET
END
Interrupt at every 20 ms
Instruction to use M8029
in the main program
I620
Interrupt
pointer