Free engineering calculators and unit convertersceo@instrumentationblog.in
Communication Protocols · Free Tool

Modbus RTU Frame Decoder

Paste a Modbus RTU frame captured with a serial sniffer or shown in a gateway log, and read it field by field, including exception responses and the CRC check.

Request and responseException codesCRC checkFC 01 to 16
Frame typeResponse
CRCValid

Decoded fields

FieldValue
Slave address1
Function code3 = Read Holding Registers
Byte count4
Register 1100 (0x0064)
Register 2200 (0x00C8)
CRCBA 7A (valid)
Advertisement

RTU Frame Layout

Slave address (1 byte) · Function code (1) · Data (n) · CRC (2, low byte first)
Exception: function code + 0x80, then 1 byte exception code

Worked example

01 03 04 00 64 00 C8 BA 7A is a response from slave 1 to FC 03 with 4 data bytes: register 1 = 100, register 2 = 200, CRC valid.

Key insight: exception code 02 (illegal data address) almost always means the register address is off by one or not mapped in the device, not a wiring fault.
Advertisement

Frequently Asked Questions

How do I know if a frame is a request or a response?

For read functions a request is always 8 bytes (address, FC, start, quantity, CRC); a response contains a byte count after the function code.

What does function code 0x83 mean?

It is an exception response to function code 03; the next byte is the exception code.

What is exception code 02?

Illegal data address: the register requested does not exist in the device.

You May Also Like

Learn more on the blog

Modbus RTU troubleshooting

A practical, field focused guide on instrumentationblog.in that explains the theory behind this tool and how engineers apply it on real plants.

Read Full Article

More Communication Protocols

More Instrumentation Tools