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.

4. Communications<br />

Exception<br />

code:<br />

Explanation:<br />

01<br />

Illegal command code:<br />

The command code received in the command message is invalid for PLC.<br />

02<br />

Illegal device address:<br />

The device address received in the command message is invalid for PLC.<br />

03<br />

Illegal device content:<br />

The data received in the command message is invalid for PLC.<br />

07<br />

1. Checksum Error<br />

- Check if the checksum is correct<br />

2. Illegal command messages<br />

- The command message is too short.<br />

- Length command message is out of range.<br />

4.3 Communication Protocol RTU mode<br />

Communication Data Structure<br />

9600 (Baud rate), 8 (data bits), EVEN (Parity), 1 (Start bit), 1 (Stop bit)<br />

START<br />

Address<br />

Command code<br />

DATA (n-1)<br />

…….<br />

DATA 0<br />

CRC CHK Low<br />

CRC CHK High<br />

END<br />

No data input ≥ 10 ms<br />

Communication Address: the 8-bit binary address<br />

Command Code: the 8-bit binary address<br />

Data Contents:<br />

n × 8-bit BIN data, n≦202<br />

CRC Checksum:<br />

The 16-bit CRC checksum is composed of 2 8-bit binary codes<br />

No data input ≥ 10 ms<br />

4.3.1 Address (Communication Address)<br />

Valid communication addresses are in the range of 0~254. Communication address equals to 0 means<br />

broadcast to all PLCs. PLC will not respond to a broadcast message. PLC will reply a normal message<br />

to the master device when communication address is not 0.<br />

Example, communication address should be set to 10 (Hex) when communicating with a PLC with<br />

address 16 (Dec) (16 in Decimal = 10 in Hex)<br />

4-7

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

Saved successfully!

Ooh no, something went wrong!