ROOTCASTLE / 工程實驗室
協議檢查器
解碼 Modbus RTU、UART 和 CAN 幀。
LOCAL CALCULATION · NO DEVICE CONNECTION
Modbus RTU decoder
✓ Valid frame · Request
| Field | Bytes | Value |
|---|---|---|
| slave | 01 | 1 |
| function | 03 | 3 Read Holding Registers |
| start | 00 00 | 0 (0x0000) |
| quantity | 00 0A | 10 |
| crc | C5 CD | 0xCDC5 = 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 RTU decoder (保持原樣) · Modbus over Serial Line V1.02 (保持原樣) · ISO 11898-1:2015 (CAN data link layer) · CRC 目錄
教育模型。結果不足以診斷機器或確定安全運作極限。