adapnex::drivers::modbus::ModbusMaster::Result

Status code returned by Modbus operations.

Synopsis

Declared in <adapnex/drivers/modbus.h>

enum Result;

Members

Name

Description

kErrorInvalidRequest

The request contains invalid parameters or exceeds length limits.

kErrorInvalidUnitId

The unit identifier in the response did not match the request.

kErrorInvalidTcpMbap

The MBAP header in the TCP response is invalid.

kErrorCRC

The CRC check failed on the received frame.

kErrorTransport

A transport or I/O error occurred during transmission.

kErrorTimeout

The operation timed out waiting for a response.

kErrorInvalidResponse

The received response frame is malformed.

kErrorInvalidArgument

An invalid argument was passed to the function.

kSuccess

The operation completed successfully.

kExceptionIllegalFunction

Modbus exception 0x01: the function code is not supported by the slave.

kExceptionIllegalDataAddress

Modbus exception 0x02: the data address is not allowable for the slave.

kExceptionIllegalDataValue

Modbus exception 0x03: a value contained in the query data field is not allowable.

kExceptionSlaveDeviceFailure

Modbus exception 0x04: an unrecoverable error occurred while the slave attempted to perform the action.

kExceptionAcknowledge

Modbus exception 0x05: the slave has accepted the request and is processing it.

kExceptionSlaveDeviceBusy

Modbus exception 0x06: the slave is engaged in processing a long‐duration command.

kExceptionMemoryParityError

Modbus exception 0x08: the slave detected a parity error in extended memory.

kExceptionGatewayPathUnavailable

Modbus exception 0x0A: the gateway was unable to allocate an internal communication path.

kExceptionGatewayTargetDeviceFailedToRespond

Modbus exception 0x0B: no response was obtained from the target device behind the gateway.

Created with MrDocs