RS485 interface current and voltage acquisition module

team-img

RS485 interface current and voltage acquisition module
TYPE:SM9101B

Email: sale@sonbest.com

SKYPE: SOOBUU

Phone: +86-021-66862075

QQ1: 71182854 QQ2:613035997

Product Overview


    SM9101B 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 1 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).

Product Pictures


SM9101B

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-

SM9101B接线示意图

Protocol


    SM9101BAll 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 01 84 0A
Sending example01 03 00 00 00 01 84 0A
Response command format and examples
Response descriptionDevice addressFunction codeData lengthdata 1Check code
Command format0103 0200 79 79 A6
Reply Command01 03 02 00 79 79 A6
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 01DC5V电压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 6BDC5V电压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
parameters Technical Specifications
Input Signal DC0-5V voltage
Communication Interface RS485
Default baud rate 9600,8,n,1
Power DC6~24V 1A
Running temperature-30~80°C
Working humidity15%RH~90%RH (no condensation)