Modbus exception code meanings for 01 to 0B, the causes behind each one, and step-by-step checks to diagnose drive and gateway faults before you restart.
When a drive answers a read with exception 02, what evidence separates a register-map mistake from a failing communication interface? The label “Illegal Data Address” identifies an address-related refusal. Treating that label as proof of hardware failure can send you toward the wrong repair. Start with the request and register map before considering replacement hardware.
A Modbus exception code is a starting classification, grouping the problem by request, device state, memory or gateway path. That classification narrows the investigation; confirming the root cause still requires evidence. The practical trade-off is between restoring communication quickly and changing equipment or parameters without establishing why the request failed.
Check the request before changing the hardware.
Separating addressing mistakes from drive faults, checking conditions before retrying a write, and investigating sudden exception spikes all require that discipline. A rise in exception counts can warrant security investigation as well as maintenance attention. The code provides a place to start, while the surrounding evidence determines the next action.
Table of Contents
- Modbus Exception Codes at a Glance
- How an Exception Response Differs From a Normal Reply
- Verifying the Request as Sent
- Device State, Programming and Memory
- Gateway and Downstream Failures
- Telling Address Map Faults From Failing Hardware
- When Exception Spikes Point to Security Risk
- Escalation Packet and Pre-Action Checklist
Modbus Exception Codes at a Glance
Start with the lookup, then read the group column before you read the meaning column.
| Code (hex) | Name | Failure group | Standard meaning |
|---|---|---|---|
| 01 | Illegal Function | Request | The server does not support the requested function code |
| 02 | Illegal Data Address | Request | The register or address is outside what the server allows |
| 03 | Illegal Data Value | Request | A value or quantity in the request is not accepted |
| 04 | Server Device Failure | Device | An unrecoverable error occurred while the server performed the action |
| 05 | Acknowledge | Device | The request was accepted but needs a long processing time, poll later |
| 06 | Server Device Busy | Device | The server is busy with a long programming operation, retry later |
| 07 | Negative Acknowledge | Programming | A programming request cannot be performed |
| 08 | Memory Parity Error | Memory | A parity error was found while reading extended memory |
| 0A | Gateway Path Unavailable | Gateway | The gateway could not allocate an internal path for the request |
| 0B | Gateway Target Device Failed to Respond | Gateway | The gateway received no response from the downstream target device |
Schneider Electric's 2024 Masterpact MTZ Modbus communication guide lists ten supported exception-code values: 01, 02, 03, 04, 05, 06, 07, 08, 0A and 0B, which matches the set above.
Four groups, four different first moves
The grouping is the useful part. Request codes (01, 02, 03) mean the frame as written isn't acceptable, so the cheapest fix lives in your master configuration, not in the cabinet. Device codes (04, 05, 06) describe what the server was doing when your request arrived, and two of those three are timing conditions rather than faults.
Programming and memory codes (07, 08) point at the device's internal state and storage. Gateway codes (0A, 0B) describe the path between the gateway and the end device, which is why they can appear while the drive itself is perfectly healthy.
Values the standard doesn't define
Values such as 09 and anything above 0B aren't part of the published standard set. If your master logs one of those, you're looking at a vendor extension, and the only authoritative meaning is in that vendor's manual for that firmware. Don't map an unlisted value onto the nearest standard name because it "looks close."
Record the code exactly as the master log shows it, including the hex value, before you compare it with anything. A log that renders 0A as decimal 10 and another that renders it as "10" hex are describing two different failures.
How an Exception Response Differs From a Normal Reply
The mechanism is one bit wide. In a normal response the server echoes the requested function code unchanged; in an exception response it sets the most significant bit of that code to 1, so a request using function code 03 comes back as 83 hexadecimal, as described in the Modbus application protocol chapter. The byte after that carries the exception code itself.

A worked frame
Say a master sends a read holding registers request, function 03, to a drive that doesn't implement the address you asked for. The reply is two bytes of PDU: 83 then 02. Read it as "function 03, rejected, illegal data address." The arithmetic is 0x03 + 0x80 = 0x83, and the same rule applies to every function, so a rejected write single register (06) returns 86.
That has a direct consequence for anyone filtering a capture. A display filter or log query that looks only for function 03 will miss every rejection of that function, because the rejection is filed under 83. Search for both, or filter on the high bit.
An exception response proves the server received and parsed your request well enough to complain about it. Silence is a different fault with a different checklist.
The exception byte tells you the server refused, not why. You have to read it beside the request fields (unit ID, starting address, quantity, payload) to get anywhere, which is why a log line reading "Modbus error 2" is close to useless on its own.
Before your next troubleshooting session, confirm that your polling software records the function-code byte and the exception byte separately. Plenty of drivers collapse both into a generic "slave error" string, and once that happens you've lost the only structured evidence the protocol gave you.
Verifying the Request as Sent
Most 01 to 03 replies come from a frame the server can't accept, so verify what left the master before you touch the drive. Work from the bytes, not from the tag browser's summary of them.

The check order
- Capture the raw frame. Pull unit ID, function code, starting address, quantity and payload from a serial tap or packet capture. Configuration screens show what you intended to send; the capture shows what the driver built, and those diverge more often than anyone expects.
- Confirm the unit ID. On a multi-drop segment, a wrong slave address can land your request on a neighbouring device that legitimately doesn't have those registers. The exception is then correct and completely misleading.
- Confirm function support. Code 01 Illegal Function means the server doesn't implement that function at all. Many meters and sensors map every value, including analog inputs, as holding registers and don't answer the input-register function.
- Validate address and quantity together. Each read function has a maximum quantity per request, and a block that runs past the end of the implemented map is rejected even when the starting address is valid. Shrink the quantity and retry once; if the smaller read succeeds, you've found a boundary problem, not a hardware problem.
- Check the payload value and its encoding. A write to a correct address carrying an out-of-range value returns 03. Byte and word order deserve separate attention, because a 32-bit value sent as two swapped 16-bit words is still a perfectly legal frame. That fault shows up as a nonsense process value, not as an exception.
- Compare against a known-good read. Read a register you already trust from the same device, then repeat the failing request from a second master.
What the comparison tells you
If the identical frame works from a second master, the fault sits in the first master's configuration: address convention, quantity, data type or scan timing. If both masters get the same rejection, the request or the device map is wrong, and swapping the drive won't help.
If the frame never arrives intact at all, you're not dealing with an exception. That's a physical-layer problem, and the wiring, biasing and termination checks in the RS-485 RTU Modbus integration guide apply instead.
Device State, Programming and Memory
Four codes describe the server rather than your request. Each one starts a different check: read logs for 04 and 08, wait for 05 and 06, and verify permissives for 07. Treating all five as retryable communication errors can turn a recoverable device condition into a repeated command problem.
ABB's Modbus exception-response documentation identifies code 04 as "Server Device Failure," meaning an unrecoverable error occurred while the server attempted the requested action. Treat that as a device health signal and inspect the drive. The request was valid; the device failed while executing it.
Read the drive's fault record, alarm history and any stored error registers before you issue another write. A retry loop against a device in this state adds commands to a controller that is already misbehaving, and on a drive it can mean repeated attempts to start or change reference on hardware that hasn't been inspected.
Code 08 Memory Parity Error means the server detected a parity problem while reading extended memory. That points at storage inside the device. Capture the exact register and function that triggered it, check whether it repeats on the same address, and take it to vendor support. A master-side timing or address change will not repair a device memory fault.
Practical rule: for 04 and 08, read the fault log and stop retrying. For 05 and 06, wait and poll. Reversing those two responses is a common handling mistake in driver configurations.
05 Acknowledge means the server accepted your request and needs a long processing interval to finish it. Poll for status later instead of resending the command. Resending a parameter save that's already in progress can queue a second write behind the first, which makes the device appear slower and less predictable.
06 Server Device Busy means the server is occupied with a long-duration programming operation and can't take your request right now. Add a real delay before the retry and stop stacking requests. If a drive returns 06 every time your scan cycle touches it, your poll rate is the fault, and slowing the scan class for that device is a legitimate permanent fix.
07 Negative Acknowledge applies when a programming request can't be performed. In drive work that usually means the device won't accept a configuration change in its current state, for example a parameter download attempted while the drive is running or while a local lockout is active.
Check the operating state and the parameter access conditions in the manual, put the device in the state the write requires, and confirm the process is safe in that state first. A communications retry will not override a permissive that is doing its job.
Gateway and Downstream Failures
Gateway exceptions describe the path, so work outward from the gateway to the drive, cheapest test first. The AVEVA driver documentation draws the distinction plainly: 0A means the gateway couldn't allocate an internal path for the request, while 0B means the gateway obtained no response from the target device. That difference decides whether you open the gateway configuration or the field panel.
Checks in order
- Routing table first. Confirm the gateway maps the unit ID in your request to the intended downstream device. A stale mapping left over from a device swap sends your traffic somewhere real but wrong.
- Downstream power and link. Verify the target device is energised and its serial or Ethernet link is live. A drive sitting on a feeder that was locked out for mechanical work will produce gateway exceptions all shift.
- Address and serial format agreement. The downstream slave address, baud rate, parity and stop bits must match the gateway's port configuration exactly. One mismatched setting produces silence, and silence downstream becomes an exception upstream.
- Response timeout. Slow devices, older drives and busy multi-drop segments need more time than a default timeout allows. Lengthen the gateway's downstream timeout before you conclude the device is dead.
- Session count. Count simultaneous master connections against the gateway's documented limit. Path allocation failures often appear only when a second client, a laptop tool or a new SCADA system node starts polling the same gateway.
Why 0B doesn't condemn the drive
A 0B reply proves the gateway got nothing back. It doesn't prove the drive failed, because a misconfigured or overloaded gateway can fail to reach a perfectly healthy unit. Isolating that difference is worth real money: one path ends in a configuration edit, the other ends in a drive replacement and a production stop.
The clean test is to talk to the downstream device directly on its own segment with a handheld master or laptop tool. If it answers there and not through the gateway, you've localised the fault without opening the drive cabinet.
Gateway alarm text is frequently vendor-specific and doesn't always use the standard names. Cross-check any gateway-generated message against the standard meanings before you let it drive a maintenance decision.
Telling Address Map Faults From Failing Hardware
One exception code can cover several physical conditions. The Modbus protocol specification defines an exception response as the server rejecting a request. It does not prescribe the underlying device diagnosis. Treat the code as a starting classification, then confirm it with evidence from the request, register map and device state.
| Symptom | Likely cause | Check before acting |
|---|---|---|
| Exception 02 on a register listed in the manual | Zero-based versus one-based address offset | Read a register whose value is already known and compare the result |
| Exception 02 after a firmware update | Register map changed between revisions | Compare the register map with the exact installed firmware revision |
| Exception 02 on a register the drive model doesn't have | Drive variant lacks that register | Check the model's register list in the vendor documentation |
| Exception 03 on a write | Value outside the allowed range or not accepted in the current run state | Check the parameter range and the drive's run or stop state |
| Exception 03 only on certain units | Vendor-specific range restriction | Check the vendor documentation for that model and firmware |
| Exception 04 with an unchanged request | Device-side fault | Read the fault record and inspect the drive before any restart |
The decision order that separates them
Start with the frame itself. Capture the original function code, starting address, quantity and payload first, because every later test is a comparison against that frame. Apply the request checks from the earlier verification step, then move to evidence the request alone cannot provide.
Use a known register value only as a classification test, not as a repeat of address validation. If a value from the keypad or nameplate appears one address away from the requested location, you have an offset problem. That points to the addressing convention or generated tag mapping, not the drive interface.
Next, compare the register map for the exact firmware revision installed, not the newest manual on the vendor site. Maps move between revisions, and a commissioning file built against an older drive will keep working until someone updates firmware. Vendor-specific range limits also matter for writes. A value that looks valid in general may be rejected by that model in its current run or stop state. Only after those checks does the drive's own state and fault record become the primary suspect.
Finish with the communication counters. Serial devices expose diagnostic counters including the "Return Slave Exception Error Count," which records exception errors since the last restart or counter clearing. Use the pattern, not just the total. A count that climbs only while one specific master polls tells you the requests are the problem. A count that climbs across every master, on requests that used to work, points at the device interface. Read the fault record before any restart, especially when Exception 04 appears with an unchanged request.
Clearing counters erases the evidence you need. Record the state first, then act.
When Exception Spikes Point to Security Risk
A rising exception count is a signal that needs an explanation, not a number to reset. Because Modbus/TCP historically lacks built-in authentication, authorization and encryption, systems are exposed to unauthorized requests, manipulation and denial-of-service conditions, as covered in this journal article on Modbus-based industrial control security. The exception is visible at the application layer, but it doesn't tell you whether the cause was an operator mistake, a gateway defect, a malformed request or malicious activity.

Log the evidence set, not the count
For each exception, capture the full request and response pair, source IP or serial master, timestamp, transaction identifier, unit ID, and PLC or drive state. Without the source and the request bytes, a spike is unclassifiable after the fact, and you'll be arguing about it from memory a week later.
Correlate before you conclude
- Bursts that track a scan-rate change point to configuration. Someone tightened a poll interval or added a tag block, and the device is now rejecting requests it can't service.
- A new master address or unfamiliar source IP points to unauthorized access. Enumerate every legitimate client on that segment and compare against the capture.
- Control-register writes nobody requested point to a security incident, not a reliability problem, and belong in your incident process immediately.
- Exceptions confined to one unit ID across all masters point back at that device or its gateway path.
Contain without creating a second outage
Isolate the suspicious source at the network or serial level rather than blindly power-cycling the drive. A power cycle destroys volatile evidence and, on a running process, may be the more dangerous event of the two. Confirm the drive is in a safe operating state, verify what the last accepted write did, and only then retry commands.
Map each pattern to an escalation path. Inhibited writes and delayed recovery are operational consequences for the controls owner. An unknown master or unexplained control write is a security escalation with a different owner and a different clock. Keep standard protocol meanings separate from vendor gateway alarms in that report, so the reader knows which statements are protocol facts and which are device-specific interpretations.
Escalation Packet and Pre-Action Checklist
Before any retry, restart or write, confirm five things. This is the part that separates a controlled recovery from a repeat outage.

The five confirmations
- Exact code and function byte, copied from the raw frame rather than the software summary, so 83/02 stays 83/02 in every email and ticket.
- Device state and fault record captured at the time of the exception, including run or stop status, active alarms and the displayed fault code before anyone resets it.
- Which group the code belongs to (request, device, programming or memory, gateway, or a security pattern), because that decides who owns the next action.
- The request verified as sent, with unit ID, address, quantity and payload confirmed against the device map for the installed firmware.
- No control writes repeating automatically from a scheduled task, script or driver retry loop. Disable the loop before diagnosing, or you'll be reading a moving target.
What goes in the escalation packet
If the fault persists, assemble a packet the vendor or integrator can act on without reproducing the exception on live equipment. A service request should include the drive brand, exact model code, rated power and voltage, the fault code exactly as displayed, when the fault occurs, and the operating environment. Add the firmware revision, the raw log extract with request and response pairs, and a nameplate photo, and record the drive's safe operating state explicitly.
The operating environment matters more than people expect. Ambient temperature, dust type, moisture and cabinet condition all change which failure paths a support engineer considers first, and a drive in a contaminated room gets a different diagnosis from the same code in a clean electrical house.
A complete packet lets someone separate a register-map mismatch from a device fault on paper. An incomplete one guarantees a site visit that starts by repeating the failure.
Whether a specific brand, model and voltage class can be serviced is confirmed for each request based on the equipment details you provide, so accurate nameplate data isn't paperwork, it's the first filter. Every submitted service request receives a request code immediately and an engineer reviews every submission, which means the packet you build is read by someone who can act on it.
Hold the drive in its safe state until a qualified technician confirms the next step. A restart is a decision, not a diagnostic.
If you've worked through the request bytes and the register map and the exception still stands, that's the point to bring in drive-level diagnosis rather than another retry. DUCHENG Industrial provides multi-brand VFD troubleshooting, controlled restart, workshop repair and on-site reconditioning across China and Southeast Asia, with structured fault isolation before any restart decision. Send the drive brand, exact model code, rated power and voltage, the fault code as displayed and your raw request/response extract through the form at DUCHENG Industrial, and an engineer will review the evidence and confirm what can be serviced on site and what needs the bench.