DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

149

Mnemonic

Operands

Function

Controllers

MEMW

P

Writing the data into

ES2/

SS2

SA2

SX2

SE

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The 32-bit instruction and

S

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

m

 

 

 

 

*

*

 

 

 

 

 

 

*

 

 

DVP-SS2 are not

n

 

 

 

 

*

*

 

 

 

 

 

 

*

 

 

supported.

PULSE

ES2/EX2 SS2 SA2 SX2 SE

 

E

 

 

 

16-bit

 

 

 

 

32-bit

 

S2/

 

SS2

SA2

SX2

SE

ES2/

SS2

SA2

SX2

SE

EX2

 

 

 

 

 

 

 

 

EX2

 

 

 

 

Operands:

S: Initial source device (The data register is between D2000 and D9999.) m: File register into

which the data is written (The value is between K0 and K4999.) n: Number of data (The number of data is between K1 and K100.)

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.Owing to the fact that the file registers take flash ROM as the memories, 100 words at most can be written into the file registers, and only when the conditional contact turns from OFF to ON can the data be written into the file registers once. Note: The data only can be written into the file registers 100,000 times. Please use them with care.

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.

Program Example:

1.Use MEMW to write the data from the 100 data registers starting from D2000 to the file registers starting from the tenth file register.

2.When X0 turns from OFF to ON, the instruction is executed once.

X0

MEMW D2000 K10 K100

3 - 330

Page 446
Image 446
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Writing the data into