• Libraries
  • Shop
  • Doc
  • Free Modbus
  • Support
  • Login
  • Introduction
  • Chapters
  • Modules
  • Classes
  • Class List
  • Class Members
  • com
  • focus_sw
  • fieldtalk
  • MbusResponseException
Public Member Functions | Static Public Member Functions

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
Speak to the Experts
Modbus Organization Member logo

We are member of the Modbus Organization, Inc.

Buy with Confidence
30-day money back guarantee All our FieldTalk web sales are backed by a 30-day Money Back Guarantee.
We Accept
Bank VISA MasterCard PayPal
Customer Info
  • Info & Contact
  • Customer Login
  • Terms of Service
  • Terms of Sale
  • Privacy Policy
© 2005-2025 proconX Pty Ltd. All rights reserved. proconX and FieldTalk are trademarks of proconX Pty Ltd.
All other trademarks and registered trademarks appearing on www.modbusdriver.com are the property of their respective owners.