SONBEST SM2130B-H2 RS485 Hydrogen H2 Sensor User Manual
File Version: V21.3.24
Product Overview
The SM2130B-H2 is an RS485 interface protection type hydrogen H2 sensor. It utilizes the standard RS485 bus MODBUS-RTU protocol, allowing for easy integration with PLCs, DCS, and other instruments for monitoring hydrogen state quantities. It features a high-precision sensing core for reliability and long-term stability. The sensor can be customized with various output methods including RS232, RS485, CAN, 4-20mA, DC0~5V/10V, ZIGBEE, Lora, WIFI, and GPRS.
Technical Parameters
Technical Parameter | Parameter Value |
---|---|
Brand | SONBEST |
H2 Range | 0~1000ppm |
H2 Accuracy | ±7%FS |
Communication Interface | RS485 |
Default Baud Rate | 9600 8 n 1 |
Power | DC9~24V 1A |
Dimensions | 110mm×85mm×42mm |
Wiring Instructions
Incorrect wiring can cause irreversible damage. Please wire the cable carefully as follows in the case of power failure. After connecting the cable, confirm correctness before use.
ID | Core Color | Identification | Note |
---|---|---|---|
1 | Red | V+ | Power + |
2 | Green | V- | Power - |
3 | Yellow | A+ | RS485 A+ |
4 | Blue | B- | RS485 B- |
In the case of broken wires, refer to the wire colors shown. If the product has no leads, the core color is for reference.
Communication Protocol
The product uses the RS485 MODBUS-RTU standard protocol. All operation or reply commands are hexadecimal data. The default device address is 1, and the default baud rate is 9600, 8, n, 1.
1. Read Data (Function ID 0x03)
Inquiry frame (hexadecimal) example: To query data for device 1, the host computer sends the command: 01 03 00 00 00 01 84 0A
.
Device ID | Function ID | Start Address | Data Length | CRC16 |
---|---|---|---|---|
01 | 03 | 00 00 | 00 01 | 84 0A |
For a correct query frame, the device will respond with data, e.g., 01 03 02 00 79 79 A6
. The response format is parsed as follows:
Device ID | Function ID | Data Length | Data 1 | Check Code |
---|---|---|---|---|
01 | 03 | 02 | 00 79 | 79 A6 |
Data Description: Data in the command is hexadecimal. For example, 00 79
converts to decimal 121. If the data magnification is 100, the actual value is 121/100 = 1.21.
2. Data Address Table
Address | Start Address | Description | Data Type | Value Range |
---|---|---|---|---|
40001 | 00 00 | 1#hydrogenregister | Read only | 0~65535 |
40101 | 00 64 | model code | read/write | 0~65535 |
40102 | 00 65 | total points | read/write | 1~20 |
40103 | 00 66 | Device ID | read/write | 1~249 |
40104 | 00 67 | baud rate | read/write | 0~6 |
40105 | 00 68 | mode | read/write | 1~4 |
40106 | 00 69 | protocol | read/write | 1~10 |
3. Read and Modify Device Address
(1) Read or Query Device Address
If the current device address is unknown and only one device is on the bus, use the command FA 03 00 64 00 02 90 5F
to query the device address.
Device ID | Function ID | Start Address | Data Length | CRC16 |
---|---|---|---|---|
FA | 03 | 00 64 | 00 02 | 90 5F |
FA
is 250 for the general address. When the address is unknown, using 250 can retrieve the real device address. 00 64
is the device model register.
For a correct query command, the device will respond, for example: 01 03 02 07 12 3A 79
. The format is shown below:
Device ID | Function ID | Start Address | Model Code | CRC16 |
---|---|---|---|---|
01 | 03 | 02 | 55 3C 00 01 | 3A 79 |
Response data: The first byte (01
) indicates the real address. 55 3C
(decimal 20182) indicates the device main model (21820). The last two bytes (00 01
) indicate the device has a status quantity.
(2) Change Device Address
Example: To change the current device address from 1 to 02, use the command: 01 06 00 66 00 02 E8 14
.
Device ID | Function ID | Start Address | Destination | CRC16 |
---|---|---|---|---|
01 | 06 | 00 66 | 00 02 | E8 14 |
Successful change response: 02 06 00 66 00 02 E8 27
. The first byte of the response is the new device address. The change takes effect immediately. The user must update the query command in the software accordingly.
4. Read and Modify Baud Rate
(1) Read Baud Rate
The default factory baud rate is 9600. To change it, refer to the table and protocol. To read the current device's baud rate ID, use the command: 01 03 00 67 00 01 35 D5
.
Device ID | Function ID | Start Address | Data Length | CRC16 |
---|---|---|---|---|
01 | 03 | 00 67 | 00 01 | 35 D5 |
Baud rate encoding: 1=2400, 2=4800, 3=9600, 4=19200, 5=38400, 6=115200.
Example response: 01 03 02 00 03 F8 45
. The format is:
Device ID | Function ID | Data Length | Rate ID | CRC16 |
---|---|---|---|---|
01 | 03 | 02 | 00 03 | F8 45 |
00 03
indicates a baud rate of 9600.
(2) Change Baud Rate
Example: To change baud rate from 9600 (code 3) to 38400 (code 5), use the command: 01 06 00 67 00 05 F8 16
.
Device ID | Function ID | Start Address | Target Baud Rate | CRC16 |
---|---|---|---|---|
01 | 06 | 00 67 | 00 05 | F8 16 |
The new baud rate takes effect immediately. The device may lose response, and the baud rate must be queried accordingly.
5. Read Correction Value
(1) Read Correction Value
To adjust for display errors, the correction value can be modified by ±1000 (range 0-1000 or 64535-65535). To add 100, use command: 01 03 00 6B 00 01 F5 D6
. 100
is hex 0x64
. For negative values (e.g., -100), use FF 9C
(65435).
Device ID | Function ID | Start Address | Data Length | CRC16 |
---|---|---|---|---|
01 | 03 | 00 6B | 00 01 | F5 D6 |
Example response: 01 03 02 00 64 B9 AF
. Format:
Device ID | Function ID | Data Length | Data Value | CRC16 |
---|---|---|---|---|
01 | 03 | 02 | 00 64 | B9 AF |
00 64
is the first state quantity correction value register. Other parameters are handled similarly.
(2) Change Correction Value
Example: To add 100 to the current state quantity, use command: 01 06 00 6B 00 64 F9 FD
.
Device ID | Function ID | Start Address | Destination | CRC16 |
---|---|---|---|---|
01 | 06 | 00 6B | 00 64 | F9 FD |
The parameters take effect immediately after successful change.
Disclaimer
This document provides product information but does not grant intellectual property licenses. SONBEST Industrial Co., Ltd assumes no liability and makes no warranties, express or implied, regarding the sale and use of this product, including suitability, marketability, or infringement of intellectual property rights. Product specifications and descriptions may be modified without notice.
Contact Us
Company: Shanghai Sonbest Industrial Co., Ltd
Address: Building 8, No.215 North east road, Baoshan District, Shanghai, China
SKYPE: soobuu
Email: sale@sonbest.com
Tel: 86-021-51083595 / 66862055 / 66862075 / 66861077