User manual

69 © 2007-2010 Analytica GmbH
Appendix A. Return Codes
API return codes
Followed a list of the return values of the API functions. This values are defined in the header file
AnaGateErrors.h.
Table A.1. Common return values for all devices of AnaGate series
Value Name Description
0 ERR_NONE No errors.
0x000001 ERR_OPEN_MAX_CONN Open failed, maximal count of connections reached.
0x0000FF ERR_OP_CMD_FAILED Command failed with unknown failure.
0x020000 ERR_TCPIP_SOCKET Socket error in TCP/IP layer occured.
0x030000 ERR_TCPIP_NOTCONNECTED Connection to TCP/IP partner can't established or is
disconnected.
0x040000 ERR_TCPIP_TIMEOUT No answer received from TCP/IP partner within the defined
timeout.
0x050000 ERR_TCPIP_CALLNOTALLOWED Command is not allowed at this time.
0x060000 ERR_TCPIP_NOT_INITIALIZED TCP/IP-Stack can't be initialized.
0x0A0000 ERR_INVALID_CRC AnaGate TCP/IP telegram has incorrect checksum (CRC).
0x0B0000 ERR_INVALID_CONF AnaGate TCP/IP telegram wasn't receipted from partner.
0x0C0000 ERR_INVALID_CONF_DATA AnaGate TCP/IP telegram wasn't receipted correct from
partner.
0x900000 ERR_INVALID_DEVICE_HANDLE Invalid device handle.
0x910000 ERR_INVALID_DEVICE_TYPE Function can't be executed on this device handle, as she is
assigned to another device type of AnaGate series.
Table A.2. Return values for AnaGate I2C
Value Name Description
0x000120 ERR_I2C_NACK I2C-NACK
0x000121 ERR_I2C_TIMEOUT I2C Timeout
A textual description of the return value can be retrieved with the function I2CErrorMessage().
Table A.3. Return values for AnaGate CAN
Value Name Description
0x000220 ERR_CAN_NACK CAN-NACK
0x000221 ERR_CAN_TX_ERROR CAN Transmit Error
0x000222 ERR_CAN_TX_BUF_OVERLOW CAN buffer overflow
0x000223 ERR_CAN_TX_MLOA CAN Lost Arbitration
0x000224 ERR_CAN_NO_VALID_BAUDRATE CAN Setting no valid Baudrate
A textual description of the return value can be retrieved with the function CANErrorMessage().