Mitsubishi Electronics FX3G User Manual

Page of 964
204
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.8 MPS, MRD, MPP
3) Program example 3: Two stacks
4) Program example 4: Four stacks
In programming a circuit on the upper side, it is necessary to MPS instruction three times.
By changing the circuit on the upper side into the circuit on the lower side, the same contents can be programmed
easily without MPS instruction.
X000
X001
X002
Y000
Y001
MPP
X003
X004
X005
Y002
Y003
MPS
MPP
X006
MPS
MPS
MPP
0000  LD    X000
0001
0002  AND    X001
0003
0004  AND    X002
0005  OUT    Y000
0006
0007  AND    X003
0008  OUT    Y001
0009
0010  AND    X004
0011
0012  AND    X005
0013  OUT    Y002
0014
0015  AND    X006
0016  OUT    Y003
MPS
MPS
MPP
MPP
MPS
MPP
Circuit program
List program
X000 X001 X002 X003 X004
Y000
Y001
Y002
Y003
Y004
MPS
MPS MPS
MPS
MPP
MPP
MPP
MPP
0000  LD   X000
0001
0002  AND   X001
0003
0004  AND   X002
0005
0006  AND   X003
0007
0008  AND   X004
 MPS
 MPS
 MPS
 MPS
0009  OUT   Y000
0010
0011  OUT   Y001
0012
0013  OUT   Y002
0014
0015  OUT   Y003
0016
0017  OUT   Y004
 MPP
 MPP
 MPP
 MPP
X004
X000
X001
X002
X003
0000  LD      X000
0001  OUT   Y004
0002  AND   X001
0003  OUT   Y003
0004  AND   X002
0005  OUT   Y002
0006  AND   X003
0007  OUT   Y001
0008  AND   X004
0009  OUT   Y000
Y001
Y002
Y003
Y004
Y000
Circuit program
List program