Modbus TCP
Modbus TCP is designed for PLC and SCADA software scenarios, supporting template ID triggering and multi-register custom broadcasting.
The device supports pushing alarm information and common alarm control capabilities via the Modbus TCP protocol, applicable in industrial settings for interfacing with various PLCs, industrial automation equipment, etc.
Supported Features
Section titled "Supported Features"- Push alarm information (equivalent to Basic Features)
- Trigger a preset voice alarm by specifying an ID
- Query the current alarm queue count
- Skip the current alarm
- Clear the broadcast queue
- Command templates
Method 1 - Command Template
Section titled "Method 1 - Command Template"Simply configure the broadcast template and its corresponding ID in the interface, then pass the corresponding ID to trigger broadcasting.
To broadcast, you only need to write the preset corresponding ID to register 100 to trigger a voice broadcast. No voice encoding is needed on the sending side, greatly reducing integration effort. Below is an introduction to this feature. See Address Table

Command Configuration
Section titled "Command Configuration"Parameter Description
- Register Value: The value that triggers the alarm light to alert
- Broadcast Content: When this command is triggered, the alarm light will voice broadcast the custom broadcast content
- Notification Group: When the command is triggered, the alarm light will change according to the selected notification group

Notes
- The port number in Modbus TCP configuration supports customization
- Register values must not consist of a single 0 or start with 0. For example, if the value is
0x000a, the correct input should bea
Debug Example
Section titled "Debug Example"Add the following rule in the rule table
Register value: a
Alarm content: Device temperature exceeds threshold, please check
Notification group: Default
The resulting data structure is as follows. Writing 0x000a to address 100 will trigger a voice alarm
Device temperature exceeds threshold, please check
Method 2 - Custom Broadcast
Section titled "Method 2 - Custom Broadcast"A powerful broadcasting method that allows customizing light styles, colors, and broadcast content, but constructing data is relatively complex, implemented using multiple register writes.
Operation Instructions
Section titled "Operation Instructions"Currently, all functions are implemented in Holding Registers, i.e., Holding Register registers, hereinafter referred to as HR registers.
Do not operate any registers other than HR registers.
Debug Example
Section titled "Debug Example"LED style:
15LED color array:
['#8a2be2']Broadcast duration:
0Alert tone:
001TTS speed:
0LED style parameters:
[0.03,1]Voice broadcast content:
Welcome
The resulting data structure is as follows
[‘0x000f’, ‘0x008a’, ‘0x2be2’, ‘0x0000’, ‘0x0000’, ‘0x0000’, ‘0x0000’, ‘0x0000’, ‘0x0000’, ‘0x0000’, ‘0x0001’, ‘0x0000’, ‘0x0301’, ‘0x0000’, ‘0x0000’, ‘0x00e6’, ‘0xaca2’, ‘0x00e8’, ‘0xbf8e’, ‘0x00e4’, ‘0xbdbf’, ‘0x00e7’, ‘0x94a8’]
Use the write multiple registers command, starting from address 101, to push the broadcast.
Notes
- When writing to the function bit area, the broadcast function area will not take effect even if data is written
- Performing a read operation will trigger the device to update the status area data
- Multiple flag bits in the function bit area can be used simultaneously and will all take effect
- When Busy is 1, the data read from the status bits may be inaccurate. Please perform operations when the Busy bit is 0
- Since the Modbus write multiple registers command can write a maximum of 123 registers at once, this is why the broadcast address ends at
223.101-223is exactly the maximum number of registers supported by a single write command.
Demo Download
Section titled "Demo Download"Project files for the Modbus Poll tool are provided, along with a Python script for sending alarms via Modbus TCP.
Official Website - Resources - Boling Modbus TCP Protocol Debug Demo
Address Register Table
Section titled "Address Register Table"Read/Write Permissions
- Registers
40001-40060are read-only - Registers
40080-40223are read/write - Read commands are supported
- Write single register and write multiple register commands are supported (i.e., function codes
0x06and0x10)
Address Range Allocation
- Addresses
1-2display system status, read-only - Addresses
80-81are function bits, when function bits contain non-zero data, the broadcast function will not take effect - Address
100is for Method 1 - Command Template - Addresses
101-223are for Method 2 - Custom Broadcast
The following addresses default to the holding register address range. Address 1 in the table represents actual register address 40001.
| Address (DEC) | Function | Example | Notes |
|---|---|---|---|
| Status Area - Read Only | |||
| 1 | Register Data Processing Busy | 0x0001 | 1 indicates processing, 0 indicates idle |
| 2 | Pending Broadcast Queue Count | 0x0000 | |
| 3~79 | Reserved, Unused | 0x0000 | |
| Control Function Area - Read/Write Supports Write Single and Multiple Register Operations | |||
| 80 | Skip Current Broadcast | 0x0001 | When set to 1, immediately proceeds to the next broadcast. The system will automatically reset this register to 0 after the value is set. |
| 81 | Clear Broadcast Queue | 0x0001 | When set to 1, immediately clears the pending broadcast queue. The system will automatically reset this register to 0 after the value is set. |
| 82~98 | Reserved, Unused | 0x0000 | |
| Template Broadcast Function Area - Read/Write Supports Write Single and Multiple Register Operations | |||
| 99 or 550-599 | Delete periodic or infinite loop broadcasts created by template commands | 0x0001 | Specify the template ID for which to delete periodic or infinite loop broadcasts |
| 100 or 500-549 | Template ID | 0x0001 | Can be invoked by matching the ID in the Modbus template configuration interface. If the repeat broadcast option is configured, it will automatically create repeated broadcasts |
| Custom Broadcast Function Area - Read/Write Only Supports Multiple Register Operations | |||
| 101 | LED Style | 0x0015 | See [LED Style Parameters](/model-q/en/once-api/#led-style-parameters) in the Regular API |
| 102 | LED Color 1 - High 8 bits | 0x00FF | For example, if the color is `#22ffcc`, the value here is `0x0022` |
| 103 | LED Color 1 - Low 16 bits | 0xccbb | For example, if the color is `#22ffcc`, the value here is `0xffcc` |
| 104 | LED Color 2 - High 8 bits | 0x00FF | Color assignment method is the same as above. If multi-color is not needed, set to 0. |
| 105 | LED Color 2 - Low 16 bits | 0xccbb | Color assignment method is the same as above. If multi-color is not needed, set to 0. |
| 106 | LED Color 3 - High 8 bits | 0x00FF | Same as above |
| 107 | LED Color 3 - Low 16 bits | 0xccbb | Same as above |
| 108 | LED Color 4 - High 8 bits | 0x00FF | Same as above |
| 109 | LED Color 4 - Low 16 bits | 0xccbb | Same as above |
| 110 | Broadcast Duration | 0x0015 | Set broadcast duration, function equivalent to [Regular API - Constructing Request - play_time Parameter](/model-q/en/once-api/#interface-configuration) |
| 111 | Ringtone Number | 0x0014 | Set ringtone number, function equivalent to [Regular API - Constructing Request - tone Parameter](/model-q/en/once-api/#interface-configuration) `0xFFFF` means no ringtone is used |
| 112 | TTS Speed | 0x0000 | Set TTS speed, function equivalent to [Regular API - Constructing Request - tts_speed Parameter](/model-q/en/once-api/#interface-configuration) |
| 113 | LED Style Parameters | 0x0301 | Only effective when LED style parameter is 15 or 20. When LED style is `15`, `high 8 bits` * 0.01 = `led_style[0]`, low 8 bits = `led_style[1]`. For example: [0.03, 1] corresponds to `0x0301`. When LED style is `20`, `high 8 bits` * 0.1 = `led_style[0]`, `low 8 bits` * 0.1 = `led_style[1]` For example: [1, 1] corresponds to `0x1010`. |
| 114-115 | Reserved, Unused | 0x0000 | |
| 116 | Text Character 1 - High 8 bits | 0x00e4 | Each character occupies 2 registers, using UTF-8 encoding. For example, the character `你` has UTF-8 encoding `e4bda0`, so register 116 stores the high 8 bits of the UTF-8 encoding, i.e., `0x00e4` Register 117 stores the low 16 bits of the UTF-8 encoding, i.e., `0xbda0`. The following registers follow the same pattern. |
| 117 | Text Character 1 - Low 16 bits | 0xbda0 | |
| 118 | Text Character 2 - High 8 bits | 0x00e5 | Each character occupies 2 registers, using UTF-8 encoding. For example, the character `好` has UTF-8 encoding `e5a5bd`, so register 118 stores the high 8 bits of the UTF-8 encoding, i.e., `0x00e5` Register 119 stores the low 16 bits of the UTF-8 encoding, i.e., `0xa5bd`. The following registers follow the same pattern. |
| 119 | Text Character 2 - Low 16 bits | 0xa5bd | |
| The following addresses until the end address are all text encoding content, following the same pattern. | |||
| 223 | Text Character 54 - Low 16 bits | 0x0000 | |