A. input register function:
temperature : 16bit unsigned integer register
humidity: 16bit unsigned integer register
address function
0000H temperature value
unit: ℃
fixed 1 decimal
(1) >0℃: register data<10000
for example: register value=250, actual temperature: 250*0.1=25℃
(2) <0℃: register data>=10000
for example: register value=10250, actual temperature: -1*(10250-10000)*0.1=25℃
------------------------------------
0001H humidity value
unit: %RH
fixed 1 decimal
for example: register value=500, actual humidity: 500*0.1=50(%RH)
------------------------------------
0002H temperature value
0003H unit: ℃ decode: 32bit float data
------------------------------------
0004H humidity value
0005H unit: %RH decode: 32bit float data
B. Hold register function:
The contents of the register are saved when power is turned off. The holding register is a readable and writable register. The value in each register is a 16-bit unsigned integer.
address function
0000H temperature value
unit: ℃
fixed 1 decimal
(1) >0℃: register data<10000
for example: register value=250, actual temperature: 250*0.1=25℃
(2) <0℃: register data>=10000
for example: register value=10250, actual temperature: -1*(10250-10000)*0.1=25℃
------------------------------------
0001H humidity value
unit: %RH
fixed 1 decimal
for example: register value=500, actual humidity: 500*0.1=50(%RH)
------------------------------------
0002H temperature value
0003H unit: ℃ decode: 32bit float data
------------------------------------
0004H humidity value
0005H unit: %RH decode: 32bit float data
------------------------------------
000AH RS485 bus address(1-255), default:1
Note: This parameter is saved after power-off and will take effect after power-on again after modification.
------------------------------------
000BH Baud rate setting:
0:4800 1:9600(default) 2:14400 3:19200 4:38400 5:56000 6:57600 7:115200
Note: This parameter is saved after power-off and will take effect after power-on again after modification.
------------------------------------
003DH Parity settings
0:None(default) 1:odd parity 2:even parity
Note: This parameter is saved after power-off and will take effect after power-on again after modification.
RS485-temperature-humidity-sensor-modbus-protocol.txt (Size: 2.72 KB / Downloads: 21)