List of Protocol's Default Exceptions

Driver Modicon Modbus

List of Protocol's Default Exceptions

Top  Previous  Next

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

Exceptions are registered in 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 function code received 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 data address received 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 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

 
Has this section of the documentation helped you configure this Driver?
Yes No
Comments (optional):