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.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

150 MODRW MODBUS Read/ Write<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SA2</strong> <strong>SA2</strong> <strong>SX2</strong><br />

SE<br />

Type<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 1 * * *<br />

S 2 * * *<br />

S 3 * * *<br />

S *<br />

n * * *<br />

MODRW: 11 steps<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE SE SE <strong>SX2</strong><br />

Operands:<br />

S 1 : Device address (K1~K254) S 2 : Function code: K2(H2), K3(H3), K5(H5), K6(H6), K15(H0F) ,<br />

K16(H10) S 3 : Data address S: Data register n: Data length.<br />

Explanations:<br />

1. MODRW supports COM1 (RS-232), COM2 (RS-485), COM3 (RS-485). (COM3 is only<br />

applicable to <strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SA2</strong>/SE, and is not applicable to <strong>DVP</strong>-<strong>ES2</strong>-C.)<br />

2. S 1 : Address of the device to be accessed. Range: K1~K254.<br />

3. S 2 : Function code. H02: read multiple bit devices of <strong>DVP</strong>-PLC; H03: read multiple word<br />

devices of AC motor drive or <strong>DVP</strong>-PLC; H05: force ON/OFF bit device; H06: write in single<br />

word device of AC motor drive or <strong>DVP</strong>-PLC; H0F: write in multiple bit devices of <strong>DVP</strong>-PLC;<br />

H10: write in multiple word devices of AC motor drive or <strong>DVP</strong>-PLC. Only these function codes<br />

are available currently; other function codes are not executable. Please refer to the program<br />

examples below for more information<br />

4. S 3 : Address of the data to be accessed. If the address is illegal for the designated<br />

communication device, the communication device will respond with an error message and<br />

<strong>DVP</strong>-PLC will store the error code and associated error flag will be ON.<br />

• Associated registers and flags indicating errors on PLC com ports: (For detailed<br />

information please refer to Points to note of API 80 RS instruction.)<br />

PLC COM COM1 COM2 COM3<br />

Error flag M1315 M1141 M1319<br />

Error code D1250 D1130 D1253<br />

• For example, if 8000H is illegal for <strong>DVP</strong>-PLC, the error will be in indicated by different set<br />

of flags and registers. For COM2, M1141 will be ON and D1130 = 2; for COM1, M1315 =<br />

ON and D1250 = 3, for COM3, M1319 = ON and D1253 = 3. Please check the user<br />

manual of <strong>DVP</strong>-PLC for error code explanations.<br />

5. S: Registers for storing read/written data. Registers starting from S stores the data to be<br />

written into the communication device or the data read from the communication device. When<br />

3-331

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

Saved successfully!

Ooh no, something went wrong!