////////////////////////////////////////////////////////////////////
// Created header file hxp_errors.h for XPS function errors
// 

// TCL interpretor error
#define ERR_TCL_INTERPRETOR_ERROR 1

// No error
#define SUCCESS 0

// XPS errors
#define ERR_TCL_INTERPRETOR_ERROR 1 
#define ERR_BUSY_SOCKET -1
#define ERR_TCP_TIMEOUT -2
#define ERR_STRING_TOO_LONG -3
#define ERR_UNKNOWN_COMMAND -4
#define ERR_POSITIONER_ERROR -5
#define ERR_WRONG_FORMAT -7
#define ERR_WRONG_OBJECT_TYPE -8
#define ERR_WRONG_PARAMETERS_NUMBER -9
#define ERR_WRONG_TYPE -10
#define ERR_WRONG_TYPE_BIT_WORD -11
#define ERR_WRONG_TYPE_BOOL -12
#define ERR_WRONG_TYPE_CHAR -13
#define ERR_WRONG_TYPE_DOUBLE -14
#define ERR_WRONG_TYPE_INT -15
#define ERR_WRONG_TYPE_UNSIGNEDINT -16
#define ERR_PARAMETER_OUT_OF_RANGE -17
#define ERR_POSITIONER_NAME -18
#define ERR_GROUP_NAME -19
#define ERR_FATAL_INIT -20
#define ERR_IN_INITIALIZATION -21
#define ERR_NOT_ALLOWED_ACTION -22
#define ERR_POSITION_COMPARE_NOT_SET -23
#define ERR_UNCOMPATIBLE -24
#define ERR_FOLLOWING_ERROR -25
#define ERR_EMERGENCY_SIGNAL -26
#define ERR_GROUP_ABORT_MOTION -27
#define ERR_GROUP_HOME_SEARCH_TIMEOUT -28
#define ERR_MNEMOTYPEGATHERING -29
#define ERR_GATHERING_NOT_STARTED -30
#define ERR_HOME_OUT_RANGE -31
#define ERR_GATHERING_NOT_CONFIGURED -32
#define ERR_GROUP_MOTION_DONE_TIMEOUT -33
#define ERR_TRAVEL_LIMITS -35
#define ERR_UNKNOWN_TCL_FILE -36
#define ERR_TCL_SCRIPT_KILL -38
#define ERR_TCL_INTERPRETOR -37
#define ERR_MNEMO_ACTION -39
#define ERR_MNEMO_EVENT -40
#define ERR_SLAVE_CONFIGURATION -41
#define ERR_JOG_OUT_OF_RANGE -42
#define ERR_GATHERING_RUNNING -43
#define ERR_SLAVE -44
#define ERR_END_OF_RUN -45
#define ERR_NOT_ALLOWED_BACKLASH -46
#define ERR_WRONG_TCL_TASKNAME -47
#define ERR_BASE_VELOCITY -48
#define ERR_GROUP_HOME_SEARCH_ZM_ERROR -49
#define ERR_MOTOR_INITIALIZATION_ERROR -50
#define ERR_WRITE_FILE -60
#define ERR_READ_FILE -61
#define ERR_TRAJ_ELEM_TYPE -62
#define ERR_TRAJ_ELEM_LINE -65
#define ERR_TRAJ_EMPTY -66
#define ERR_TRAJ_VEL_LIMIT -68
#define ERR_TRAJ_ACC_LIMIT -69
#define ERR_TRAJ_FINAL_VELOCITY -70
#define ERR_MSG_QUEUE -71
#define ERR_TRAJ_INITIALIZATION -72
#define ERR_END_OF_FILE -73
#define ERR_READ_FILE_PARAMETER_KEY -74
#define ERR_TRAJ_TIME -75
#define ERR_EVENTS_NOT_CONFIGURED -80
#define ERR_ACTIONS_NOT_CONFIGURED -81
#define ERR_EVENT_BUFFER_FULL -82
#define ERR_EVENT_ID_UNDEFINED -83
#define ERR_HOME_SEARCH_GANTRY_TOLERANCE_ERROR -85
#define ERR_OPTIONAL_EXTERNAL_MODULE_FILE -94
#define ERR_OPTIONAL_EXTERNAL_MODULE_EXECUTE -95
#define ERR_OPTIONAL_EXTERNAL_MODULE_KILL -96
#define ERR_OPTIONAL_EXTERNAL_MODULE_LOAD -97
#define ERR_OPTIONAL_EXTERNAL_MODULE_UNLOAD -98
#define ERR_FATAL_EXTERNAL_MODULE_LOAD -99
#define ERR_INTERNAL_ERROR -100
#define ERR_RELAY_FEEDBACK_TEST_NO_OSCILLATION -101
#define ERR_RELAY_FEEDBACK_TEST_SIGNAL_NOISY -102
#define ERR_SIGNAL_POINTS_NOT_ENOUGH -103
#define ERR_PID_TUNING_INITIALIZATION -104
#define ERR_SCALING_CALIBRATION -105
#define ERR_WRONG_USERNAME_OR_PASSWORD -106
#define ERR_NEED_ADMINISTRATOR_RIGHTS -107
#define ERR_SOCKET_CLOSED_BY_ADMIN -108
#define ERR_NEED_TO_BE_HOMED_AT_LEAST_ONCE -109
#define ERR_NOT_ALLOWED_FOR_GANTRY -110
#define ERR_GATHERING_BUFFER_FULL -111
#define ERR_BOTH_ENDS_OF_RUNS_ACTIVATED -113
#define ERR_HARDWARE_FUNCTION_NOT_SUPPORTED -115
