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 over Serial Line V1.02 · Modbus Application Protocol V1.1b3 · ISO 11898-1:2015 (CAN data link layer) · CRC カタログ
教育モデル。マシンの診断や安全な運用限界の確立には十分な結果ではありません。