
16
32
8
64
16
32
8
64
16
32
8
64
Greystone Energy Systems, Inc. 150 English Drive, Moncton, NB E1E 4G7 Canada Tel: +1-506-853-3057 Tollfree (North America): +1-800-561-5611 Fax: +1-506-853-6014
Email: [email protected] Web: www.greystoneenergy.com
ModBus Register Addressing
ModBus
Address
Typical
Offset
Units
Data
Type
Access
Notes
40001
+0
°C/°F
Word
Read
16-bit integer, TEMPERATURE_VALUE x 10
Multiplier = 10
-400 to 1000 for -40.0 to 100.0 °C,
-400 to 2120 for -40.0 to 212.0 °F
40002
+1
%RH
Word
Read
16-bit integer, RELATIVE_HUMIDITY_VALUE
Multiplier = 10
0 to 1000 for 0.0 to 100.0 %RH
40003
+2
°C/°F
Word
Write
16-bit integer, TEMPERATURE_OFFSET =
-10 to 10
C_OFFSET = TEMPERATURE_OFFSET / 2 =
-5.0 to 5.0 °C
F_OFFSET = TEMPERATURE_OFFSET =
-10 to 10 °F
40004
+3
%RH
Word
Write
16-bit integer, RH_OFFSET = -10 to 10
RH_OFF = RH_OFFSET = -10 to 10 %RH
40005
+4
Word
Write
16-bit integer, TEMPERATURE_UNITS
0 = °C, 1 = °F
RTU Function Codes
0x03 --- Read holding registers
Query
Slave address
(0x01 to 0xFF)
Function
code (0x03)
Starting
address MSB
Starting
address LSB
Quantity of
registers MSB
Quantity of
registers LSB
CRC
LSB
CRC
MSB
* Starting address = 0x0000 to 0xFFFF, Quantity of registers = 0x0000 to 0x007D
Response
Slave address
(0x01 to 0xFF)
Function
code (0x03)
Byte count
2N
Register
value MSB
Register
value LSB
…
CRC
LSB
CRC
MSB
* N= Quantity of registers
0x06 --- Write single register
Query
Slave address
(0x01 to 0xFF)
Function
code 0x06
Register
address MSB
Register
address LSB
Register
value MSB
Register
value LSB
CRC
LSB
CRC
MSB
Response
Slave address
(0x01 to 0xFF)
Function
code 0x06
Register
address MSB
Register
address LSB
Register
value MSB
Register
value LSB
CRC
LSB
CRC
MSB
* Register address = 0x0000 to 0xFFFF, Registers value = 0x0000 to 0xFFFF
Exception response
Slave address
(0x01 to 0xFF)
Function
code + 0x80
Exception code
0x01, 0x02 or 0x03
CRC
LSB
CRC
MSB
* An exception response is only returned if the CRC is correct
Exception code 01 --- illegal function, 02 --- illegal address, 03 --- illegal data value