Delta DVP-ES2 User Manual
Page 446
D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g
3-330
API Mnemonic
Operands
Function
149
MEMW P
Writing the data into
the file register
Controllers
ES2/
EX2
SS2
SA2 SX2 SE
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY KnM KnS T C D E F
S
*
m
*
*
*
n
*
*
*
7 steps
The 32-bit instruction and
DVP-SS2 are not
supported.
PULSE 16-bit 32-bit
ES2/
EX2
SS2 SA2 SX2 SE
ES2/
EX2
SS2 SA2 SX2 SE
ES2/
EX2
SS2 SA2 SX2 SE
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.
MEMW D2000 K10 K100
X0
MEMW D2000 K10 K100
X0