#ifndef ERR_H
    #define ERR_H

#define HOME_START			(I16)100
#define HOME_END			(I16)101
#define HOME_REVERSE		(I16)102
#define HOME_FIND_ORG		(I16)103
#define HOME_ESCAPE_ORG		(I16)104
#define HOME_OFFSET_ORG		(I16)105
#define HOME_LEAVE_ORG		(I16)106
#define HOME_MOVE			(I16)107
#define HOME_MOVE_2			(I16)108
#define HOME_FIND_EL		(I16)109
#define HOME_FIND_EZ		(I16)110

#define HOME_Error_ALM		(I16)200
#define HOME_Error_PEL		(I16)201
#define HOME_Error_MEL		(I16)202
#define HOME_Error_SDSTOP	(I16)203
#define HOME_Error_STOP		(I16)204
#define HOME_Unknow_STOP    (I16)205
#define HOME_Other_STOP     (I16)206

enum {
    ERR_NoError,
    ERR_BoardNoInit,
    ERR_InvalidBoardNumber,
    ERR_InitializedBoardNumber,
    ERR_BaseAddressError,
    ERR_BaseAddressConflict,
    ERR_DuplicateBoardSetting,
    ERR_DuplicateIrqSetting,
    ERR_PCIBiosNotExist,
    ERR_PCIIrqNotExist,
    ERR_PCICardNotExist, //10
    ERR_InputAxisError,
    ERR_SetVelError,
    ERR_SWLimitExceed,
    ERR_SetDecError,
    ERR_SetPosError,
    ERR_SetRMDError,
    ERR_ClrPlsError,
    ERR_MoveError,
    ERR_GoHomeError,
    ERR_GetIntError, //20
    ERR_OpenFileFail,
	ERR_OtherProcessExist,
	ERR_NoCardFound,
	ERR_AxisRangeError,
	ERR_SpeedError,
	ERR_PosOutOfRange,
	ERR_OpenDriverFailed,
	ERR_EventNotEnableYet,
	ERR_CardNoError,
	ERR_EventAlreadyEnable, //30
	ERR_AxisAlreadyStop,
	ERR_MoveRatioError,
	ERR_NotInFHSpeed,
	ERR_SlowDownPointError,
	ERR_VChangeTimeError,
	ERR_CommandInvalid,
	ERR_SpeedChangeError,
	ERR_OwnerSet,				    
	ERR_SignalHandle,			 
	ERR_SignalNotify,	//40		 	
	ERR_AllocateMemory,		 
   	ERR_LinkIntError,
	ERR_HomeModeError,
	ERR_ArraySizeTooBig,
	ERR_UserCodeWrite,
	ERR_SecurityCode,

};
#endif  /* end ifndef ERR_H */



