Question

When a Modbus slave cannot execute a request (invalid address, out-of-range value, etc.) it replies with an "Exception Response": the original function code with bit 7 set to 1, followed by an Exception Code explaining the reason.

ModbusMock examFunction codesHard
Answer

True

An Exception Response is built as function_code OR 0x80, so a request 0x03 (Read Holding) returns 0x83 on error. It is followed by an Exception Code: 0x01 Illegal Function (function code not supported), 0x02 Illegal Data Address (address out of range), 0x03 Illegal Data Value (invalid value), 0x04 Slave Device Failure (internal error), 0x05 Acknowledge (received, processing is long), and 0x06 Slave Device Busy (try again later). These codes are critical for field diagnostics through Modbus logs.

Preparation tip

Log the raw exception byte alongside the function code in any Modbus driver you write: "slave returned 0x83 / 0x02" is far more useful than "read failed".

Waitlist

Modbus bank in preparation

The full Modbus bank isn't available yet. Drop your email to get notified at launch and grab an early-bird discount.

Join the waitlist
Want more?

See the 9 other Modbus practice questions

Related questions

Question from our independent practice bank. Modbus is a registered trademark of Modbus Organization, not affiliated with CertifBus.

Last updated: 19 May 2026

Join the waitlist
Modbus waitlist