Modbus exception response. More...
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. |
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.
MbusResponseException | ( | byte | id | ) |
Creates a new MbusResponseException instance.
id | Exception code as reported by slave device. |
static long getCounter | ( | ) | [static] |
Returns how often this exception has been triggered.
Reimplemented from BusProtocolException.
Reimplemented in MbusIllegalAddressException, MbusIllegalFunctionException, MbusIllegalValueException, and MbusSlaveFailureException.