Справочник Пользователя для Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G
197
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.8 MPS, MRD, MPP
1
In
trodu
ct
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion
Li
st
4
D
evices
in D
etail
etail
5
Specifi
ed t
he
he
D
evice &
C
onst
ant
ant
6
Bef
ore
ore
Pr
ogr
am
am
m
ing
7
B
asic
In
st
ru
ct
ion
8
FNC0
0-F
0-F
NC0
9
Pr
ogr
am
Flow
am
Flow
9
FN
C
C
10-FN
C
19
Mo
ve
ve
&
Co
mp
are
are
10
FNC2
0-F
0-F
NC2
9
Ar
ith.
&
&
Logic
O
per
ati
ati
on
7.8
MPS, MRD, MPP
Outline
FX
3G,
FX
3U
and FX
3UC
PLCs have 11 memories called "Stack" which store the intermediate result (ON or OFF) of
operations.
1. Instruction format
2. Applicable devices
Explanation of function and operation
These instructions are convenient in programming branched multi-output circuits.
1. MPS, MRD, and MPP instructions (stores the current result of the internal PLC operations, reads
the current result of the internal PLC operations, and pops (recalls and removes) the currently
stored result)
stored result)
• Use MPS instruction to store the intermediate result of operation, and then drive the output Y002.
• Use MRD instruction to read the stored data, and then drive the output Y003.
• Use MRD instruction to read the stored data, and then drive the output Y003.
MRD instruction can be programmed as many times as necessary.
• In the final output circuit, use MPP instruction instead of MRD instruction.
MPP instruction reads the stored data described above, and then resets it.
Instruc-
tion
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modify K H
E
"
"
P
MPS
There are no applicable devices.
MRD
There are no applicable devices.
MPP
There are no applicable devices.
Memory Point Store
MPS
Basic Instruction
1 step
MPS
−
Continuous
Operation
Pulse (Single)
Pulse (Single)
Operation
Mnemonic
Operation Condition
MRD
Memory Read
Basic Instruction
1 step
MRD
−
Continuous
Operation
Pulse (Single)
Pulse (Single)
Operation
Mnemonic
Operation Condition
MPP
Memory POP
Basic Instruction
1 step
MPP
−
Continuous
Operation
Pulse (Single)
Pulse (Single)
Operation
Mnemonic
Operation Condition
X004
X005
Y002
Y004
X006
Y003
MPS
MRD
MPP
Y005
MRD
[2]
[1]
[1]
MPP
MRD
MPS
MPP
Stack
1
2
3
2
3
10
11
11
0018 LD
X004
0019
0020 AND X005
0021 OUT Y002
0022
0023 AND X006
0024 OUT Y003
0025
0026 OUT Y004
0027
0028 AND X007
0029 OUT Y005
0030 END
0020 AND X005
0021 OUT Y002
0022
0023 AND X006
0024 OUT Y003
0025
0026 OUT Y004
0027
0028 AND X007
0029 OUT Y005
0030 END
MPS
MRD
MRD
MPP
18
X007