Protocol
6
Example:
Send frame: [01 04 00 02 00 02 D0 0B], meaning as follows:
[01]: slave address
[04]: function code
[00 02]: The starting address of the register is 0x02
[00 02]: Read 2 registers from the starting address (ie, read 1 single-precision floating-point
data result)
[D0 0B]: CRC check data
Return frame: [01 04 04 00 00 41 C8 CA 42], meaning as follows:
[01]: slave address
[04]: function code
[04]: The number of bytes returned is 4
[00 00 41 C8]: 41 C8 00 00 (that is, the floating-point value is 25, the specific value meaning
is to find the corresponding address)
(Note: Combine two 16-bit integer registers to form a single-precision floating-point number,
pay attention to the order of the data)
4.2 Corresponding parameter table of communication address
Main measurement (read with function code 04)
Parameter
Address
Data Format
Value Range Initial Value
Illustrate
Main measured value
2
32 Bit Float
-2000
~
+2000
-
Unit: mV
Temp. measurement
4
32 Bit Float
0
~
50
-
Unit: Celsius
Communication parameters (read with function code 03, write with function code 06)
Parameter
Address
Data Format
Value range
Initial Value
Illustrate
Address
0
Unsigned
1
~
254
9
-
Baud rate
1
Unsigned
0
~
3
1
0
:
4800
1
:
9600
2
:
19200
3
:
38400
Check Digit
2
Unsigned
0
~
2
0
0: no verification
1: Even parity
2: odd parity
Stop bit
3
Unsigned
1
~
2
1
1:1 bit
2: 2 bits
Summary of Contents for DRH7
Page 1: ...Digital ORP Sensor User Manual Model DRH7 Version 1 0 Daruifuno ...
Page 2: ......
Page 4: ......
Page 15: ......
Page 16: ...Delfino Environmental Technology Co Ltd www daruifuno com info daruifuno com ...