4. Communications 4.3 Communication Protocol RTU mode Communication Data Structure 9600 ( Baud rate), 8 ( data bits), EVEN ( Parity), 1 ( Start bit), 1 ( Stop bit) 4.3.1 Address (Communication Address) Valid communication addresses are in the range of 0~254. Communication address equals to 0 means broadcast to all PLCs. PLC will not respond to a broadcast message. PLC will reply a normal message to the master device when communication address is not 0. Example, communication address should be set to 10 (Hex) when communicating with a PLC with address 16 (Dec) (16 in Decimal = 10 in Hex) 4.3.2 CMD (Command code) and DATA The content of access data depends on the command code.
For descriptions of available command codes, please refer to 4.2.2 in this chapter. Example: read consecutive 8 words from address 0614H~H61B (T20~T27) of PLC Slave ID#1. PC → PLC “ 01 03 06 14 00 08 04 80” Sent message: 4-7 START No data input ≥ 10 ms Address Communication Address: the 8-bit binary address Command code Command Code: the 8-bit binary address DATA (n-1) Data Contents: n × 8-bit BIN data, n≦202 ……. DATA 0 CRC CHK Low CRC Checksum:
The 16-bit CRC checksum is composed of 2 8-bit binary codes CRC CHK High END No data input ≥ 10 ms Field Name Example (Hex) START No data input ≥ 10 ms Slave Address 01 Command code 03 Starting Address 06 14 Number of Points 00 08 CRC CHK Low 04 CRC CHK High 80 END No data input ≥ 10 ms