Skip to main content

ModbusErrorCode Enum

Namespace: GHIElectronics.TinyCLR.Devices.Modbus · Assembly: GHIElectronics.TinyCLR.Devices.Modbus

Modbus error codes

public enum ModbusErrorCode : ushort

Fields

NameValueDescription
NoError0x0000No error
IllegalFunction0x0001The function code received in the query is not an allowable action for the server.
IllegalDataAddress0x0002The data address received in the query is not an allowable address for the server.
IllegalDataValue0x0003A value contained in the query data field is not an allowable value for server.
ServerDeviceFailure0x0004An unrecoverable error occurred while the server was attempting to perform the requested action.
Acknowledge0x0005Specialized use in conjunction with programming commands.
ServerDeviceBusy0x0006Specialized use in conjunction with programming commands.
NegativeAcknowledgement0x0007Specialized use in conjunction with programming commands.
MemoryParityError0x0008Specialized use in conjunction with function codes 20 and 21 and reference type 6, to indicate that the extended file area failed to pass a consistency check.
GatewayPathUnavailable0x000aSpecialized use in conjunction with gateways.
GatewayTargetDeviceFailedToRespond0x000bSpecialized use in conjunction with gateways.
Unspecified0x0100Unspecifed internal error
Timeout0x0101Device response timeout
CrcError0x0102Check summ error
ResponseTooShort0x0103Response data to short.