CLIENT_ERROR_CODES (ENUM)

Navigation:  Libraries > CT Modbus Client >

CLIENT_ERROR_CODES (ENUM)

Previous pageReturn to chapter overviewNext page

 

Name

Type

Initial Value

Comment

NO_ERROR

UDINT

0


FUNCTION_CODE_NOT_SUPPORTED_BY_SERVER

UDINT

16#1

Server generated error, See Modbus specification.

REGISTER_ADDRESS_NOT_CORRECT

UDINT

16#2

Server generated error, See Modbus specification.

REGISTER_VALUE_NOT_CORRECT

UDINT

16#3

Server generated error, See Modbus specification.

FUNCTION_CODE_REQUEST_FAILED

UDINT

16#4

Server generated error, See Modbus specification.

FUNCTION_CODE_NOT_SUPPORTED_BY_CLIENT

UDINT

16#81

The client does not support the function code.

ERROR_CONNECTION_TIMEOUT

UDINT

16#82

The server has not replied in the specified time.

RESPONSE_FUNCTION_CODE_MISMATCH_REQUESTED

UDINT

16#83

The function code received in the response does not match the requested function.

RESPONSE_RECEIVED_SEQUENCE_MISMATCH

UDINT

16#84

The response received has a different sequence number than the expected one.

ERROR_CLIENT_NOT_INITIALISED

UDINT

16#85

The client has not been initialised.

CONNECTION_NOT_INITIALISED

UDINT

16#86

The connection has not been created properly.

PROVIDED_CHANNEL_ARRAYS_NOT_CORRECT

UDINT

16#87

Response and/or request arrays are not the right size or the pointer is invalid.

NOT_POSSIBLE_TO_CONNECT_WITH_THE_SERVER

UDINT

16#88

The client cannot connect with the server. Check server status and client number of connections.

UNKNOWN_ERROR

UDINT

16#99

An unidentified error has occurred.