8 Application Instructions API 100-149
DVP-PLC Application Manual
8-67
API Mnemonic Operands Function
148
D MEMR P
Read File Register
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices Word Devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
m * * *
D *
n * * *
MEMR, MEMRP: 7 steps
DMEMR, DMEMRP: 13 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
m: Address in the file register to be read D: Device for storing the read data (starting from the designated D)
n: Number of data read at a time
Explanations:
1. Range of m: K0 ~ K1,599 (SA/SX/SC); K0 ~ K9,999 (EH/EH2/SV)
2. Range of D: D2000 ~ D4999 (SA/SX/SC); D2000 ~ D9999 (EH/EH2/SV)
3. Range of n: For 16-bit instruction K1 ~ K1,600 (SA/SX/SC), K1 ~ K8,000 (EH/EH2/SV); For 32-bit instruction
K1 ~ K800 (SA/SX/SC), K1 ~ K4,000 (EH/EH2/SV)
4. See the specifications of each model for their range of use.
5. Flag: M1101. See explanations below.
6. SA/SX/SC/EH/EH2/SV uses this instruction to read the data in file registers and store them into data registers.
7. SA/SX/SC offers 1,600 16-bit file registers.
8. m and n of SA/SX/SC do not suppot E and F index register modification.
9. EH/EH2/SV offers 10,000 16-bit file registers.
10. If m, D and n fall without their range, operation error will occur. M1067, M1068 = On and D1067 will record the
error code H’0E1A.
Program Example 1:
1. The 16-bit instruction MEMR reads 100 data at address 10 in the file register and store the read data in register
D starting from D2000.
2. When X0 = On, the instruction will be executed. When X0 = Off, the instruction will not be executed and the
previously read data will remain unchanged.
X0
MEMR K10 D2000 K100
Program Example 2:
1. The 32-bit instruction DMEMR reads 100 data at address 20 in the file register and store the read data in
register D starting from D3000.
2. When X0 = On, the instruction will be executed. When X0 = Off, the instruction will not be executed and the
previously read data will remain unchanged.
X0
DMEMR
K20 D3000 K100