If you choose to bring with RS485 communication interface, temperature: (0-50) ℃
The default precision, with LCD display temperature and humidity transmitter, model JCJ100NR4T1H1C
Communication Description:
ZRN-WS-D Through standard RS232 or RS422 / 485 communication port can be directly connected to a computer communications, compatible with both protocols at the same time:
A communication protocol (in REpower Protocol):
Communication protocol as follows:
Communication format: 1 start bit, 8 data bits, no parity, 1 stop bit.
All bytes HEX format, the command format is as follows:
Data is read from the sensor instruction format:
| Sensor address | Read data instruction | The first two bytes XOR checksum |
Address: One byte such as:. 00H indicates that the address is set to 00 sensors
Read data instruction: 00H indicates a byte MCU PC To read the contents.
XOR checksum: a byte value before or after the two bytes dissimilar.
Sensor return data format:
| Native address | Eight low temperature sample values | Temperature high eight samples | Humidity low eight samples | Humidity high eight samples | The first five-byte XOR checksum |
Native Address: sensor return address of the machine, one byte.
Temperature low eight samples: a byte, 00-FF hexadecimal values.
Temperature high eight samples: a byte, 00-03 actually hexadecimal values.
Humidity low eight samples: a byte, 00-FF actual hex value.
Humidity high eight samples: a byte, 00-03 actual hex value.
The first five-byte XOR checksum values: hexadecimal value after the first five bytes of XOR.
PC, read samples from the lower machine process:
Every PC confidential data to be transmitted when reading a data read instruction to the sensor, if the sensor correctly receives the return data to the PC. If the sensor receives the incorrect answer .PC should not read data retransmission instruction to the sensor .
Note: All data are hexadecimal numbers, at any time, did not receive the response of the sensor data must be retransmitted to read instructions to the sensor If, PC issues a read data command.
PC range conversion method:
Let: A starting temperature value, B full scale temperature value, D sampling value PC (converted to decimal value after) the current temperature value = D * (BA) / 1024 + A
Such as: temperature range (-40-80) ℃, the actual temperature value = sample value * (80- (-40)) / 1024 + (-40) = Sample value * 120 / 1024-40
Humidity actual value = Sample value * 100/1024 can be.
Communication Agreement II (standard MODBUS-RTU communication protocol):
Using the standard MODBUS communication protocol when using the configuration software, are required to use the equipment for MODICON (Modicon) of the PLC, MODBUS-RTU address type data to an integer 16. Supports MODBUS protocol 03H, 04H, 06H instruction ( 03H, 06H read and write parameters, 04H read the measured value),
Parameter Register Address
| parameter | Settings | The factory default | Communication instruction | Register Address |
| Temperature measurements | / | / | 04H | 00H |
| Humidity measurements | / | / | 04H | 01H |
| Native address | 0-255 | 1 | 03H, 06H | 00H |
| Baud rate | 300-19200 | 9600 | 03H, 06H | 01H |
| Temperature corrected translation | -99.9-99.9 | 0.0 | 03H, 06H | 02H |
| Humidity correction translation | 0-99.9 | 0.0 | 03H, 06H | 03H |
| The lower limit temperature transmitter | -99.9-99.9 | -40.0 | 03H, 06H | 64H |
| The upper limit of the temperature transmitter | -99.9-99.9 | 80.0 | 03H, 06H | 65H |
Example 1: read the temperature measured value (measured value = 1000)
Send data: 01 04 00 00 00 01 31 CA
Among them, 01 are native address, 04 is communication instruction, 0000 is the starting address register, 0001 represents read a number, 31 CA is a checksum.
Returns data: 01 04 02 03 E8 B9 8E (which corresponds to 03 E8 measured value)
Among them, 01 are native address, 04 is communication instruction, 02 returned values of bytes of data that is measured, B9 83 to test the code.
Example 2: Read parameter value the machine address (local address = 1)
Send data: 01 03 00 00 00 01 84 0A
Among them, 01 are native address, 03 is communication instruction, 0000 is the starting address register, 0001 represents read a number, 84 0A is the checksum.
Returns data: 01030200017984
Among them, 01 are native address, 03 is communication instruction, 02 returned values of bytes of data that is the address of the machine, the 7984 is a check code.
Example 3: Write parameter value of the machine address (local address = 1, write a value of 2)
Send data: 01 06 00 00 00 02 08 0B
Among them, 01 are native address, 06 is communication instruction, 0000 is a register address, 0002 represents a parameter value, 08 0B is the checksum.
Return data and send the data is consistent.
Note: For industrial configuration software
Temperature and humidity measurements, respectively register 3x001 and 3x002;
Device address registers used for the 4x001;
Baud rate registers used as: 4x002;
Temperature deviation correction using registers: 4x003;
Humidity bias correction using registers: 4x004;
The lower limit temperature transmitter used registers: 4x101;
The lower limit temperature transmitter used registers: 4x102;
RS485
ZRN-WS-D Series RS-485 communication lines using shielded twisted pair, and one end of RS-232/485 converter module to the computer's serial port and the other end to the RS-485 module communication terminals connected mode as shown:
Core shielded cable shield is preferably a single-ended device is connected to the protective ground. When a computer linked to more than one meter, network topology bus, and each device must be directly connected to the mains . To reduce signal reflection interference Alternatively relay module communication distance is long.