3. Instruction Set
API
Mnemonic Operands Function
149 MEMW P
Writing the data into
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
X2
SE
SS2
SA2
SX2
SE
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.
n: Number of data (The number of data is between K1 and K100.)
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. 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.
4. The range of supported operands m and n:
SA2/SX2
ES2/EX2
Should work with a
V1.08 and later K0 ~ K7999 K1~K100
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