- Stock: In Stock
- Model: 12AI 18B20 12bit Temperature Module
This price is just a piece of module , without the 18B20 sensor,
Communication baud rate: 9600.8.N.1 Data format: hexadecimal
Communication protocol and function:
————Read the temperature ————
For example:
A module as a slave communicate with master by RS485,and,read the temperature of 12 ports .
The master send the message as this format:
Send content Bytes Send data Meaning
Slave address 1 01 No. 01 Slave
Function code 1 03 Read register
Register starting address 2 0004 The Command of reading
The number of words for reading 2 000C Read the 12 words of temperature
CRC check 2 XXXX The CRC result
The slave feedback the temperature value one by one from port0 to port11.
The feedback format from the slave:
Send content Bytes Send data Meaning
Slave address 1 01 No. 01 Slave
Function code 1 03 Read register
Feedback length 1 18 Feedback 24 bytes status value
The feedback date 24 00_AC *port0: 17.2
00_B3 port1: 17.9
FF_82 port2: -12.6
…….. ……..
FF_B1 port11: -7.9
CRC check 2 XXXX The CRC result
*The 0=”+” H0AC =172 , the value is 10 times of the real temperature, so the real temperature =172/10 =17.2
The F=”-” HFB3 =125(complement) , the value is 10 times of the real temperature, so the real temperature = 125/10 =12.5