How to use
- Paste a TCP frame (hex, including the 7-byte MBAP header).
- Read the decoded MBAP fields and PDU content.
- The tool verifies the length field and protocol ID, flagging anything odd.
- Use the build side to generate a standard TCP command.
FAQ
What should the length field be?
It counts the unit ID plus the PDU, i.e. the frame length minus six. The tool checks this and warns on a mismatch.
Why is there no CRC in TCP frames?
Modbus TCP runs over TCP, which already guarantees integrity, so the frame structure has no CRC field.
Is the unit ID the same as a slave address?
It serves a similar purpose — identifying a device on a serial chain or behind a gateway — but lives in the MBAP header.
About this Modbus TCP Parser
A Modbus TCP frame is a 7-byte MBAP header plus the PDU, with no CRC since TCP guarantees integrity. MBAP carries the transaction ID, protocol ID (always 0), length and unit ID. This tool decodes those fields and checks the length against the actual byte count — handy for spotting assembly mistakes — and can also build standard commands. All computation is local.