FOCUS Software Engineering has a new name: proconX - Professional Fieldbus Connections   

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

long getCounter ()
 Returns how often this exception has been triggered.

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

long getCounter  )  [static]
 

Returns how often this exception has been triggered.

Returns:
Counter value

Reimplemented from BusProtocolException.

Reimplemented in MbusIllegalAddressException, MbusIllegalFunctionException, MbusIllegalValueException, and MbusSlaveFailureException.

   Back | Top of page Info | Support | Contact | About   
Information in this document is subject to change without notice. Copyright © 2000-2010 proconX Pty Ltd. All rights reserved.
All product and brand names mentioned on this page may be trademarks or registered trademarks of their respective owners.