Documentation

MbusResponseException Class Reference
[Error Management]

Modbus exception response. More...

Inheritance diagram for MbusResponseException:
BusProtocolException MbusIllegalAddressException MbusIllegalFunctionException MbusIllegalValueException MbusSlaveFailureException

List of all members.

Public Member Functions

 MbusResponseException (byte id)
 Creates a new MbusResponseException instance.
 MbusResponseException ()
 Creates a new ResponseException instance.

Static Public Member Functions

static long getCounter ()
 Returns how often this exception has been triggered.
static void resetCounter ()
 Resets exception counter.

Detailed Description

Modbus exception response.

Signals that a Modbus exception response was received. Exception responses are sent by a slave device instead of a normal response message if it received the query message correctly but cannot handle the query. This error usually occurs if a master queried an invalid or non-existing data address or if the master used a Modbus function which is not supported by the slave device.

See also:
BusProtocolException

Constructor & Destructor Documentation

MbusResponseException ( byte  id  ) 

Creates a new MbusResponseException instance.

Parameters:
id Exception code as reported by slave device.

Member Function Documentation

static long getCounter (  )  [static]

Returns how often this exception has been triggered.

Returns:
Counter value

Reimplemented from BusProtocolException.

Reimplemented in MbusIllegalAddressException, MbusIllegalFunctionException, MbusIllegalValueException, and MbusSlaveFailureException.


FieldTalk Modbus Master Library, Java Edition
Library version 2.6.5