ModbusResponseCode enum

The Modbus response codes.

These codes represents both standard Modbus exception code and custom code used by this library to return requests response code.

code represents the numeric value of the response code. isStandardModbusExceptionCode is set to true if the code represents a Modbus standard code.

Inheritance

Constructors

ModbusResponseCode(int code, [bool isStandardModbusExceptionCode = true])
const
ModbusResponseCode.fromCode(int code)
factory

Values

illegalFunction → const ModbusResponseCode
const ModbusResponseCode(0x01)
illegalDataAddress → const ModbusResponseCode
const ModbusResponseCode(0x02)
illegalDataValue → const ModbusResponseCode
const ModbusResponseCode(0x03)
deviceFailure → const ModbusResponseCode
const ModbusResponseCode(0x04)
acknowledge → const ModbusResponseCode
const ModbusResponseCode(0x05)
deviceBusy → const ModbusResponseCode
const ModbusResponseCode(0x06)
negativeAcknowledgment → const ModbusResponseCode
const ModbusResponseCode(0x07)
memoryParityError → const ModbusResponseCode
const ModbusResponseCode(0x08)
gatewayPathUnavailable → const ModbusResponseCode
const ModbusResponseCode(0x0A)
gatewayTargetDeviceFailedToRespond → const ModbusResponseCode
const ModbusResponseCode(0x0B)
requestSucceed → const ModbusResponseCode
const ModbusResponseCode(0x00, false)
requestTimeout → const ModbusResponseCode
const ModbusResponseCode(0xF0, false)
connectionFailed → const ModbusResponseCode
const ModbusResponseCode(0xF1, false)
requestTxFailed → const ModbusResponseCode
const ModbusResponseCode(0xF2, false)
requestRxFailed → const ModbusResponseCode
const ModbusResponseCode(0xF3, false)
requestRxWrongUnitId → const ModbusResponseCode
const ModbusResponseCode(0xF4, false)
requestRxWrongFunctionCode → const ModbusResponseCode
const ModbusResponseCode(0xF5, false)
requestRxWrongChecksum → const ModbusResponseCode
const ModbusResponseCode(0xF6, false)
undefinedErrorCode → const ModbusResponseCode
const ModbusResponseCode(0xFF, false)

Properties

code int
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isStandardModbusExceptionCode bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ModbusResponseCode>
A constant List of the values in this enum, in order of their declaration.