#ifndef ERR_H
    #define ERR_H
/*;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  Copyright (c) 1995-1999, ADLink Technology Inc.  All rights reserved.  ;;
;;                                                                         ;;
;;      File Name   :   HSL_ErrorCode.H                                    ;;
;;      Purpose     :   Error Number Definition for PCI-7852/51            ;;
;;      Date        :   10/09/2001                                         ;;
;;      Revision    :   1.10                                               ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;*/

#define		ERR_No_Device_Found				-1
#define		ERR_No_Error					0
#define		ERR_Board_No_Init				1
#define		ERR_Invalid_Board_Number		2
#define		ERR_PCI_Bios_Not_Exist			3
#define		ERR_Open_Driver_Fail			4
#define		ERR_Memory_Mapping				5
#define		ERR_Connect_Index				6
#define		ERR_Satellite_Number			7
#define		ERR_Count_Number				8
#define		ERR_Satellite_Type				9
#define		ERR_Not_ADLink_Slave_Type		10
#define		ERR_Channel_Number				11
#define		ERR_Over_Max_Address			12
#define		ERR_AI_Range					13
#define		ERR_AI_Signal_Type				14
#define		ERR_AI_CJC_Status				15
#define		ERR_CJC_Direction				16
#define		ERR_Time_Out					17
#define		ERR_Create_Timer				18
#define		ERR_PID_Create_Failed			19
#define		ERR_PID_Start_Failed			20
#define		ERR_PID_No_Output				21
#define		ERR_PID_No_FeedBack				22
#define		ERR_No_PID_Controller			23
#define		ERR_Logic_Input					24
#define		ERR_OS_Unknown					25
#define		ERR_AI16AO2_Signal_Range		26
#define		ERR_AI16AO2_Read				27
#define		ERR_AI16AO2_Last_Channel		28
#define		ERR_AI16AO2_Set_Data			29
#define		ERR_AI16AO2_Read_Signal_Type	30
#define		ERR_AO_Channel_Input			31
#define		ERR_AI_Channel_Input			32
#define		ERR_DA_Channel_Input			33
#define		ERR_Over_Voltage_Spec			34
#define		ERR_File_Open_Fail				35
#define		ERR_TrimDAC_Channel				36
#define		ERR_Over_Current_Spec			37
#define		ERR_Axis_Out_Of_Range			38
#define		ERR_Send_Motion_Command			39
#define		ERR_Read_Motion_HexFile			40
#define		ERR_Flash_Data_Transfer			41
#define		ERR_Unkown_Data_Type			42
#define		ERR_CheckSum					43
#define		ERR_Point_Index					44
#define		ERR_DI_Channel_Input			45
#define		ERR_DO_Channel_Output			46
#define		ERR_No_GCode					47
#define		ERR_Code_Syntax					48
#define		ERR_Read_GC_TexTFile			49
#define		ERR_No_Motion_Module			50
#define		ERR_Owner_Set					51
#define		ERR_Signal_Notify				52
#define		ERR_Communication_Type_Range	53
#define		ERR_Transfer_Rate				54
#define		ERR_Hub_Number					55
#define		ERR_Slave_Number				56
#define     ERR_Slave_Not_Stop				57
#define     ERR_Link_Status                 58 
#define     ERR_Counter_Failed				59
#define		ERR_Create_Event_Failed			60  
#define		ERR_DI_Renewal_Type				61  
#define		ERR_Wait_Di_Interrupt			62
#define		ERR_Di_Event_Open_Already		63
#define		ERR_Di_Event_Disable			64
#define		ERR_Timer_Parameter				65
#define		ERR_Close_Timer					66
#define		ERR_Wait_Timer_Interrupt		67
#define		ERR_AO_Data						68
#define		ERR_Flash_Write_In				69
#define		ERR_Motion_Busy					70
#define		ERR_Motion_abnormal_stop		71
#define		ERR_Di_Latch_time				72
#define		ERR_Set_Di_Latch_Failed			73
#define		ERR_Parameters_invalid			74
#define		ERR_LinkIntError				75
#define     ERR_HomeALL_Mode				76
#define     ERR_RW_Procedure_Error			77
#define		ERR_Handshake_Method			78
#define		ERR_Kernel_Type_Dismatch		79
#define		ERR_No_8ID_KernelType			80
#define		ERR_DI_Renewal_Type_Interruptmode	81
#define		ERR_Invalid_Setup					82
#define		ERR_StrVelError						83
#define     ERR_Read_ModuleType_Dismatch		84
#define     ERR_Gantry_Axis_Counts				85
#define     ERR_Gantry_Axis_Dismatch			86
#define     ERR_Gantry_not_enable				87
#define     ERR_Gantry_MotionType				88
#define     ERR_Board_Already_Init				89
#define     ERR_4XMO_Not_Support				90
#define     ERR_RTX_Not_Support                 91
#define		ERR_InvalidCommand                  92
#define     ERR_Win32Error                      93

#define		ERR_Dimension_Wrong					94	//Added by Jack Tseng

#endif  /* end ifndef ERR_H */

