Mitsubishi Electronics FX3G User Manual

Page of 964
177
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.5 General Rules for Applied Instructions
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction 
Li
st
4
D
evices 
in Det
ai
l
5
Specifi
ed the
De
vice
 &
 
C
onst
ant
6
Bef
ore
 
Pr
og
ra
mmi
ng
7
Bas
ic 
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
Operati
on
2. Introduction of method for using flags in any positions other than directly under applied 
instructions
When two or more applied instructions are programmed, general flags turn ON or OFF when each applied instruction
turns ON.
Accordingly, when using a flag in any position other than directly under an applied instruction, set to ON or OFF
another device just under the applied instruction, and then use the contact of the device as the command contact.
M8000
FNC 72
DSW
X10
Y10
D0
K1
FNC 22
MUL
D0
K10
D20
M8029
Execution is
completed
M0
FNC 57
DPLSY
K1000
D20
Y000
M8029
Execution is
completed
DSW execution
complete flag
M8029 is
changed to
M100.
M100
M200
DPLSY
execution
complete flag
M8029 is
changed to
M200.
M100
It works as DSW
execution
complete flag.
RST
M0
M200
It works as
DPLSY execution
complete flag.
Y030
...
...