
9
9
Chapter 9. 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 response timeout.
EIO_INIT_SOCKETS_FAIL 2002
An error occurred when the Windows
system couldn’t complete SOCKET INIT.
EIO_CREATING_SOCKET_ERROR 2003
An error occurred when the Windows
system couldn’t 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.
SIO_OPEN_FAIL 3001 Open COM port failure.
SIO_TIME_OUT 3002
Unable to communicate to the COM
port in the designated time.
Comentarios a estos manuales