public bool SetLinkDisable(int _iSlvMotrNo) { //GantryㅇDisable 실행하고 확인하면 가끔 확인 안될때가 있어서 먼저 확인하고 실행하는 것으로 바꾼다. uint uiHomeMathod = 0; double dOffset = .0; double dOfsRange = .0; uint uiGantryOn = 0; CAXM.AxmGantryGetEnable(Para.iPhysicalNo, ref uiHomeMathod, ref dOffset, ref dOfsRange, ref uiGantryOn); if (uiGantryOn == 0) { return(true); } uint uiRet = CAXM.AxmGantrySetDisable(Para.iPhysicalNo, _iSlvMotrNo); //System.Threading.Thread.Sleep(100); //uint uiHomeMathod = 0; //double dOffset = .0; //double dOfsRange = .0; //uint uiGantryOn = 0; //CAXM.AxmGantryGetEnable(Para.iPhysicalNo, ref uiHomeMathod ,ref dOffset, ref dOfsRange ,ref uiGantryOn); //if (uiGantryOn == 0) //{ // return true; //} return(false); }
public bool GantrySetDisable() { try { if (GantryMasterAxis == -1 || GantrySlaveAxis == -1 || GantryMasterAxis == GantrySlaveAxis) { return(false); } uint res = CAXM.AxmGantrySetDisable(GantryMasterAxis, GantrySlaveAxis); if (res == (uint)AXT_FUNC_RESULT.AXT_RT_SUCCESS) { return(true); } else { return(false); } } catch (Exception E) { LogFile.LogExceptionErr(E.ToString()); throw E; } }
public bool SetLinkDisable(int _iSlvMotrNo) { uint uiRet = CAXM.AxmGantrySetDisable(Para.iPhysicalNo, _iSlvMotrNo); if (uiRet == (int)AXT_FUNC_RESULT.AXT_RT_SUCCESS) { return(true); } return(false); }
public void SetGantryDisable() { uint uiRet = CAXM.AxmGantrySetDisable(Para.iPhysicalNo, Para.iGantrySubAdd); }