RS485 interface 30 point DS18B20 temperature recorder

Product Overview


    SR1000 Using Standards & RS485 Interfaces,based on industrial MODBUS-RTU protocol, easy access to PLCs, DCS and other instruments or systems for monitoring .it can monitoring 30 State amount.
     Internally used higher precision sensing cores and related devices to ensure high reliability and excellent long-term stability. The series selects RS232, RS485, CAN, 4-20mA, DC0-5V\10V, ZIGBEE, LORO, WIFI, GPRS and other output methods (special communication protocol can be customized).
     can be applied to a variety of locations for simultaneous monitoring of multiple points, especially for agricultural greenhouses, tunnels, weather, urban lighting, etc.

Product Pictures


SR1000

Wiring instructions


    Please wire according to the following logo or lead color. Do not use live wiring, otherwise it will damage the equipment. Carefully check the wiring and turn it on again.
Core colorIdentificationNote
REDV+Power RS485 positive electrode
GREENV-Power RS485negative electrode
YELLOWA+RS485 A+
BLUEB-RS485 B-

SR1000接线示意图

Protocol


    SR1000All operation or reply commands are hexadecimal data. Default communication baud rate:9600,8,n,1。
1 ) Read data (function code 0x03)
< Td>data length
Command descriptionDevice addressFunction codeStarting addresscheck code
Command format0103 00 00 00 1E C5 C2
Sending example01 03 00 00 00 1E C5 C2
Response command format and examples
Response descriptionDevice addressFunction codeData lengthdata 1data 2data 3data 4data 5data 6data 7data 8data 9data 10data 11data 12data 13data 14data 15data 16data 17data 18data 19data 20data 21data 22data 23data 24data 25data 26data 27data 28data 29data 30Check code
Command format0103 3C00 7900 7A00 7B00 7C00 7D00 7E00 7F00 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900 8A00 8B00 8C00 8D00 8E00 8F00 9000 9100 9200 9300 9400 9500 96 77 88
Reply Command01 03 3C 00 79 00 7A 00 7B 00 7C 00 7D 00 7E 00 7F 00 80 00 81 00 82 00 83 00 84 00 85 00 86 00 87 00 88 00 89 00 8A 00 8B 00 8C 00 8D 00 8E 00 8F 00 90 00 91 00 92 00 93 00 94 00 95 00 96 77 88
Data Format The data in the command is hexadecimal. Take data 1 as an example. 00 79 is converted to a decimal value of 121. If the data magnification is 100, the actual value is 121/100=1.21. Others and so on
2 ) Data address table
Address in Configuration SoftwareRegister addressRegister DescriptionData Type Range of values
4000100 01DS18B20温度registerunit0-65535
4010000 64Model CodeUnsigned int0-65535
4010100 65Total number of pointsUnsigned int1- 5000
4010200 66Device addressUnsigned int1-249
4010300 67Baud rateUnsigned int0- 6
4010400 68Communication ModeUnsigned int0-2
4010500 69Protocol TypeUnsigned int0-3
4010600 6AUpload time intervalUnsigned shaping0- 36000
4010700 6BDS18B20温度Correction valueunit0-65535
3 ) Read and modify device address
1. Read device address
if do not know device address and only have 1 device on rs485 bus,You can use this command to query the current Device address.
Command descriptionDevice addressFunction codeStart AddressData lengthCheck code
Command formatFA03 00 64 00 01 D0 5E
Sending exampleFA 03 00 64 00 01 D0 5E
Command descriptionFA,250 For the general address, when you do not know the address, you can use the 250 address to get the real Device address, 00 64 is the device model register, here can also be 00 66 (Device address register)。
Response Command format and examples
Response descriptionDevice addressFunction codeData lengthType IDCheck code
Response example0103 02 07 12 3A 79
Response example01 03 02 07 12 3A 79
Response descriptionThe first byte 01 indicates that the real address of the current device is 01, and the conversion from 07 12 to decimal is 1810, that is, the current device model is 1810.
2. Change device address
Command descriptionDevice addressFunction codeRegister addressCurrent AddressObject addressCheck code
Command format0106 00 66 00 01 00 02E8 14E
Sending example01 06 00 66 00 02 E8 14E
Command descriptionchange device address 1 to 2.
Response Command format and examples
Response descriptionDevice addressFunction codeRegister addressObject addressCheck code
Response example0206 00 66 00 02 E8 27
Response example02 06 00 66 00 02 E8 27
Response descriptionAfter the modification is successful, the first byte is the new Device address, which takes effect immediately.
4 ) Read and modify baud rate
1. Read baud rate
The default factory baud rate of the device is 9600. If you need to change it, you can change it according to the following table and the corresponding communication protocol.
Command descriptionDevice addressFunction codeStart AddressData lengthCheck code
Command format0103 00 67 00 01 35 D5
Sending example01 03 00 67 00 01 35 D5
Command descriptionRead the baud rate code of the current device. Baud rate coding: 1 is 2400; 2 is 4800; 3 is 9600; 4 is 19200; 5 is 38400;
Response Command format and examples
Response descriptionDevice addressFunction codeData lengthbaud rate IDCheck code
Response example0103 02 00 03F8 45
Response example01 03 02 00 03 F8 45
Response descriptionAccording to the baud rate coding, 03 is 9600, that is, the current device has a baud rate of 9600.
2. Modify baud rate
Command descriptionDevice addressFunction codeStart Addressobject baud rateCheck code
Command format0106 00 67 00 05F8 16
Sending example01 06 00 67 00 05 F8 16
Command descriptionChange the baud rate from 9600 to 38400, which will change the code from 3 to 5. The new baud rate will take effect immediately, at which point the device will lose its response or the response will be incorrect.
4 ) Read and modify Correction value
1. Read Correction value
When the data is inaccurate with the reference standard, we can reduce the display error by adjusting the Correction value . The correction difference can be modified to be plus or minus 1000, that is, the value range is 0-1000 or 64535-65535. For example, when the display value is too small, 100We correct by adding 100. In the command, 100 is hexadecimal 0x64; if it needs to be reduced, you can set a negative value, such as -100, corresponding to the hexadecimal value of FF 9C, which is calculated as 100-65535=65435, then turn to ten The hexadecimal is 0x FF 9C.
Correction value is start from 00 6B,Let us take the first parameter as an example. When multiple parameters are used, the Correct value is read and modified in the same way.
Command descriptionDevice addressFunction codeRegister addressData lengthCheck code
Command format0103 00 6B 00 01 F5 D6
Sending example 01 03 00 6B 00 01 F5 D6
Command description00 6B is the first state quantity Correction value register.
Response Command format and examples
Response descriptionDevice addressFunction codeRegister addressCorrection parameterCheck code
Response example0103 0200 64B9 AF<
Response example 01 03 02 00 64 B9 AF
Response descriptionCurrent device register.
2. Modify Correction value
Command descriptionDevice addressFunction codeStart AddressCorrection valueCheck code
Command format0106 00 6B 00 64 F9 FD
Sending example01 06 00 6B 00 64 F9 FD
Command description The current value plus 100 correction operation.
Response Command format and examples
Response descriptionDevice addressFunction codeRegister addressCorrection parameterCheck code
Response example0106 00 6B 00 64F9 FD
Response example01 06 00 6B 00 64 F9 FD
Response descriptionThe parameters take effect immediately after a successful change.
Setup Software
Development File
Online shop

ALIEXPRESS Go to Purchase

Contact Online

Email: sale@sonbest.com

BRAND: KLHA

TYPE: SR1000

WeChat: 13918126020

SKYPE: SOOBUU

Phone: +86-021-66862075

QQ1: 71182854 QQ2:613035997