If the sensor is equipped with our data logger, directly use the sensor cable to connect the sensor with the corresponding interface on the data logger
If the sensor is purchased separately, the order of the wires as followed:
1. If you are using a single sensor connected to the computer to read data directly, it is recommended to use the ASCII private protocol , you can visual display in ASCII (hex send, non-hex receive);
2. If you are multi-sensor connected to the PLC,configuration or access programmable collector, it is recommended to use the Standard ModBus-RTU protocol (see below, hex send and receive)
1. .The serial format 8 data bits, 1 stop bit, no parity bit. Baud rate 9600 bps, serial debugging software set to send and receive hex, the two communication intervals of at least 1000ms, the instructions in the CRC for the parity bit, two bytes. Default address.
2. If you are multi-sensor connected to the PLC,configuration or access programmable collector, it is recommended to use the Standard ModBus-RTU protocol (see below, hex send and receive)
Communication Format
Send |
00 |
10 |
01 |
01 |
C1 |
B1 |
Description |
Old address |
|
|
New address |
CRC Check |
Return |
00 |
10 |
01 |
01 |
C1 |
B1
|
Description |
Old address |
|
|
01Write success 00 Write fail |
CRC Check |
Read device address(eg: read device address 01)
Send |
00 |
03 |
00 |
01 |
00 |
01 |
D4 |
1B |
Description |
Address |
|
|
|
|
|
CRC Check |
Return |
00 |
03 |
02 |
00 |
01 |
44
| 44 |
Description |
Address |
|
|
|
Device address |
CRC Check |
Read device baud rate (eg: read baud rate =9600)
Send |
01 |
03 |
00 |
01 |
00 |
01 |
85 |
CF |
Description |
Address |
Read |
Start Address |
Read points |
CRC Check |
Return |
01 |
03 |
00 |
10 |
00 |
01
| 85 |
CF |
Description |
Address |
Read |
Data Length |
Device address |
CRC Check |
Baud rate = data*4800. Return data 00 02, then baud rate =4800*2=9600
Write device communication baud rate (e.g.: write baud rate of 9600.)
Send |
01 |
06 |
00 |
01 |
00 |
02 |
09 |
CF |
Description |
Address |
Write |
Start Address |
New baud rate |
CRC Check |
Return |
01 |
06 |
00 |
01 |
00 |
02 |
09 |
CF |
Description |
Address |
Write |
Start address |
New baud rate |
CRC Check |
Baud rate = data *4800. Return data 00 02, then baud rate =4800*2=9600. The supported baud rates are 4800, 9600,14400, 19200, 38400, 57600, 115200. If other unsupported baud rates are written, they will be automatically restored to 9600 after restart. If returns 01 86 ****, it indicates that the configuration was not successful.
Read temperature humidity & pressure data(eg: read data of address)
Send |
01 |
03 |
00 |
00 |
00 |
03 |
05 |
CF |
Description |
Address |
|
Start Address |
Read points |
CRC Check |
Return |
01 |
03 |
06 |
27 |
1A |
01 |
ID |
02 |
AD |
2F |
47 |
Description |
Address |
|
Data Byte |
Pressure |
Temperature |
Humidity |
CRC Check |
Sensor returned data is 0x271A 0x011D,0x02AD which will convert to decimalism, and add 1 decimal point,which are mean pressure value 1001.0hPa, temperature value 28.5, humidity value 68.5% RH
Read temperature and humidity integrative data(eg: read data of address 1)
Send |
01 |
03 |
00 |
00 |
00 |
02 |
c4 |
0B |
Description |
Address |
|
Start Address |
Read points |
CRC Check |
Return |
01 |
03 |
04 |
01 1D |
02 AD |
AB |
14 |
Description |
Address |
|
Data Byte |
Temperature |
Humidity |
CRC Check |
Sensor returned data is 0x011D,0x02AD which will convert to decimalism, and add 1 decimal point,which are mean temperature value 28.5, humidity value 68.5% RH.
Read individual data of temperature/ humidity/pressure(e.g read data of address 1)
Send |
01 |
03 |
00 |
00 |
00 |
01 |
84 |
0A |
Description |
Address |
|
Start Address |
Read points |
CRC Check |
Return |
01 |
03 |
02 |
01 |
ID |
79 |
DD |
Description |
Address |
|
Data Byte |
Temperature (Humidity /Pressure) |
CRC Check |
Sensor returned data is 0x011D which will convert to decimalism, and add 1 decimal point, which is mean temperature value 28.5.
Change communication protocol (eg. Switching to ASCII protocol)
Send |
01 |
06 |
00 |
14 |
00 |
03 |
89 |
CF |
Description |
Address |
Write |
Start Address |
01-MODBUS 03-ASCII |
CRC Check |
Return |
01 |
06 |
00 |
14 |
00 |
03 |
89 |
CF |
Description |
Address |
Write |
Start address |
data |
CRC Check |
Return 01 86 ****it indicates that the configuration was not successful. Change the protocol from 01-MODBUS to 03-ASCII.
1. The serial format Data bit 8, stop bit 1, parity bit none. Baud rate 9600bps, two communication intervals at least 1000ms
Communication format 【 1 】 Write new device address(e.g: write address 01)Communication format 【 1 】 Write new device address(e.g: write address 01)
ASCII Private protocol
Send |
AA |
00 |
10 |
00 |
01 |
Description |
Start |
Broadcast address |
Write |
Write address |
New address |
Return |
OK |
Description |
Write new address successfully |
【2】Read device address
Send |
AA |
00 |
03 |
00 |
00 |
Description |
Start |
Broadcast address |
Read |
Read address |
|
Return |
Address=001 |
Description |
Read address is 1 |
【3】Read real-time data
Send |
AA |
01 |
03 |
0F |
00 |
Description |
Start |
Device address |
Read |
Read address |
|
Return |
T=-20℃,H=60.1%RH,P=1010.1hPa |
Description |
Return value is temperature, humidity and pressure |
【4】Change protocol (eg.: switching to MODBUS protocol)
Send |
AA |
01 |
10 |
01 |
01 |
Description |
Start |
Address |
Write |
Write protocol |
01-MODBUS 03-ASCII |
Return |
OK |
Description |
Write new protocol successfully |
Change the protocol from 03-ASCII to 01-MODBUS. In the above description, the transition characters such as spaces are ignored. Serial software (such as SSCOM3.3) check HEX sent, do not check the HEX display. After the device is powered on, it will return start.
【Modbus CRC Check steps
1. Preset 16-bit register hexadecimal FFFF, said the register for the CRC register
2. The first 8-bit data and CRC register low or XOR, the result placed in the CRC register
3. The contents of the register to the right one (toward the low),with 0 to fill the most significant bit, check the lowest bit
4. If the least significant bit is 0: Repeat step 3 (shift again) If the least significant bit is 1: The CRC register is XOR'ed with the polynomial A001 (1010 0000 0000 0001)
5. Repeat steps 3 and 4 until 8 shifts to the right so that the entire 8-bit data is completely processed
6. Repeat step 2 to step 5 for the next 8-bit data processing
7. The resulting CRC register is the CRC code (the resulting CRC code is low after high).
Attentions in Use
1.Please check the packaging is intact, and check the product model is consistent with the selection.
2. Do not live wiring, check the wiring is completed after the correct power.
3. Sensor length will affect the product output signal, do not use when changing products, if there is a need to change, please contact with the manufacturer.
4.. Sensor is a precision device, the user when in use,please do not disassemble, with sharp objects or corrosive liquid contact with the sensor surface, so as not to damage the product.
Trouble shooting
1.Analog signal or RS232, RS485 output instrument display value is not correct. May not be able to get the correct data due to wiring problems or communication serial port failure. Please check the wiring is correct, solid,serial port is occupied, the serial port settings are correct.
2. . If not for the above reasons, please contact the manufacturer.