6> Modbus Rs-485 Communication Function - S&A CW-6300 User Manual

Industrial chiller
Table of Contents

Advertisement

<6> MODBUS RS-485 communication
function
This system adapts salve mode of MODBUS-RTU communication,9600 baud rate,
no parity checking,8 data bit,1 stop bit and support MODBUS-RTU 03 (Read
Holding Registers) and 06 (Read Holding Registers) commands. Communication
formats are as below:
1. Command format 03
Host send command
Function code
Initial address
Register number
Slave response
Function code
Number of bytes
Register value
Error
Error code
Exception code
For example: if the host's sending address is 1, requests 108-110 command of
slave read register and send 01 03 00 6B 00 03 XX YY,thereinto,01 as slave address,
03 as function code, 00 6B as initial address, 00 03 as register number and XX YY
as the result of CRC verification.
Slave response: 01 03 06 02 2B 00 00 00 64 XX YY, thereinto, 01 as slave address,
03 as function code, 06 as number of bytes, 02 2B 00 00 00 64 corresponding to the
values in 108-110 of register respectively and XX YY as verification code.
If the slave receives wrong data, return to data 01 83 01 XX YY, thereinto, 01 as
slave address. 83 as error code, 01 as exception code and XX YY as check sum.
2. Command format 06
Host send command
Function code
Register address
Register value
1 bytes
0x03
From 0x0400 to 0x044a, From 0x0100 to 0x0108,
2 bytes
From 0x0800 to 0x0803
2 bytes
From 1 to 10
1 bytes
0x03
2*N( "N" is the number of registers )
1 bytes
N*2 bytes
1 bytes
0x83
1 bytes
01 or 02 or 03 or 04
1 bytes
0x06
2 bytes
From 0x0400 to 0x044a
2 bytes
From 0x000 to 0xffff
13
CW-6300 Series

Advertisement

Chapters

Table of Contents
loading

Table of Contents