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

PLC data receiving register:<br />

Register Data Descriptions<br />

D0<br />

1234 H<br />

PLC converts the data in address 0500H ~ 0515H and stores the<br />

converted data automatically.<br />

Analysis of the read status of PLC2 Y0~Y17: 1234H<br />

Device Status Device Status Device Status Device Status<br />

Y0 OFF Y1 OFF Y2 ON Y3 OFF<br />

Y4 ON Y5 ON Y6 OFF Y7 OFF<br />

Y10 OFF Y11 On Y12 OFF Y13 OFF<br />

Y14 ON Y15 OFF Y16 OFF Y17 OFF<br />

5. Relative flags and data registers when COM1 / COM2 / COM3 works as Master:<br />

COM2 COM1 COM3 Function<br />

M1120 M1138 M1136 Retain communication setting<br />

COM.<br />

setting<br />

Sending<br />

M1143 M1139 M1320 ASCII/RTU mode selection<br />

D1120 D1036 D1109 Communication protocol<br />

D1121 D1121 D1255 PLC communication address<br />

M1122 M1312 M1316 Sending request<br />

request D1129 D1249 D1252 Set value for data receiving timeout (ms)<br />

Receiving<br />

completed<br />

M1127 M1314 M1318<br />

Data receiving completed<br />

- M1315 M1319 Data receiving error<br />

- D1250 D1253 Communication error code<br />

M1129 - - Receiving timeout<br />

Errors<br />

M1140 - - Data receiving error<br />

M1141 - -<br />

Parameter error. Exception Code is stored in<br />

D1130<br />

D1130 - -<br />

Error code (Exception code) returning from<br />

Modbus communication<br />

Program Example 3: COM2 (RS-485), Function Code H03<br />

1. Function code K3 (H03): read multiple Word devices. Up to 16 words can be read. For COM2<br />

ASCII mode, only 8 words can be read.<br />

2. For ASCII or RTU mode, PLC COM2 stores the data to be sent in D1256~D1295, converts the<br />

received data in registers starting from S, and stores the converted 16-bit data in D1296 ~<br />

D1311.<br />

3-337

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

Saved successfully!

Ooh no, something went wrong!