modbus_parse
Parse Modbus RTU frames to extract register values and coil states, or decode exception codes 01-06 with troubleshooting advice when a slave returns an unreadable response.
Instructions
解析 Modbus RTU 帧:正常响应拆出寄存器值/线圈状态,异常响应(功能码|0x80) 直译异常码 01-06(非法功能/非法地址/非法值/设备故障/忙...)并给排查建议。 从站"该响应但不响应/回了一帧看不懂"时用它。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_frame | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |