ModbusErrorCode

ModbusErrorCode (ENUM)

TYPE ModbusErrorCode : (NO_ERROR)

Attributes: qualified_only\

InOut:

Name
Initial
Comment

NO_ERROR

16#0

The communication was successful

EC_ILLEGAL_FUNCTION

16#1

Exception code - DEVICE: The function code received in the query is not an allowable action for the server (or slave). This may be because the function code is only applicable to newer devices and was not implemented in the selected unit. It could also indicate that the server (or slave) is in the wrong state to process a request of this type, for example because it is unconfigured and is being asked to return register values.

EC_ILLEGAL_DATA_ADDRESS

16#2

Exception code - DEVICE: The data address received in the query is not an allowable address for the server (or slave). More specifically, the combination of reference number and transfer length is invalid.

EC_ILLEGAL_DATA_VALUE

16#3

Exception code - DEVICE: A value contained in the query data field is not an allowable value for the server (or slave). This indicates a fault in the structure of the remainder of a complex request, such as the implied length being incorrect.

EC_SLAVE_DEVICE_FAILURE

16#4

Exception code - DEVICE: An unrecoverable error occurred while the server (or slave) was attempting to perform the requested action.

EC_ACKNOWLEDGE

16#5

Exception code - DEVICE: The server (or slave) has accepted the request and is processing it, but a long duration of time will be required to do so.

EC_SLAVE_DEVICE_BUSY

16#6

Exception code - DEVICE: The server (or slave) is engaged in processing a long-duration program command. The client (or master) should retransmit the message later when the server (or slave) is free.

EC_NEGATIVE_ACKNOWLEDGE

16#7

Exception code - DEVICE: Slave cannot perform the programming functions. Master should request diagnostic or error information from slave

EC_MEMORY_PARITY_ERROR

16#8

Exception code - DEVICE: Specialized 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.

EC_GATEWAY_PATH_UNAVAILABLE

16#A

Exception code - GATEWAY: Specialized use in conjunction with gateways, indicates that the gateway was unable to allocate an internal communication path from the input port to the output port for processing the request. Usually means that the gateway is misconfigured or overloaded.

EC_GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND

16#B

Exception code - GATEWAY: Specialized use in conjunction with gateways, indicates that no response was obtained from the target device. Usually means that the device is not present on the network.

EC_UNKNOWN_CODE

16#C

Exception code is greater than 16#000B and therefore unknown

REFERENCE_TO_MODBUS_CLIENT_MISSING

16#F00

Link to the client or to the data of the instance of 'ModbusValue' is missing (FB 'ModbusValue' and method 'OnResponseComplete')

REQUESTED_DATA_TO_LONG

16#F01

The length of the requested data is too long to be processed in a single request (FB 'ModbusValue')

ILLEGAL_RESPONSE_DATA_LENGTH

16#F02

The length of the response data does not match the length of the request data (method 'OnResponseComplete')

READ_TIMEOUT

16#F03

There was no response message from the server within the expected time (FB 'ModbusClient_TCP')

INVALID_CRC

16#F04

The CRC checksum was not correct (RTU protocol only)

COMMUNICATION_ERROR

16#F05

The TCP stream receive instruction reports an error (not used in FB 'ModbusClient_TCP')

INVALID_RESPONSE_TID

16#F06

The response header was invalid (Transaction ID) (method 'ResponseComplete')

INVALID_RESPONSE_ADR

16#F07

The response header was invalid (Unit ID) (method 'ResponseComplete')

INVALID_RESPONSE_FC

16#F08

The response header was invalid (Function Code) (method 'ResponseComplete')

SEND_TIMEOUT

16#F09

The query message could not be sent without fault (FB 'ModbusClient_TCP')

Last updated