Attribute VB_Name = "NMC_Lib_Err"

''*****************************************************************
' Moudle Name  :   nmc_lib20_err.bas
' Abstract     :   错误代码定义
' Note :     ‘'’之后为错误定义的说明，第二个'''之后为错误的建议的处理方法
''*****************************************************************


' 错误返回值类别:简洁模式
Public Const RTN_LIB_UNSUPPORT                    As Integer = -1      ' 库指令不支持 
Public Const RTN_LIB_PARA_ERROR                   As Integer = -2      ' 库指令参数错不支持 
Public Const RTN_DRV_ERROR                        As Integer = -3      ' 桢数据出错，指令桢长度超 
Public Const RTN_FRAME_ERROR                      As Integer = -4      ' 桢数据出错，指令桢长度超 
Public Const RTN_FRAME_UNSUPPORT                  As Integer = -5      ' 桢类型不支持错误         
Public Const RTN_FRAME_TIMEOUT                    As Integer = -6      ' 桢数据超时               
Public Const RTN_FRAME_SUM_ERROR                  As Integer = -7      ' 检验和错误               
Public Const RTN_VEC_FHASE_ERROR                  As Integer = -8      ' 矢量数据桢时序不支持     
Public Const RTN_VEC_FIFO_FULL                    As Integer = -9      ' 缓冲区满                                                           
Public Const RTN_CMD_UNSUPPORT                    As Integer = -10     ' 指令不支持               
Public Const RTN_CMD_PARA_ERROR                   As Integer = -11     ' 参数1错，范围超出         
Public Const RTN_CMD_EXE_ERROR                    As Integer = -12     ' 执行失败                 
Public Const RTN_CMD_PARA2_ERROR                  As Integer = -13     ' 参数2错，范围超出   
Public Const RTN_CMD_PARA3_ERROR                  As Integer = -14     ' 参数3错，范围超出   
Public Const RTN_CMD_PARA4_ERROR                  As Integer = -15     ' 参数4错，范围超出   
Public Const RTN_CMD_PARA5_ERROR                  As Integer = -16     ' 参数5错，范围超出   
Public Const RTN_CMD_PARA6_ERROR                  As Integer = -17     ' 参数6错，范围超出   
Public Const RTN_CMD_PARA7_ERROR                  As Integer = -18     ' 参数7错，范围超出   
Public Const RTN_CMD_PARA8_ERROR                  As Integer = -19     ' 参数8错，范围超出   
Public Const RTN_CMD_PARA9_ERROR                  As Integer = -20     ' 参数9错，范围超出   
Public Const RTN_CMD_PARA_OTHER                   As Integer = -21     ' 其他错误     


' 错误代码
Public Const RTN_CMD_SUCCESS                      As Integer = 0       ' 指令成功执行
Public Const RTN_CMD_TBD                          As Integer = 999     ' TBD

' return error code form Library,[1,99]
Public Const RTN_LIB_SEARCH_MODE                  As Integer = 1       ' NMC_DevSearch:不支持的搜索模式
Public Const RTN_LIB_OPEN_INDEX                   As Integer = 2       ' NMC_DevOpen:序号不能小于0
Public Const RTN_LIB_OPEN_COMM                    As Integer = 3       ' NMC_DevOpen:端口打开错误
Public Const RTN_LIB_OPEN_COMM2                   As Integer = 4       ' NMC_DevOpenByID:端口打开错误
Public Const RTN_LIB_ID_WRITE                     As Integer = 5       ' NMC_DevWriteID:写ID错误
Public Const RTN_LIB_ID_READ                      As Integer = 6       ' NMC_DevReadID:读ID错误
Public Const RTN_LIB_NOT_CONNECT                  As Integer = 7       ' NMC_CrdOpen:设备未打开
Public Const RTN_LIB_MT_INDEX                     As Integer = 8       ' NMC_MtOpen:序号小于0或者大于16
Public Const RTN_LIB_LINE_AXCNT                   As Integer = 9       ' NMC_CrdLineXYZ:轴数量范围不正确
Public Const RTN_LIB_LOCK                         As Integer = 10      ' 通讯锁错误
Public Const RTN_LIB_DEBUG_MODE                   As Integer = 11      ' NMC_SetCmdDebug:库Debug模式错误
Public Const RTN_LIB_DEBUG_FILE_CRT               As Integer = 12      ' NMC_SetCmdDebug:debug文件创建
Public Const RTN_LIB_DEBUG_FILE_OPEN              As Integer = 13      ' NMC_SetCmdDebug:debug文件打开
Public Const RTN_LIB_DEBUG_H_OPEN                 As Integer = 14      ' NMC_SetCmdDebug:通讯打开
Public Const RTN_LIB_CRDGetAxisPos_Cnt            As Integer = 15      ' NMC_CrdGetAxisPos:cnts参数范围不正确[1,N]
Public Const RTN_LIB_CRDGetPos_Cnt                As Integer = 16      ' NMC_CrdGetPrfPos的cnts参数范围不正确[1,N]
Public Const RTN_LIB_CRDGetEncPos_Cnt             As Integer = 17      ' NMC_CrdGetEncPos的cnts参数范围不正确[1,N]
Public Const RTN_LIB_BackSramWrite_LEN            As Integer = 18      ' NMC_BackSramWrite数据长度超出范围[1,240]
Public Const RTN_LIB_BackSramRead_LEN             As Integer = 19      ' NMC_BackSramRead数据长度超出范围[1,240]
Public Const RTN_LIB_UserParaWr_LEN               As Integer = 20      ' NMC_UserParaWr数据长度超出范围[1,240]
Public Const RTN_LIB_UserParaRd_LEN               As Integer = 21      ' NMC_UserParaRd数据长度超出范围[1,240]
Public Const RTN_LIB_CRDLINEXYZPACK_Cnt           As Integer = 22      ' NMC_CrdLineXYZPack:范围不正确，[1,5]
Public Const RTN_LIB_COLLECT_DATA_LEN             As Integer = 23      ' NMC_GetCollectData:len

' return error code form HostComm,[100,199]
Public Const RTN_COMM_PARA_LEN                    As Integer = 100     ' 参数长度不符合
Public Const RTN_COMM_CMD_UNSUPPORT               As Integer = 101     ' 指令字不支持
Public Const RTN_COMM_TOP_UNSUPPORT               As Integer = 102     ' 顶端指令字不支持
Public Const RTN_COMM_TOP_PARA                    As Integer = 103     ' 顶端参数错误
Public Const RTN_COMM_BACKSRAMREAD                As Integer = 104     ' NMC_BackSramRead:参数错误'检查地址长度是否合理
Public Const RTN_COMM_BACKSRAMWRITE               As Integer = 105     ' NMC_BackSramWrite:参数错误'检查地址长度是否合理
Public Const RTN_COMM_SYSUPGRADEEX                As Integer = 106     ' NMC_SYSUPGRADEEX执行失败
Public Const RTN_COMM_DEVSETPARA                  As Integer = 107     ' NMC_DevSetPara执行失败
Public Const RTN_COMM_DEVGETPARA                  As Integer = 108     ' NMC_DevGetPara执行失败
Public Const RTN_COMM_GETTIME                     As Integer = 109     ' NMC_GetTime执行错误
Public Const RTN_COMM_USERPARAWR_PRM              As Integer = 110     ' NMC_UserParaWr参数错误
Public Const RTN_COMM_USERPARAWR_EXE              As Integer = 111     ' NMC_UserParaWr执行错误
Public Const RTN_COMM_USERPARARD_PRM              As Integer = 112     ' NMC_UserParaRd参数错误

' return error code form Command
Public Const RTN_MC_MT_OPEN_INDEX                 As Integer = 1000    ' NMC_MtOpen:itemNo参数返回错误
Public Const RTN_MC_MT_LMT_POSSWT                 As Integer = 1001    ' NMC_MtLmtOnOff:posSwt参数范围不正确[0,1]
Public Const RTN_MC_MT_LMT_NEGSWT                 As Integer = 1002    ' NMC_MtLmtOnOff:negSwt参数范围不正确[0,1]
Public Const RTN_MC_MT_LMT_HANDLE                 As Integer = 1003    ' NMC_MtLmtOnOff:axisHandle错误
Public Const RTN_MC_MT_GETLMT_HANDLE              As Integer = 1004    ' NMC_MtGetLmtOnOff:axisHandle错误
Public Const RTN_MC_MT_LMTSNS_POSSWT              As Integer = 1005    ' NMC_MtLmtSns:posSwt参数范围不正确[0,1]
Public Const RTN_MC_MT_LMTSNS_NEGSWT              As Integer = 1006    ' NMC_MtLmtSns:negSwt参数范围不正确[0,1]
Public Const RTN_MC_MT_LMTSNS_HANDLE              As Integer = 1007    ' NMC_MtLmtSns:axisHandle错误
Public Const RTN_MC_MT_GETLMTSNS_HANDLE           As Integer = 1008    ' NMC_MtGetLmtSns:axisHandle错误

Public Const RTN_MC_MT_ALMON_SWT                  As Integer = 1010    ' NMC_MtAlarmOnOff:swt参数范围不正确[0,1]
Public Const RTN_MC_MT_ALMON_HANDLE               As Integer = 1011    ' NMC_MtAlarmOnOff:axisHandle错误
Public Const RTN_MC_MT_GETALMON_HANDLE            As Integer = 1012    ' NMC_MtGetAlarmOnOff:axisHandle错误
Public Const RTN_MC_MT_ALMSns_SWT                 As Integer = 1013    ' NMC_MtAlarmSns:swt参数范围不正确[0,1]
Public Const RTN_MC_MT_ALMSns_HANDLE              As Integer = 1014    ' NMC_MtAlarmSns:axisHandle错误
Public Const RTN_MC_MT_GETALSns_HANDLE            As Integer = 1015    ' NMC_MtGetAlarmSns:axisHandle错误
Public Const RTN_MC_MT_SwLmtOn_SWT                As Integer = 1016    ' NMC_MtSwLmtOnOff:swt参数范围不正确[0,1]
Public Const RTN_MC_MT_SwLmtOn_HANDLE             As Integer = 1017    ' NMC_MtSwLmtOnOff:axisHandle错误
Public Const RTN_MC_MT_GetSwLmtOn_HANDLE          As Integer = 1018    ' NMC_MtGetSwLmtOnOff:axisHandle错误
Public Const RTN_MC_MT_SwLmtV_POS                 As Integer = 1019    ' NMC_MtSwLmtValue:正向软限位值不应该小于等于负向
Public Const RTN_MC_MT_SwLmtV_HANDLE              As Integer = 1020    ' NMC_MtSwLmtValue:axisHandle错误
Public Const RTN_MC_MT_GetSwLmtV_HANDLE           As Integer = 1021    ' NMC_MtGetSwLmtValue:axisHandle错误
Public Const RTN_MC_MT_PosErr_VALUE               As Integer = 1022    ' NMC_MtSetPosErrLmt:posErr位置误差不能小于0
Public Const RTN_MC_MT_PosErr_HANDLE              As Integer = 1023    ' NMC_MtSetPosErrLmt:axisHandle错误
Public Const RTN_MC_MT_GetPosErr_HANDLE           As Integer = 1024    ' NMC_MtGetPosErrLmt:axisHandle错误
Public Const RTN_MC_MT_SafePara_HANDLE            As Integer = 1025    ' NMC_MtSetSafePara:axisHandle错误
Public Const RTN_MC_MT_SafeParaEdec               As Integer = 1026    ' NMC_MtSetSafePara:estpDec必须大于0
Public Const RTN_MC_MT_SafeParaMaxV               As Integer = 1027    ' NMC_MtSetSafePara:maxVel必须大于0
Public Const RTN_MC_MT_SafeParaMaxA               As Integer = 1028    ' NMC_MtSetSafePara:maxAcc必须大于0
Public Const RTN_MC_MT_GetSafePara_HANDLE         As Integer = 1029    ' NMC_MtGetSafePara:axisHandle错误
Public Const RTN_MC_SvrOn_HANDLE                  As Integer = 1030    ' NMC_MtSetSvOn:axisHandle错误
Public Const RTN_MC_SvrOff_HANDLE                 As Integer = 1031    ' NMC_MtSetSvOn:axisHandle错误
Public Const RTN_MC_SetPos_HANDLE                 As Integer = 1032    ' NMC_MtSetAxisPos:axisHandle错误
Public Const RTN_MC_SetEncPos_HANDLE              As Integer = 1033    ' NMC_MtSetEncPos:axisHandle错误
Public Const RTN_MC_GetAPos_HANDLE                As Integer = 1034    ' NMC_MtGetAxisPos:axisHandle错误
Public Const RTN_MC_GetPPos_HANDLE                As Integer = 1035    ' NMC_MtGetPrfPos:axisHandle错误
Public Const RTN_MC_GetEPos_HANDLE                As Integer = 1036    ' NMC_MtGetEncPos:axisHandle错误
Public Const RTN_MC_GetCPos_HANDLE                As Integer = 1037    ' NMC_MtGetCmdPos:axisHandle错误
Public Const RTN_MC_SetCapSns_HANDLE              As Integer = 1038    ' NMC_MtSetCaptSns:axisHandle错误
Public Const RTN_MC_GetCapSns_HANDLE              As Integer = 1039    ' NMC_MtGetCaptSns:axisHandle错误
Public Const RTN_MC_SetCap_HANDLE                 As Integer = 1040    ' NMC_MtSetCapt:axisHandle错误
Public Const RTN_MC_GetCapPos_HANDLE              As Integer = 1041    ' NMC_MtGetCaptPos:axisHandle错误
Public Const RTN_MC_GetSts_HANDLE                 As Integer = 1042    ' NMC_MtGetSts:axisHandle错误
Public Const RTN_MC_SetStepMode_HANDLE            As Integer = 1043    ' NMC_MtSetStepMode:axisHandle错误
Public Const RTN_MC_SetStepMode_Mode              As Integer = 1044    ' NMC_MtSetStepMode:mode参数范围错误[0,1]
Public Const RTN_MC_SetStepMode_Invert            As Integer = 1045    ' NMC_MtSetStepMode:invert参数范围错误[0,1]
Public Const RTN_MC_GetStepMode_HANDLE            As Integer = 1046    ' NMC_MtGetStepMode:axisHandle错误
Public Const RTN_MC_GetMIo_HANDLE                 As Integer = 1047    ' NMC_MtGetMotionIO:axisHandle错误
Public Const RTN_MC_GetStsP_Count                 As Integer = 1048    ' NMC_MtGetStsPack:axisHandle错误
Public Const RTN_MC_GetStsP_AxNum                 As Integer = 1049    ' NMC_MtGetStsPack:axisHandle错误
Public Const RTN_MC_SvClr_HANDLE                  As Integer = 1050    ' NMC_MtSetSvClr:axisHandle错误
Public Const RTN_IO_SetDo_GROUP                   As Integer = 1051    ' NMC_SetDO:groupID范围错误[0,n]
Public Const RTN_IO_GetDo_GROUP                   As Integer = 1052    ' NMC_GetDO:gourpID范围错误[0,n]
Public Const RTN_IO_SetDoBit_INDEX                As Integer = 1053    ' NMC_SetDOBit:bitIndex错误
Public Const RTN_IO_SetDoBit_GROUP                As Integer = 1054    ' NMC_SetDOBit:gourpID错误
Public Const RTN_IO_GetDi_GROUP                   As Integer = 1055    ' NMC_GetDI:gourpID错误
Public Const RTN_IO_GetDiBit_INDEX                As Integer = 1056    ' NMC_GetDIBit:bitIndex错误
Public Const RTN_IO_GetDiBit_GROUP                As Integer = 1057    ' NMC_GetDIBit:gourpID错误
Public Const RTN_IO_GetEncV_INDEX                 As Integer = 1058    ' NMC_GetEncVel:encId错误
Public Const RTN_IO_GetEncPos_INDEX               As Integer = 1059    ' NMC_GetEncPos:axisHandle错误
Public Const RTN_MC_SetVar_ID                     As Integer = 1060    ' NMC_SetVar8B:varID错误
Public Const RTN_MC_GetVar_ID                     As Integer = 1061    ' NMC_GetVar8B:varID错误
Public Const RTN_MC_SysGetVar_ID                  As Integer = 1062    ' NMC_SysSetVar8B:varID错误
Public Const RTN_MC_SysSetVar_ID                  As Integer = 1063    ' NMC_SysGetVar8B:varID错误
Public Const RTN_MC_GetEncMode_ID                 As Integer = 1064    ' NMC_GetEncMode:encID错误
Public Const RTN_MC_SetEncMode_ID                 As Integer = 1065    ' NMC_SetEncMode:encID错误
Public Const RTN_MC_SetEncMode_MOVE               As Integer = 1066    ' NMC_SetEncMode:正在运动，不能设置
Public Const RTN_MC_SetStepFilt_HANDLE            As Integer = 1067    ' NMC_MtSetStepFilter:axisHandle错误
Public Const RTN_MC_PrfCfg_HANDLE                 As Integer = 1068    ' NMC_MtPrfConfig:axisHandle错误
Public Const RTN_MC_PrfCfg_PORT                   As Integer = 1069    ' NMC_MtPrfConfig:port范围错误[0,1]
Public Const RTN_MC_GetPrfCfg_HANDLE              As Integer = 1070    ' NMC_MtGetPrfConfig:axisHandle错误
Public Const RTN_MC_SetPrfMode_HANDLE             As Integer = 1071    ' NMC_MtSetPrfMode:axisHandle错误
Public Const RTN_MC_SetPrfMode_UNSUPPORT          As Integer = 1072    ' NMC_MtSetPrfMode:模式不支持错误
Public Const RTN_MC_GetPrfMode_HANDLE             As Integer = 1073    ' NMC_MtGetPrfMode:axisHandle错误
Public Const RTN_MC_SetPtpPrm_HANDLE              As Integer = 1074    ' NMC_MtSetPtpPara:axisHandle错误
Public Const RTN_MC_SetPtpPrm_SVEL                As Integer = 1075    ' NMC_MtSetPtpPara:startVel不能小于0
Public Const RTN_MC_SetPtpPrm_EVEL                As Integer = 1076    ' NMC_MtSetPtpPara:endVel不能小于0
Public Const RTN_MC_SetPtpPrm_ACC                 As Integer = 1077    ' NMC_MtSetPtpPara:acc不能小于等于0
Public Const RTN_MC_SetPtpPrm_DEC                 As Integer = 1078    ' NMC_MtSetPtpPara:dec不能小于等于0
Public Const RTN_MC_SetPtpPrm_SMTH                As Integer = 1079    ' NMC_MtSetPtpPara:smoothCoef不能小于0
Public Const RTN_MC_GetPtpPrm_HANDLE              As Integer = 1080    ' NMC_MtGetPtpPara:axisHandle错误
Public Const RTN_MC_SetJogPrm_HANDLE              As Integer = 1081    ' NMC_MtSetJogPara:axisHandle错误
Public Const RTN_MC_SetJogPrm_ACC                 As Integer = 1082    ' NMC_MtSetJogPara:acc不能小于等于0
Public Const RTN_MC_SetJogPrm_DEC                 As Integer = 1083    ' NMC_MtSetJogPara:dec不能小于等于0
Public Const RTN_MC_SetJogPrm_SMTH                As Integer = 1084    ' NMC_MtSetJogPara:smoothCoef不能小于0
Public Const RTN_MC_GetJogPrm_HANDLE              As Integer = 1085    ' NMC_MtGetJogPara:axisHandle错误
Public Const RTN_MC_SetVel_HANDLE                 As Integer = 1086    ' NMC_MtSetVel:axisHandle错误
Public Const RTN_MC_SetVel_VEL                    As Integer = 1087    ' NMC_MtSetVel:vel范围不正确,对于PTP（0,4500),对于JOG(-4500,4500)
Public Const RTN_MC_SetVel_VEL2                   As Integer = 1088    ' NMC_MtSetVel:vel范围不正确,对于PTP（0,4500),对于JOG(-4500,4500)
Public Const RTN_MC_GetVel_HANDLE                 As Integer = 1089    ' NMC_MtGetVel:axisHandle错误
Public Const RTN_MC_SetPtpTgtPos_HANDLE           As Integer = 1090    ' NMC_MtSetPtpTgtPos:axisHandle错误
Public Const RTN_MC_SetPtpTgtPos_POS              As Integer = 1091    ' NMC_MtSetPtpTgtPos:pos范围错误
Public Const RTN_MC_GetPtpTgtPos_HANDLE           As Integer = 1092    ' NMC_MtGetPtpTgtPos:axisHandle错误
Public Const RTN_MC_UPDATE_HANDLE                 As Integer = 1093    ' NMC_MtUpdate:axisHandle错误
Public Const RTN_MC_STOP_HANDLE                   As Integer = 1094    ' NMC_MtStop:axisHandle错误
Public Const RTN_MC_ESTOP_HANDLE                  As Integer = 1095    ' NMC_MtEstp:axisHandle错误
Public Const RTN_MC_GetPrfVel_HANDLE              As Integer = 1096    ' NMC_MtGetPrfVel:axisHandle错误
Public Const RTN_MC_ZeroPos_HANDLE                As Integer = 1097    ' NMC_MtZeroPos:axisHandle错误
Public Const RTN_MC_ZeroPos_MOVE                  As Integer = 1098    ' NMC_MtZeroPos:正在运动，不能执行该操作

Public Const RTN_MC_CrdCfg_HANDLE                 As Integer = 1099    ' NMC_CrdConfig:crdHandle错误
Public Const RTN_MC_CrdCfg_DISABLE                As Integer = 1100    ' NMC_CrdConfig:crd无法使用
Public Const RTN_MC_CrdCfg_AXIS                   As Integer = 1101    ' NMC_CrdConfig:参与轴数目错误
Public Const RTN_MC_CrdCfg_AXIS_INDEX             As Integer = 1102    ' NMC_CrdConfig:参与轴序号错误
Public Const RTN_MC_CrdCfg_BUSY                   As Integer = 1103    ' NMC_CrdConfig:坐标系正在运动
Public Const RTN_MC_GetCrdCfg_HANDLE              As Integer = 1104    ' NMC_CrdGetConfig:crdHandle错误
Public Const RTN_MC_CrdDel_HANDLE                 As Integer = 1105    ' NMC_CrdDelete:crdHandle错误
Public Const RTN_MC_CrdDel_BUSY                   As Integer = 1106    ' NMC_CrdDelete:坐标系正在运动,不能执行该操作
Public Const RTN_MC_CrdSetPrm_HANDLE              As Integer = 1107    ' NMC_CrdSetPara:crdHandle错误
Public Const RTN_MC_CrdSetPrm_EN                  As Integer = 1108    ' NMC_CrdSetPara:坐标系未启用
Public Const RTN_MC_CrdSetPrm_ACC                 As Integer = 1109    ' NMC_CrdSetPara:synAccMax范围不正确，(0,max]
Public Const RTN_MC_CrdSetPrm_VEL                 As Integer = 1110    ' NMC_CrdSetPara:synVelMax范围不正确，(0,max]
Public Const RTN_MC_CrdGetPrm_HANDLE              As Integer = 1111    ' NMC_CrdGetPara:crdHandle错误
Public Const RTN_MC_CrdGetPrm_EN                  As Integer = 1112    ' NMC_CrdGetPara:坐标系未启用
Public Const RTN_MC_CrdSetExtPrm_HANDLE           As Integer = 1113    ' NMC_CrdSetExtPara:crdHandle错误
Public Const RTN_MC_CrdSetExtPrm_EN               As Integer = 1114    ' NMC_CrdSetExtPara:坐标系未启用
Public Const RTN_MC_CrdSetExtPrm_T                As Integer = 1115    ' NMC_CrdSetExtPara:T范围不正确，(0,max]
Public Const RTN_MC_CrdSetExtPrm_VEL              As Integer = 1116    ' NMC_CrdSetExtPara:startVel范围不正确，[0,max]
Public Const RTN_MC_CrdSetExtPrm_EDEC             As Integer = 1117    ' NMC_CrdSetExtPara:abruptDec范围不正确，(0,max]
Public Const RTN_MC_CrdSetExtPrm_SDEC             As Integer = 1118    ' NMC_CrdSetExtPara:smoothDec范围不正确，(0,max]
Public Const RTN_MC_CrdGetExtPrm_HANDLE           As Integer = 1119    ' NMC_CrdGetExtPara:crdHandle错误
Public Const RTN_MC_CrdGetExtPrm_EN               As Integer = 1120    ' NMC_CrdGetExtPara:坐标系未启用
Public Const RTN_MC_StartMtn_HANDLE               As Integer = 1121    ' NMC_CrdStartMtn:crdHandle错误
Public Const RTN_MC_StartMtn_EN                   As Integer = 1122    ' NMC_CrdStartMtn:坐标系未启用或者正在运动
Public Const RTN_MC_StopMtn_HANDLE                As Integer = 1123    ' NMC_CrdStopMtn:crdHandle错误
Public Const RTN_MC_StopMtn_EN                    As Integer = 1124    ' NMC_CrdStopMtn:坐标系未启用
Public Const RTN_MC_EStopMtn_HANDLE               As Integer = 1125    ' NMC_CrdEstopMtn:crdHandle错误
Public Const RTN_MC_EStopMtn_EN                   As Integer = 1126    ' NMC_CrdEstopMtn:坐标系未启用
Public Const RTN_MC_GetCrdSts_HANDLE              As Integer = 1127    ' NMC_CrdGetSts:crdHandle错误
Public Const RTN_MC_GetCrdSts_EN                  As Integer = 1128    ' NMC_CrdGetSts:坐标系未启用
Public Const RTN_MC_GetCrdPos_HANDLE              As Integer = 1129    ' NMC_CrdGetPrfPos:crdHandle错误
Public Const RTN_MC_GetCrdPos_EN                  As Integer = 1130    ' NMC_CrdGetPrfPos:坐标系未启用
Public Const RTN_MC_GetCrdPos_COUNT               As Integer = 1131    ' NMC_CrdGetPrfPos:cnts范围不正确
Public Const RTN_MC_GetCrdVel_HANDLE              As Integer = 1132    ' NMC_CrdGetVel:crdHandle错误
Public Const RTN_MC_GetCrdVel_EN                  As Integer = 1133    ' NMC_CrdGetVel:坐标系未启用
Public Const RTN_MC_SetOvrd_HANDLE                As Integer = 1134    ' NMC_CrdSetOverRide:crdHandle错误
Public Const RTN_MC_SetOvrd_EN                    As Integer = 1135    ' NMC_CrdSetOverRide:坐标系未启用
Public Const RTN_MC_SetOvrd_OVERIDE               As Integer = 1136    ' NMC_CrdSetOverRide:overRide范围错误
Public Const RTN_MC_GetOvrd_HANDLE                As Integer = 1137    ' NMC_CrdGetOverRide:crdHandle错误
Public Const RTN_MC_GetOvrd_EN                    As Integer = 1138    ' NMC_CrdGetOverRide:坐标系未启用
Public Const RTN_MC_GetBufFree_HANDLE             As Integer = 1139    ' NMC_CrdBufGetFree:crdHandle错误
Public Const RTN_MC_GetBufFree_EN                 As Integer = 1140    ' NMC_CrdBufGetFree:坐标系未启用
Public Const RTN_MC_GetBufUsed_HANDLE             As Integer = 1141    ' NMC_CrdBufGetUsed:crdHandle错误
Public Const RTN_MC_GetBufUsed_EN                 As Integer = 1142    ' NMC_CrdBufGetUsed:坐标系未启用
Public Const RTN_MC_CrdBufClr_HANDLE              As Integer = 1143    ' NMC_CrdBufClr:crdHandle错误
Public Const RTN_MC_CrdBufClr_EN                  As Integer = 1144    ' NMC_CrdBufClr:坐标系未启用
Public Const RTN_MC_GetSegNo_HANDLE               As Integer = 1145    ' NMC_CrdGetUserSegNo:crdHandle错误
Public Const RTN_MC_GetSegNo_EN                   As Integer = 1146    ' NMC_CrdGetUserSegNo:坐标系未启用
Public Const RTN_MC_GetBufAllCnt_HANDLE           As Integer = 1147    ' NMC_CrdGetBufAllCmdCnt:crdHandle错误
Public Const RTN_MC_GetBufAllCnt_EN               As Integer = 1148    ' NMC_CrdGetBufAllCmdCnt:坐标系未启用
Public Const RTN_MC_EndMtn_HANDLE                 As Integer = 1149    ' NMC_CrdEndMtn:crdHandle错误
Public Const RTN_MC_EndMtn_EN                     As Integer = 1150    ' NMC_CrdEndMtn:坐标系未启用
Public Const RTN_MC_GetCrdEncPos_HANDLE           As Integer = 1151    ' NMC_CrdGetEncPos:crdHandle错误
Public Const RTN_MC_GetCrdEncPos_EN               As Integer = 1152    ' NMC_CrdGetEncPos:坐标系未启用
Public Const RTN_MC_GetCrdEncPos_COUNT            As Integer = 1153    ' NMC_CrdGetEncPos:count范围错误
Public Const RTN_MC_CrdClrErr_HANDLE              As Integer = 1154    ' NMC_CrdClrError:crdHandle错误
Public Const RTN_MC_CrdClrErr_EN                  As Integer = 1155    ' NMC_CrdClrError:坐标系未启用
Public Const RTN_MC_CrdSetVFolw_HANDLE            As Integer = 1156    ' NMC_CrdSetValueFollow:crdHandle错误
Public Const RTN_MC_CrdSetVFolw_EN                As Integer = 1157    ' NMC_CrdSetValueFollow:坐标系未启用
Public Const RTN_MC_CrdLineXYZ_HANDLE             As Integer = 1158    ' NMC_CrdLineXYZ:crdHandle错误
Public Const RTN_MC_CrdLineXYZ_EN                 As Integer = 1159    ' NMC_CrdLineXYZ:坐标系未启用
Public Const RTN_MC_CrdLineXYZ_VEL                As Integer = 1160    ' NMC_CrdLineXYZ:Vel范围不正确
Public Const RTN_MC_CrdLineXYZ_ACC                As Integer = 1161    ' NMC_CrdLineXYZ:synAcc范围不正确
Public Const RTN_MC_CrdArcR_HANDLE                As Integer = 1162    ' NMC_CrdArcRadius:crdHandle错误
Public Const RTN_MC_CrdArcR_EN                    As Integer = 1163    ' NMC_CrdArcRadius:坐标系未启用
Public Const RTN_MC_CrdArcR_VEL                   As Integer = 1164    ' NMC_CrdArcRadius:Vel范围不正确
Public Const RTN_MC_CrdArcR_ACC                   As Integer = 1165    ' NMC_CrdArcRadius:synAcc范围不正确
Public Const RTN_MC_CrdArcC_HANDLE                As Integer = 1166    ' NMC_CrdArcCenter:crdHandle错误
Public Const RTN_MC_CrdArcC_EN                    As Integer = 1167    ' NMC_CrdArcCenter:坐标系未启用
Public Const RTN_MC_CrdArcC_VEL                   As Integer = 1168    ' NMC_CrdArcCenter:Vel范围不正确
Public Const RTN_MC_CrdArcC_ACC                   As Integer = 1169    ' NMC_CrdArcCenter:synAcc范围不正确
Public Const RTN_MC_CrdArcP_HANDLE                As Integer = 1170    ' NMC_CrdArcPPP:crdHandle错误
Public Const RTN_MC_CrdArcP_EN                    As Integer = 1171    ' NMC_CrdArcPPP:坐标系未启用
Public Const RTN_MC_CrdArcP_VEL                   As Integer = 1172    ' NMC_CrdArcPPP:Vel范围不正确
Public Const RTN_MC_CrdArcP_ACC                   As Integer = 1173    ' NMC_CrdArcPPP:synAcc范围不正确
Public Const RTN_MC_CrdHelixC_HANDLE              As Integer = 1174    ' NMC_CrdHelixCenter:crdHandle错误
Public Const RTN_MC_CrdHelixC_EN                  As Integer = 1175    ' NMC_CrdHelixCenter:坐标系未启用
Public Const RTN_MC_CrdHelixC_VEL                 As Integer = 1176    ' NMC_CrdHelixCenter:Vel范围不正确
Public Const RTN_MC_CrdHelixC_ACC                 As Integer = 1177    ' NMC_CrdHelixCenter:synAcc范围不正确
Public Const RTN_MC_CrdHelixC_ROUND               As Integer = 1178    ' NMC_CrdHelixCenter:rounds范围不正确
Public Const RTN_MC_CrdBufDo_HANDLE               As Integer = 1179    ' NMC_CrdBufDo:crdHandle错误
Public Const RTN_MC_CrdBufDo_EN                   As Integer = 1180    ' NMC_CrdBufDo:坐标系未启用
Public Const RTN_MC_CrdBufDo_GOURP                As Integer = 1181    ' NMC_CrdBufDo:group范围不正确
Public Const RTN_MC_CrdBufDo_OPBITS               As Integer = 1182    ' NMC_CrdBufDo:opbits范围不正确
Public Const RTN_MC_CrdBufOut_HANDLE              As Integer = 1183    ' NMC_CrdBufOut:crdHandle错误
Public Const RTN_MC_CrdBufOut_EN                  As Integer = 1184    ' NMC_CrdBufOut:坐标系未启用
Public Const RTN_MC_CrdBufOut_CH                  As Integer = 1185    ' NMC_CrdBufOut:ch范围不正确
Public Const RTN_MC_CrdBufOut_GROUP               As Integer = 1186    ' NMC_CrdBufOut:group范围不正确
Public Const RTN_MC_CrdBufDelay_HANDLE            As Integer = 1187    ' NMC_CrdBufDelay:crdHandle错误
Public Const RTN_MC_CrdBufDelay_EN                As Integer = 1188    ' NMC_CrdBufDelay:坐标系未启用
Public Const RTN_MC_CrdBufDelay_SCALE             As Integer = 1189    ' NMC_CrdBufDelay:ch范围不正确
Public Const RTN_MC_CrdBufDelay_COUNT             As Integer = 1190    ' NMC_CrdBufDelay:group范围不正确
Public Const RTN_MC_CrdBufDi_HANDLE               As Integer = 1191    ' NMC_CrdBufWaitDI:crdHandle错误
Public Const RTN_MC_CrdBufDi_EN                   As Integer = 1192    ' NMC_CrdBufWaitDI:坐标系未启用
Public Const RTN_MC_CrdBufDi_INDEX                As Integer = 1193    ' NMC_CrdBufWaitDI:index范围不正确
Public Const RTN_MC_CrdBufDi_COUNT                As Integer = 1194    ' NMC_CrdBufWaitDI:waitTimeInMs范围不正确
Public Const RTN_MC_CrdBufAx_HANDLE               As Integer = 1195    ' NMC_CrdBufAxMove:crdHandle错误
Public Const RTN_MC_CrdBufAx_EN                   As Integer = 1196    ' NMC_CrdBufAxMove:坐标系未启用
Public Const RTN_MC_CrdBufAx_AXIS                 As Integer = 1197    ' NMC_CrdBufAxMove:axisNum范围不正确
Public Const RTN_MC_BufSetPtpMovePara_HANDLE      As Integer = 1198    ' NMC_CrdBufSetPtpMovePara:crdHandle错误
Public Const RTN_MC_BufSetPtpMovePara_EN          As Integer = 1199    ' NMC_CrdBufSetPtpMovePara:坐标系未启用
Public Const RTN_MC_BufSetPtpMovePara_AXIS        As Integer = 1200    ' NMC_CrdBufSetPtpMovePara:axis范围不正确
Public Const RTN_MC_BufSetPtpMovePara_VEL         As Integer = 1201    ' NMC_CrdBufSetPtpMovePara:vel范围不正确
Public Const RTN_MC_BufSetPtpMovePara_ACC         As Integer = 1202    ' NMC_CrdBufSetPtpMovePara:acc范围不正确
Public Const RTN_MC_BufSetPtpMovePara_SMTH        As Integer = 1203    ' NMC_CrdBufSetPtpMovePara:smooth范围不正确
Public Const RTN_MC_CrdBufFollow_HANDLE           As Integer = 1204    ' NMC_CrdBufWaitDI:crdHandle错误
Public Const RTN_MC_BufPushData_EN                As Integer = 1205    ' NMC_CrdPushData:crdHandle错误
Public Const RTN_MC_BufPushData_HANDLE            As Integer = 1206    ' NMC_CrdPushData:坐标系未启用

Public Const RTN_MC_INN_GetCenter_OVER            As Integer = 1207    ' 插补指令圆弧参数错误'请检查圆弧参数是否符合
Public Const RTN_MC_INN_GetRad_OVER               As Integer = 1208    ' 插补指令圆弧参数错误'请检查圆弧参数是否符合
Public Const RTN_MC_INN_GetCircDist_NULL          As Integer = 1209    ' 插补指令圆弧参数错误'请检查圆弧参数是否符合
Public Const RTN_MC_INN_ARC_ONLYXY                As Integer = 1210    ' 目前只支持XY平面的圆弧插补
Public Const RTN_MC_INN_ARC_ONLYXY2               As Integer = 1211    ' 目前只支持XY平面的圆弧插补
Public Const RTN_MC_INN_ARC_ENDP                  As Integer = 1212    ' 圆弧终点不合理，过大或者过小
Public Const RTN_MC_INN_ARC_R_CIRCLE              As Integer = 1213    ' 半径描述法，不支持描述整圆
Public Const RTN_MC_INN_ARC_R_CENTER              As Integer = 1214    ' 圆心位置不合理
Public Const RTN_MC_INN_ARC_PPP_SAME              As Integer = 1215    ' 3点重合
Public Const RTN_MC_INN_ARC_PPP_LINE              As Integer = 1216    ' 3点共线
Public Const RTN_MC_INN_HELIX_NULL                As Integer = 1217    ' 螺旋线数据为空
Public Const RTN_MC_INN_HELIX_ENDP                As Integer = 1218    ' 螺旋线数据终点不合理，过大或者过小
Public Const RTN_MC_INN_HELIX_CIRCLE              As Integer = 1219    ' 螺旋线不能描述整圆
Public Const RTN_MC_INN_HELIX_CENTER              As Integer = 1220    ' 螺旋线圆心位置不合理
Public Const RTN_MC_INN_HELIX_POS                 As Integer = 1221    ' 螺旋线起点和终点不合理
Public Const RTN_MC_INN_HELIX_LEN                 As Integer = 1222    ' 螺旋线长度不合理
Public Const RTN_MC_INN_DOWNDATA_NULL             As Integer = 1223    ' 下载数据为空
Public Const RTN_MC_INN_DA_CH                     As Integer = 1224    ' DAC通道范围不正确
Public Const RTN_MC_INN_DOWNLINE_NULL             As Integer = 1225    ' 下载数据为空
Public Const RTN_MC_INN_DOWNLINE_POS              As Integer = 1226    ' 下载数据位置不合理，过大或者过小
Public Const RTN_MC_INN_ENDVEL_ZERO               As Integer = 1227    ' 计算的终点速度小于0
Public Const RTN_MC_INN_VEL_ZERO                  As Integer = 1228    ' 计算的目标速度小于0
Public Const RTN_MC_INN_ACC_ZERO                  As Integer = 1229    ' 计算的目标速度小于0
Public Const RTN_MC_INN_DOWNARC_NULL              As Integer = 1230    ' 下载数据为空
Public Const RTN_MC_INN_ARC_Z                     As Integer = 1231    ' Z方向存在位移，目前支持XY平面
Public Const RTN_MC_INN_C_ENDPOS                  As Integer = 1232    ' 终点位置不合理，过大或者过小
Public Const RTN_MC_INN_CD_CIRCLE                 As Integer = 1233    ' 圆弧下载：半径描述法不能描述整圆
Public Const RTN_MC_INN_CD_CENTER                 As Integer = 1234    ' 圆弧下载：圆心坐标不合理
Public Const RTN_MC_INN_CD_PPP_S                  As Integer = 1235    ' 圆弧下载：三点重合
Public Const RTN_MC_INN_CD_PPP_L                  As Integer = 1236    ' 圆弧下载：三点共线
Public Const RTN_MC_INN_HELIX_D_NULL              As Integer = 1237    ' 螺旋线数据为空
Public Const RTN_MC_INN_HELIX_D_ENDP              As Integer = 1238    ' 螺旋线数据终点不合理，过大或者过小
Public Const RTN_MC_INN_HELIX_D_CIRCLE            As Integer = 1239    ' 螺旋线不能描述整圆
Public Const RTN_MC_INN_HELIX_D_CENTER            As Integer = 1240    ' 螺旋线圆心位置不合理
Public Const RTN_MC_INN_HELIX_D_POS               As Integer = 1241    ' 螺旋线起点和终点不合理
Public Const RTN_MC_INN_HELIX_D_LEN               As Integer = 1242    ' 螺旋线长度范围不正确
Public Const RTN_MC_INN_HELIX_D_VELEND            As Integer = 1243    ' 螺旋线终点速度范围不正确
Public Const RTN_MC_INN_HELIX_D_VEL               As Integer = 1244    ' 螺旋线速度范围不正确
Public Const RTN_MC_INN_HELIX_D_ACC               As Integer = 1245    ' 螺旋线加速度范围不正确
Public Const RTN_MC_INN_CRV_TYPE                  As Integer = 1246    ' 指令类型异常
Public Const RTN_MC_INN_DS_NULL                   As Integer = 1247    ' 下层下发数据为空
Public Const RTN_MC_INN_DC_VEL                    As Integer = 1248    ' 圆弧计算速度超出范围
Public Const RTN_MC_INN_DC_ENDVEL                 As Integer = 1249    ' 圆弧计算速度超出范围
Public Const RTN_MC_INN_DC_ACC                    As Integer = 1250    ' 圆弧计算速度超出范围
Public Const RTN_MC_INN_DC_ENDPOS                 As Integer = 1251    ' 圆弧计算终点不合理，过大或者过小
Public Const RTN_MC_CRD_NO_SPACE                  As Integer = 1252    ' 插补缓冲区无数据
Public Const RTN_MC_MT_SetAxisFilter_Err          As Integer = 1253    ' 设置轴速度滤波参数错误
Public Const RTN_MC_AX_ON_ALARM                   As Integer = 1254    ' axis on 条件不满足:伺服报警
Public Const RTN_MC_AX_ON_POSERR                  As Integer = 1255    ' axis on 条件不满足:位置越限
Public Const RTN_MC_EnableCrdSdram                As Integer = 1256    ' 使能crd的sdram启用参数错误
Public Const RTN_MC_Sdram_no_Space                As Integer = 1257    ' SDRAM无足够空间
Public Const RTN_MC_Push_Sdram_err                As Integer = 1258    ' push数据到SDRAM错误
Public Const RTN_MC_AX_HOME_PARA                  As Integer = 1259    ' 回零临时，参数不正确
Public Const RTN_MC_CrdGetConfig_EN               As Integer = 1260    ' NMC_CrdGetConfig获取参数时，未使能插补模块
Public Const RTN_MC_ClrCrdSts_HANDLE              As Integer = 1261    ' NMC_ClrCrdSts句柄错误

Public Const RTN_MC_SetHomePara_HANDLE            As Integer = 1262    ' NMC_MtSetHomePara句柄错误
Public Const RTN_MC_GetHomeSts_HANDLE             As Integer = 1263    ' NMC_MtGetHomeSts句柄错误
Public Const RTN_MC_HomeStart_HANDLE              As Integer = 1264    ' NMC_MtHome句柄错误
Public Const RTN_MC_HomeStop_HANDLE               As Integer = 1265    ' NMC_MtHomeStop句柄错误
Public Const RTN_MC_GetHomeError_HANDLE           As Integer = 1266    ' NMC_MtGetHomeError句柄错误
Public Const RTN_MC_GetHomePara_HANDLE            As Integer = 1267    ' NMC_MtGetHomePara句柄错误
Public Const RTN_MC_TryHome_HANDLE                As Integer = 1268    ' NMC_MtTryHome句柄错误
Public Const RTN_MC_HomeStartInNegLmt_HANDLE      As Integer = 1269    ' NMC_MtHome或者NMC_MtTryHome调用时，电机负向限位触发，并且负向限位开关未输入句柄错误
Public Const RTN_MC_HomeStartInPosLmt_HANDLE      As Integer = 1270    ' NMC_MtHome或者NMC_MtTryHome调用时，电机正向限位触发，并且正向限位开关未输入句柄错误
Public Const RTN_MC_HomeStartInAlarm_HANDLE       As Integer = 1271    ' NMC_MtHome或者NMC_MtTryHome调用时，电机报警
Public Const RTN_MC_HomeStartInMoving_HANDLE      As Integer = 1272    ' NMC_MtHome或者NMC_MtTryHome调用时，电机正在运动
Public Const RTN_MC_GetCrdAxisPos_HANDLE          As Integer = 1273    ' NMC_CrdGetAxisPos句柄错误
Public Const RTN_MC_GetCrdAxisPos_EN              As Integer = 1274    ' NMC_CrdGetAxisPos坐标系未初始化
Public Const RTN_MC_GetCrdAxisPos_COUNT           As Integer = 1275    ' NMC_CrdGetAxisPos cnts参数错误
Public Const RTN_MC_CrdBufClr_CrdBusy             As Integer = 1276    ' NMC_CrdBufClr Crd busy
Public Const RTN_MC_GetCrdStsPack3_HANDLE         As Integer = 1277    ' NMC_CrdGetStsPack3句柄错误
Public Const RTN_MC_GetCrdStsPack3_EN             As Integer = 1278    ' NMC_CrdGetStsPack3坐标系未初始化
Public Const RTN_MC_CrdSetExtPara_CrdBusy         As Integer = 1279    ' NMC_CrdSetExtPara:当前坐标系正在运动
Public Const RTN_MC_CrdSetPara_CrdBusy            As Integer = 1280    ' NMC_CrdSetPara:当前坐标系正在运动
Public Const RTN_MC_CrdConfig_CrdBusy             As Integer = 1281    ' NMC_CrdConfig:当前坐标系正在运动
Public Const RTN_MC_CrdStartMtn_Mode              As Integer = 1282    ' NMC_CrdStartMtn:启动时相关轴模式不对
Public Const RTN_MC_SetPrfMode_Busy               As Integer = 1283    ' NMC_SetPrfMode:需要切换模式的轴处于busy状态
Public Const RTN_MC_MtUpdate_error                As Integer = 1284    ' NMC_MtUpdate启动模式错误，当前轴模式不在该启动范围
Public Const RTN_MC_SetPrfCoe_HANDLE              As Integer = 1285    ' NMC_MtSetPrfCoe:句柄错误
Public Const RTN_MC_GetPrfCoe_HANDLE              As Integer = 1286    ' NMC_MtGetPrfCoe:句柄错误
Public Const RTN_MC_SetPrfCoe_Range               As Integer = 1287    ' NMC_MtSetPrfCoe:系数范围不正确' inCoe有效范围：(0,1]
Public Const RTN_MC_SetPrfCoe_Busy                As Integer = 1288    ' NMC_MtSetPrfCoe:轴忙，不能设置
Public Const RTN_MC_SetPrfCoe_PosNotZero          As Integer = 1289    ' NMC_MtSetPrfCoe:当前位置不为0，不能设置' 先回原点，清除位置，然后再设置
Public Const RTN_MC_GetIOModuleSts_Unsupport      As Integer = 1290    ' NMC_GetIOModuleSts:IO扩展模块不支持
Public Const RTN_MC_SetIOModuleEn_Param           As Integer = 1291    ' NMC_SetIOModuleEn:参数错误，chDevId范围不正确
Public Const RTN_MC_SetIOModuleEn_Unsupport       As Integer = 1292    ' NMC_SetIOModuleEn:IO扩展模块不支持
Public Const RTN_MC_GetDI_En                      As Integer = 1293    ' NMC_GetDI:对应IO模块未配置
Public Const RTN_MC_BackSramWrite_out_rang        As Integer = 1294    ' NMC_BackSramWrite操作地址越界
Public Const RTN_MC_BackSramRead_out_rang         As Integer = 1295    ' NMC_BackSramRead操作地址越界
Public Const RTN_MC_BackSramWrite_Len             As Integer = 1296    ' NMC_BackSramWrite:写sram错误，写入长度不正确
Public Const RTN_MC_BackSramRead_Len              As Integer = 1297    ' NMC_BackSramRead:读sram错误，读取长度不正确
Public Const RTN_MC_CrdLineXYZPack_Count          As Integer = 1298    ' NMC_CrdLineXYZPack:count范围不正确[1,5]
Public Const RTN_MC_CrdLineXYZPack_Handle         As Integer = 1299    ' NMC_CrdLineXYZPack:句柄错误
Public Const RTN_MC_CrdLineXYZPack_En             As Integer = 1300    ' NMC_CrdLineXYZPack:坐标系未初始化
Public Const RTN_MC_CrdLineXYZPack_NoSpace        As Integer = 1301    ' NMC_CrdLineXYZPack:没有足够的空间 ' 检查空间是否足够
Public Const RTN_MC_CrdSetArcSecPara_Handle       As Integer = 1302    ' NMC_CrdSetArcSecPara:句柄错误
Public Const RTN_MC_CrdSetArcSecPara_En           As Integer = 1303    ' NMC_CrdSetArcSecPara:坐标系未初始化
Public Const RTN_MC_CrdSetArcSecPara_R_Rise       As Integer = 1304    ' NMC_CrdSetArcSecPara:误差半径表的r值不符合，必须递增
Public Const RTN_MC_CrdSetArcSecPara_Err          As Integer = 1305    ' NMC_CrdSetArcSecPara:误差半径表的err值不能小于等于0
Public Const RTN_MC_CrdSetArcSecPara_Diff         As Integer = 1306    ' NMC_CrdSetArcSecPara:maxArcDiff范围不正确，不能小于1
Public Const RTN_MC_CrdSetArcSecPara_Sec          As Integer = 1307    ' NMC_CrdSetArcSecPara:minSectionLen不能小于0
Public Const RTN_MC_CrdGetArcSecPara_Handle       As Integer = 1308    ' NMC_CrdGetArcSecPara:句柄错误
Public Const RTN_MC_CrdGetArcSecPara_En           As Integer = 1309    ' NMC_CrdGetArcSecPara:坐标系未初始化
Public Const RTN_IO_GetDIBit_En                   As Integer = 1310    ' NMC_GetDIBit:扩展模块未使能 '请先调用NMC_SetIOModuleEn使能响应模块
Public Const RTN_IO_SetDoBit_En                   As Integer = 1311    ' NMC_SetDOBit:扩展模块未使能 '请先调用NMC_SetIOModuleEn使能响应模块
Public Const RTN_IO_SetDo_En                      As Integer = 1312    ' NMC_SetDO:扩展模块未使能 '请先调用NMC_SetIOModuleEn使能响应模块
Public Const RTN_IO_GetDo_En                      As Integer = 1313    ' NMC_GetDO:扩展模块未使能 '请先调用NMC_SetIOModuleEn使能响应模块
Public Const RTN_MC_GetCollectDataAddr_BUSY       As Integer = 1314    ' NMC_GetCollectDataAddr:正在数据采集
Public Const RTN_MC_GetCollectDataAddr_index      As Integer = 1315    ' NMC_GetCollectDataAddr:index 超出范围
Public Const RTN_MC_ConfigCollect_BUSY            As Integer = 1316    ' NMC_ConfigCollect:正在采集数据，不允许配置
Public Const RTN_MC_StartCollect_ErrFlag          As Integer = 1317    ' NMC_StartCollect:正在采集数据
Public Const RTN_MC_GetCollectData_Err            As Integer = 1318    ' NMC_GetCollectData:取数据失败
Public Const RTN_MC_ConfigCollect_count           As Integer = 1319    ' MC_ConfigCollect:count 超出范围
Public Const RTN_MC_SetJogPara_Busy               As Integer = 1320    ' NMC_MtSetJogPara:忙
Public Const RTN_MC_SetJogPara_Mode               As Integer = 1321    ' NMC_MtSetJogPara:非jog模式下不允许配置
Public Const RTN_MC_SetPtpPara_Busy               As Integer = 1322    ' NMC_MtSetPtpPara:忙
Public Const RTN_MC_SetPtpPara_Mode               As Integer = 1323    ' NMC_MtSetPtpPara:非PTP模式下不允许配置
Public Const RTN_MC_SetAxisPos_Busy               As Integer = 1324    ' NMC_MtSetAxisPos:非静止状态下禁止设置
Public Const RTN_IO_SetEncPos_INDEX               As Integer = 1325    ' NMC_MtSetEncPos:encId范围不正确
Public Const RTN_MC_SetEncCoe_HANDLE              As Integer = 1326    ' NMC_MtSetEncCoe:句柄错误
Public Const RTN_MC_GetEncCoe_HANDLE              As Integer = 1327    ' NMC_MtGetEncCoe:句柄错误
Public Const RTN_MC_SetEncCoe_Range               As Integer = 1328    ' NMC_MtSetEncCoe:系数范围不正确' inCoe有效范围：(0,1]
Public Const RTN_MC_SetEncCoe_Busy                As Integer = 1329    ' NMC_MtSetEncCoe:轴忙，不能设置
Public Const RTN_MC_SetEncCoe_PosNotZero          As Integer = 1330    ' NMC_MtSetEncCoe:当前位置不为0，不能设置' 先回原点，清除位置，然后再设置
Public Const RTN_MC_ConfigCollect_Interval        As Integer = 1331    ' MC_ConfigCollect:interval 超出范围

Public Const RTN_MC_SetLaserPower_group           As Integer = 1332    ' NMC_SetLaserPower设置激光能量的组号超范围
Public Const RTN_MC_SetLaserPower_points          As Integer = 1334    ' NMC_SetLaserPower设置激光能量的组内点数超单位
Public Const RTN_MC_LaserOn_group                 As Integer = 1335    ' NMC_LaserOn打开激光的组号超范围
Public Const RTN_MC_LaserOn_type                  As Integer = 1336    ' NMC_LaserOn打开激光的类型不对
Public Const RTN_MC_LaserOff_group                As Integer = 1337    ' NMC_LaserOff关闭激光的组号超范围
Public Const RTN_MC_LaserOff_type                 As Integer = 1338    ' NMC_LaserOff关闭激光的类型不对
Public Const RTN_MC_LaserConfig_laserType         As Integer = 1339    ' NMC_LaserConfig配置激光的类型不对
Public Const RTN_MC_LaserConfig_val_err           As Integer = 1340    ' NMC_LaserConfig配置激光的option值错误
Public Const RTN_MC_DelGantryGroup_exe_err        As Integer = 1341    ' NMC_DelGantryGroup:执行错误
Public Const RTN_MC_DelGantryGroup_axisHandle_err As Integer = 1342    ' NMC_DelGantryGroup:句柄错误
Public Const RTN_MC_SetGantrySlave_have_Set       As Integer = 1343    ' NMC_SetGantrySlave:设置错误
Public Const RTN_MC_SetGantryMaster_Busy          As Integer = 1344    ' NMC_SetGantrySlave:正在运动
Public Const RTN_MC_SetGantrySlave_HANDLE         As Integer = 1345    ' NMC_SetGantrySlave:句柄错误
Public Const RTN_MC_SetGantryMaster_HANDLE        As Integer = 1346    ' NMC_SetGantryMaster:句柄错误
Public Const RTN_MC_SetGantryMaster_have_master   As Integer = 1347    ' NMC_SetGantryMaster:master存在
Public Const RTN_MC_CrdLineXYZ_Len_Zero           As Integer = 1348    ' NMC_CrdLineXYZ:直线插补长度为0
Public Const RTN_MC_CrdGotoBreak_VEL              As Integer = 1349    ' CrdGotoBreak:速度设置错误
Public Const RTN_MC_CrdGotoBreak_ACC              As Integer = 1350    ' CrdGotoBreak:加速度设置错误
Public Const RTN_MC_CrdGotoBreak_axis_busy        As Integer = 1351    ' CrdGotoBreak:回断点轴正忙
Public Const RTN_MC_CrdSetOffset_count            As Integer = 1352    ' CrdSetOffset 设置的偏移个数错误
Public Const RTN_MC_CrdStartMtn_stPos_err         As Integer = 1353    ' CrdStartMtn 启动时的位置与计算起点不一致，或者需要回到断点处
Public Const RTN_MC_MtSetLmtCfg_Handle            As Integer = 1354    ' NMC_MtSetLmtCfg:限位配置句柄错误
Public Const RTN_MC_MtSetAlarmCfg_Handle          As Integer = 1355    ' NMC_MtSetAlarmCfg报警配置句柄错误
Public Const RTN_MC_CrdGotoBreak_En               As Integer = 1356    ' NMC_CrdGotoBreak未启用
Public Const RTN_MC_CrdGotoBreak_Handle           As Integer = 1357    ' NMC_CrdGotoBreak:crd句柄错误
Public Const RTN_MC_CrdSetOffset_En               As Integer = 1358    ' NMC_CrdSetOffset未启用
Public Const RTN_MC_CrdSetOffset_Handle           As Integer = 1359    ' NMC_CrdSetOffset:crd句柄错误
Public Const RTN_MC_CrdSetOffset_Axis_Busy        As Integer = 1360    ' NMC_CrdSetOffset:电机正在运动
Public Const RTN_MC_CrdGotoBreak_NoData           As Integer = 1361    ' NMC_CrdGotoBreak:无断点信息
Public Const RTN_MC_MtSetEncPos_Busy              As Integer = 1362    ' NMC_MtSetEncPos:忙，正在运动
Public Const RTN_MC_SetGantrySlave_Busy           As Integer = 1363    ' NMC_SetGantrySlave:忙
Public Const RTN_MC_SetGantrySlave_Pos            As Integer = 1364    ' NMC_SetGantrySlave:主从轴当前位置超?
Public Const RTN_MC_GantryGroup_Range             As Integer = 1365    ' gantry gourp参数范围不正确，有效范围[0,]
Public Const RTN_MC_SetGantrySlave_ErrLmt_Range   As Integer = 1367    ' NMC_SetGantrySlave：gantryErrLmt必须大于0


Public Const RTN_MC_BufSHIOGateOn_HANDLE          As Integer = 500     ' NMC_BufSHIOGateOn:句柄错误
Public Const RTN_MC_BufSHIOGateOn_EN              As Integer = 501     ' NMC_BufSHIOGateOn:调用该指令未启动插补坐标系
Public Const RTN_MC_BufSHIOGateOff_HANDLE         As Integer = 502     ' NMC_BufSHIOGateOff:句柄错误
Public Const RTN_MC_BufSHIOGateOff_EN             As Integer = 503     ' NMC_BufSHIOGateOff:调用该指令未启动插补坐标系
Public Const RTN_MC_LaserConfig_mode_err          As Integer = 504     ' NMC_LaserConfig:输入模式错误，没有该模式
Public Const RTN_MC_ConfigHSIOPara_isArray        As Integer = 505     ' NMC_ConfigHSIOPara:isArray参数错误
Public Const RTN_MC_ConfigHSIOPara_outMode        As Integer = 506     ' NMC_ConfigHSIOPara:outMode参数错误
Public Const RTN_MC_ConfigHSIOPara_posSrc         As Integer = 507     ' NMC_ConfigHSIOPara:posSrc参数错误
Public Const RTN_MC_ConfigHSIOPara_gateTime       As Integer = 508     ' NMC_ConfigHSIOPara:gateTime参数错误
Public Const RTN_MC_ConfigHSIOPara_delay          As Integer = 509     ' NMC_ConfigHSIOPara:delay参数小于0
Public Const RTN_MC_ConfigHSIOPara_gateDistance   As Integer = 510     ' NMC_ConfigHSIOPara:gateDistance参数错误
Public Const RTN_MC_SHIOTriggerOn_triggerFreq     As Integer = 511     ' NMC_SHIOTriggerOn:triggerFreq参数错误
Public Const RTN_MC_SHIOTriggerOn_triggerWidth    As Integer = 512     ' NMC_SHIOTriggerOn:triggerWidth参数错误
Public Const RTN_MC_SetLaserMode_mode             As Integer = 513     ' NMC_SetLaserMode:输入模式错误，没有该模式
Public Const RTN_MC_ConfigHSIOPara_axisMask       As Integer = 514     ' NMC_SetLaserMode:输入模式错误，没有该模式
Public Const RTN_MC_SHIOChangeAxisMask_axisMask   As Integer = 515     ' NMC_SetLaserMode:输入模式错误，没有该模式
Public Const RTN_MC_MtClrError_Handle             As Integer = 516     ' NMC_MtClrStsByBits或者NMC_MtClrError:句柄错误
Public Const RTN_MC_MtClrCaptSts_Handle           As Integer = 517     ' NMC_MtClrCaptSts:句柄错误
Public Const RTN_MC_ClrHandWheel_HANDLE           As Integer = 518	   ' NMC_ClrHandWheel:句柄错
Public Const RTN_MC_SetHandWheel_HANDLE           As Integer = 519	   ' NMC_SetHandWheel:句柄错
Public Const RTN_MC_SetHandWheel_Ratio            As Integer = 520	   ' NMC_SetHandWheel:ratio 范围不正确
Public Const RTN_MC_SetHandWheel_Acc              As Integer = 521	   ' NMC_SetHandWheel:acc 范围不正确
Public Const RTN_MC_SetHandWheel_Vel              As Integer = 522	   ' NMC_SetHandWheel:vel 范围不正确
Public Const RTN_MC_SetHandWheel_Busy             As Integer = 523	   ' NMC_SetHandWheel:busy
Public Const RTN_MC_ClrHandWheel_Busy             As Integer = 524	   ' NMC_ClrHandWheel:busy
Public Const RTN_MC_SetHandWheel_isHandWheel_Mode As Integer = 525	   ' NMC_SetHandWheel:已经是手轮模式
Public Const RTN_MC_SetHandWheelInput_Index       As Integer = 526	   ' NMC_SetHandWheelInput:通道范围不正确，[0,9]
Public Const RTN_MC_ClrHandWheel_Mode             As Integer = 527	   ' NMC_ClrHandWheel:busy
Public Const RTN_MC_SetHandWheelRatio_Ratio       As Integer = 528	   ' NMC_SetHandWheelRatio:ratio不能为0

