Справочник Пользователя для Mitsubishi Electronics FX3G

Скачать
Страница из 964
817
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.5 Timer Interrupt (Interrupt in Constant Cycle)
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
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