
User Guide
©2008
-2021 Seeed Technology Co., Ltd. All rights reserved. solution.seeedstudio.com
11
/
22
7 RS485 Modbus Protocol
7.1 Modbus Protocol
Modbus Protocol is widely used to establish master-slave communication between intelligent
devices or sensors. A MODBUS message sent from a master to a slave contains the address of the
slave, the function code (e.g. 'read register' or 'write register'), the data, and a check sum (LRC or
CRC).
The sensor is RS485 interface with Modbus protocol. The default serial communication
settings is slave address 1, modbus rtu, 9600bps, 8 databits and 1 stop bit. All communication
settings can be changed with modbus command, and take effective after re-power up the sensor.
Following modbus function code are supported by sensor.
Modbus Function Code 0x03 : used for reading holding register.
Modbus Function Code 0x04 : used for reading input register.
Modbus Function Code 0x06 : used for writing single holding register.
Modbus Function Code 0x10: used for writing multiple holding register.
7.2 Modbus Register
Parameters
Register Addr.
(HEX/DEC)
Data
Type
Modbus
Function
Code(DEC)
Range and Comments
Default
Value
TEMPRATURE
0x0000 /0
INT16
RO
3/4
-4000-8000 for
-40.00~80.00°C.
N/A
RESERVED
0x0001 /1
UINT16
RO
3/4
0
0
EC-Electrical
Conductivity
0x0002 /2
UINT16
RO
3/4
0-20000 for
0-20000us/cm
N/A
SALINITY
0x0003 /3
UINT16
RO
3/4
0-20000 for
0-20000mg/L
N/A
TDS
0x0004 /4
UINT16
RO
3/4
0-20000 for
0-20000mg/L
N/A
RESERVED
0x0005 /5
UINT16
RO
3/4
0
0
RESERVED
0x0006 /6
UINT16
RO
3/4
0
0
RESERVED
0x0007 /7
UINT16
3/4
0
0