17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

API Mnemonic Operands Function<br />

149 MEMW P<br />

Type<br />

Writing the data into<br />

the file register<br />

<strong>ES2</strong>/<br />

<strong>EX2</strong><br />

Controllers<br />

<strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

S *<br />

m * * *<br />

n * * *<br />

<strong>ES2</strong>/<br />

<strong>EX2</strong><br />

7 steps<br />

The 32-bit instruction and<br />

<strong>DVP</strong>-<strong>SS2</strong> are not<br />

supported.<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<br />

<strong>ES2</strong>/<br />

<strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE<br />

<strong>EX2</strong> <strong>EX2</strong><br />

Operands:<br />

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

which the data is written (The value is between K0 and K4999.) n: Number of data (The number<br />

of data is between K1 and K100.)<br />

Explanations:<br />

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

2. The 32-bit instruction is not supported.<br />

3. If m, D, or n is not within the range, an operation error occurs, the instruction is not executed,<br />

M1067 and M1068 is ON, and the error code in D1067 is H’0E1A.<br />

4. Owing to the fact that the file registers take flash ROM as the memories, 100 words at most<br />

can be written into the file registers, and only when the conditional contact turns from OFF to<br />

ON can the data be written into the file registers once. Note: The data only can be written into<br />

the file registers 100,000 times. Please use them with care.<br />

5. <strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong> version 2.80 and above, <strong>DVP</strong>-<strong>SA2</strong>/<strong>SX2</strong> version 2.40 and above are<br />

supported. The instruction is not applicable to <strong>DVP</strong>-<strong>ES2</strong>-C.<br />

Program Example:<br />

1. Use MEMW to write the data from the 100 data registers starting from D2000 to the file<br />

registers starting from the tenth file register.<br />

2. When X0 turns from OFF to ON, the instruction is executed once.<br />

X0<br />

MEMW D2000 K10<br />

K100<br />

3-330

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!