Return Codes

 

Return Value

Value

Description

MXIO_OK

0

Function call was successful.

ILLEGAL_FUNCTION

1001

The function code received in the query is not an allowable action for the server (or slave).

ILLEGAL_DATA_ADDRESS

1002

The data address received in the query is not an allowable address for the server (or slave).

ILLEGAL_DATA_VALUE

1003

A value contained in the query data field is not an allowable value for the server (or slave).

SLAVE_DEVICE_FAILURE

1004

An unrecoverable error occurred while the server (or slave) was attempting to perform the requested action.

SLAVE_DEVICE_BUSY

1006

Specialized use in conjunction with programming commands. 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.

EIO_TIME_OUT

2001

The following situation may cause an EIO_TIME_OUT :

1. Open socket timeout.

2. Send command to the I/O Server timeout.

3. I/O Server Response timeout.

EIO_INIT_SOCKETS_FAIL

2002

The error occurred when the Windows system couldn complete SOCKET INIT.

EIO_CREATING_SOCKET_ERROR

2003

The error occurred when the Windows system couldn initiate Socket.

EIO_RESPONSE_BAD

2004

The data received from Ethernet I/O server is incorrect.

EIO_SOCKET_DISCONNECT

2005

The network connection from host computer is down.

PROTOCOL_TYPE_ERROR

2006

Protocol type error.

EIO_PASSWORD_INCORRECT

2007

Password Incorrect

SIO_OPEN_FAIL

3001

Open COM port Fail.

SIO_TIME_OUT

3002

Unable to communicate to the COM port in the designated time.

SIO_CLOSE_FAIL

3003

Unable to close the COM port.

SIO_PURGE_COMM_FAIL

3004

Purge COM port error

SIO_FLUSH_FILE_BUFFERS_FAIL

3005

Flush File Buffers error

SIO_GET_COMM_STATE_FAIL

3006

Get COM port Status error

SIO_SET_COMM_STATE_FAIL

3007

Set COM port Status error

SIO_SETUP_COMM_FAIL

3008

Setup COM port error

SIO_SET_COMM_TIME_OUT_FAIL

3009

Set COM port read timeout and write timeout fail

SIO_CLEAR_COMM_FAIL

3010

Clear COM port

SIO_RESPONSE_BAD

3011

The data received from the Serial I/O server is incorrect.

SIO_TRANSMISSION_MODE_ERROR

3012

Modbus transmission parameter error while calling MXSIO_Connect().

SIO_BAUDRATE_NOT_SUPPORT

3013

Serial Communication baudrate not support.

PRODUCT_NOT_SUPPORT

4001

The I/O module is not supported by this version of MXIO DLL.

HANDLE_ERROR

4002

Handle error.

SLOT_OUT_OF_RANGE

4003

Slot out of range.

CHANNEL_OUT_OF_RANGE

4004

Channel out of range.

COIL_TYPE_ERROR

4005

Coil Type error.

REGISTER_TYPE_ERROR

4006

Register Type error.

FUNCTION_NOT_SUPPORT

4007

Function is not supported for designated I/O module.

OUTPUT_VALUE_OUT_OF_RANGE

4008

The output value is out of the output range.

INPUT_VALUE_OUT_OF_RANGE

4009

The input value is out of the input range.

SLOT_NOT_EXIST

4010

The slot was not existed.

FIRMWARE_NOT_SUPPORT

4011

The device firmware is not support this function.