Modbus Software, Driver and Libraries
 Login 
Member of Modbus Organization

Have a Question?

We accept VISA, MasterCard, PayPal

30-day Money-Back Guarantee

MbusResponseException Class Reference
[Fieldbus Protocol Errors and Exceptions]

Inheritance diagram for MbusResponseException:

Inheritance graph
Collaboration diagram for MbusResponseException:

Collaboration graph
List of all members.

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.

Version:
1.0
See also:
BusProtocolException


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.


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.