本页面由机器翻译自英文,可能存在错误。英文原版具有权威性。 阅读英文原版: 协议检查器

ROOTCASTLE / 工程实验室

协议检查器

解码 Modbus RTU、UART 和 CAN 帧。

LOCAL CALCULATION · NO DEVICE CONNECTION

Modbus RTU decoder

✓ Valid frame · Request

FieldBytesValue
slave011
function033 Read Holding Registers
start00 000 (0x0000)
quantity00 0A10
crcC5 CD0xCDC5 = 0xCDC5
Model and assumptions

RTU frame: address, function, data, CRC-16 (reflected polynomial 0xA001, initial 0xFFFF, low byte first). The same function code has different lengths in request and response; automatic direction can be wrong for ambiguous frames. Addresses are zero-based; the 40001 notation is a device convention. Word order of 32-bit values depends on the device.

CRC: c=0xFFFF; c^=byte; 8×{ c = c&1 ? (c>>1)^0xA001 : c>>1 }

它的用途

最常见的现场通信故障是错误的 CRC、错误的地址、词序混乱和超时。粘贴从分析器或串行日志复制的帧,以查看哪个字段错误、设备异常码以及寄存器值的可能解释。

局限性

该工具不连接设备或发送数据;每个计算均在您的浏览器中运行。Modbus ASCII、Modbus TCP、CAN FD 和 J1939/CANopen 有效载荷解释超出范围。对于模糊帧,自动方向可能错误;请手动选择。

参考文献

Modbus over Serial Line V1.02 · Modbus Application Protocol V1.1b3 · ISO 11898-1:2015 (CAN data link layer) · CRC 目录

教育模型。结果不足以诊断机器或确定安全运行限制。

← Rootcastle LAB

搜索命令或页面