5 Basic Instruction
5.7 MPS, MRD, MPP
76
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
3. Program example 3 (Two stacks)
4. Program example 4 (Four stacks)
In programming a circuit on the upper side, it is necessary to use 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
X003
X004 X005
X006
Y000:= (MPS(X000) AND MPS(X001)) AND X002;
Y001:= MPP(TRUE) AND X003;
Y002:= (MPP(TRUE) AND MPS(X004)) AND X005;
Y003:= MPP(TRUE) AND X006;
[Structured ladder/FBD] [ ST ]
Y000
Y001
Y002
Y003
MPS
EN ENO
MPP
EN ENO
MPS
EN ENO
MPP
EN ENO
MPS
EN ENO
MPP
EN ENO
X000 X001 X002 X003 X004
X004
X000
X001
X002
X003
Y004:= X000;
Y003:= Y004 AND X001;
Y002:= Y003 AND X002;
Y001:= Y002 AND X003;
Y000:= Y001 AND X004;
[Structured ladder/FBD]
[ ST ]
MPS
EN ENO
Y000
Y001
MPS
EN ENO
MPS
EN ENO
MPS
EN ENO
MPP
EN ENO
Y002
MPP
EN ENO
Y003
MPP
EN ENO
Y004
MPP
EN ENO
Y000:= (((MPS(X000) AND MPS(X001)) AND MPS(X002)) AND MPS(X003)) AND X004;
Y001:= MPP(TRUE);
Y002:= MPP(TRUE);
Y003:= MPP(TRUE);
Y004:= MPP(TRUE);
[Structured ladder/FBD]
Y004
Y003
Y002
Y001
Y000
[ ST ]