DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
API
Mnemonic Operands Function
148 MEMR P
Reading the data
from the file register
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
7 steps
The 32-
DVP-SS2 are not
SS2
S
SE
SS2
SX2
SE
SA2
SX2
SE
Operands:
m: File register from which the data is read.
D: Initial data register where the data is stored (The data register is between D2000 and D9999.)
n: Number of data
Explanations:
1. The 32-bit instruction is not supported.
2. If m, D, or n is not within the range, an operation error occurs, the instruction is not executed,
M1067 and M1068 is ON, and the error code in D1067 is H’0E1A.
3. If no data is written into the file register, the default value which will be read from it is -1.
4. The file registers do not support M1101. If users want to read the data from the file register
when the PLC runs, they can use LD M1002 and MEMR to read the data.
5. The range of supported operands m and n:
SA2/SX2
ES2/EX2
Should work with a
V1.08 adn later K0 ~ K7999 K1~K8000
Program Example:
1. Use MEMR to read the data from the 100 file registers starting from the tenth file register to the
data registers starting from D2000.
2. When X0 is ON, the instruction is executed. When X0 becomes OFF, the instruction is not
executed, and the data which is read previous is unchanged.