3. Instruction Set

API

Mnemonic

Operands

Function

Controllers

148

MEMR

P

 

 

Reading the data

 

 

ES2/

SS2

SA2 SX2

SE

 

 

from the file register

 

EX2

 

 

 

 

 

 

 

 

 

 

 

 

 

Type

Bit Devices

 

Word devices

 

 

 

 

Program Steps

OP

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

7 steps

 

 

m

 

 

 

 

*

*

 

*

 

 

The 32-bit instruction and

D

 

 

 

 

 

 

 

*

 

 

DVP-SS2 are not

 

n

 

 

 

 

*

*

 

*

 

 

supported.

 

 

 

 

 

 

 

PULSE

 

16-bit

 

32-bit

 

ES2/

SS2

SA2

SX2

SE

ES2/

SS2

SA2

SX2

SE

ES2/

SS2

SA2

SX2

SE

EX2

EX2

EX2

Operands:

 

M: File register from which the data is read (The value is between K0 and K4999.)

D: Initial data

register where the data is stored (The data register is between D2000 and D9999.)

N: Number of

data (The number of data is between K1 and K5000.)

 

Explanations:

1.There are 5,000 16-bit file registers. The register numbers range from K0 to K4999.

2.The 32-bit instruction is not supported.

3.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.

4.If no data is written into the file register, the default value which will be read from it is -1.

5.DVP-ES2/EX2/SS2 version 2.80 and above, DVP-SA2/SX2 version 2.40 and above are supported. The instruction is not applicable to DVP-ES2-C.

6.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.

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.

X0

MEMR K10 D2000 K100

3 - 3 2 9

Page 445
Image 445
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Memr K10 D2000 K100