List of Default Exceptions of the Modbus Protocol

<< Click to Display Table of Contents >>

 

List of Default Exceptions of the Modbus Protocol

The next table contains a list of default exceptions defined by the Modbus protocol specification, version 1.1b.

Exceptions are registered on this Driver's log, whenever detected, and they can be read by an application by reading the last exception code.

Notice that, in addition to the exceptions listed here, a device may define other proprietary exceptions. In this case, they are supposed to be described on manufacturer's documentation of that device.

Exception codes standardized by the Modbus protocol

Code (in Hexadecimal)

Name

Meaning

01

ILLEGAL FUNCTION

The received function code is not valid. This may indicate that this function is not implemented yet or the slave is in an inadequate status to process it

02

ILLEGAL DATA ADDRESS

The received data address is not a valid address. More specifically, the combination of a reference address and the amount of data to transfer is invalid

03

ILLEGAL DATA VALUE

The current value on Master's request is not valid. This indicates a failure on the remaining data structure of a complex request, such as when the informed size for a data block is not correct. This exception does not indicate that values submitted for writing are out of the expected scope by an application, as such information is not accessible to this protocol

04

SLAVE DEVICE FAILURE

An irrecoverable error occurred during the processing of the requested function

05

ACKNOWLEDGE

Used with programming commands. The Slave accepted this message and it is processing it. However, this processing demands a long time. This exception prevents a Master time-out. The end of this request must be tested by a polling process

06

SLAVE DEVICE BUSY

Used with programming commands. Indicates that the Slave is processing another long-lasting command and that this request must be sent again later, when the Slave is available again

08

MEMORY PARITY ERROR

Used with functions 20 and 21, reference type 6, to indicate the extended file area failed on a consistency test. The Slave device may need maintenance

0A

GATEWAY PATH UNAVAILABLE

Used together with gateways, to indicate that a gateway was unable to allocate an internal path to process this request. It usually indicates that a gateway is not correctly configured or it is overloaded

0B

GATEWAY TARGET DEVICE FAILED TO RESPOND

Used together with gateways, to indicate that no response was received from the destination device. It usually indicates that such device is not available on the network

Was this page useful?