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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

148 MEMR P<br />

Type<br />

Reading the data<br />

from 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 />

m * * *<br />

D *<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 />

M: File register from which the data is read (The value is between K0 and K4999.) D: Initial data<br />

register where the data is stored (The data register is between D2000 and D9999.) N: Number of<br />

data (The number of data is between K1 and K5000.)<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. If no data is written into the file register, the default value which will be read from it is -1.<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 />

6. The file registers do not support M1101. If users want to read the data from the file register<br />

when the PLC runs, they can use LD M1002 and MEMR to read the data.<br />

Program Example:<br />

1. Use MEMR to read the data from the 100 file registers starting from the tenth file register to the<br />

data registers starting from D2000.<br />

2. When X0 is ON, the instruction is executed. When X0 becomes OFF, the instruction is not<br />

executed, and the data which is read previous is unchanged.<br />

X0<br />

MEMR K10 D2000 K100<br />

3-329

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

Saved successfully!

Ooh no, something went wrong!