Mitsubishi Electronics FX3G User Manual

Page of 964
227
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump
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
8.1.2
Relationship between master control instruction and jump instruction
The figure below shows the contents of operation and the relationship between the master control instruction.
Avoid using [2], [4] and [5] because the operation will be complicated.
MC N 0 M 1
CJ  P  1
MC N 0 M 0
P  1
CJ  P  0
CJ  P  2
P  2
CJ  P  3
MCR N 0
P  3
[1] Jump from outside MC
to outside MC
Jump is available
arbitrarily.
[2] Jump from outside MC
to inside MC
Jump is executed
regardless of the MC
operation.
Even if M0 is OFF, M0
is regarded as ON after
P1.
[3] Jump from inside MC to
inside MC
Jump is disabled while
M0 is OFF.
[4] Jump from inside MC to
outside MC
Jump is disabled while
M0 is OFF.
Jump is executed while
M0 is ON, but MCR is
invalid.
CJ  P  4
MCR N 0
MC N 0 M 2
P  4
MCR N 0
M
a
ster
 control
M
a
st
er control
[5] Jump from
inside MC
to inside
another
MC
Jump is enabled while M1 is ON.
In circuits after jump, M2 is regarded as ON
regardless of the actual ON/OFF status of M2.
And the first MCR N0 is ignored.
Master control
P  0