/// <summary> /// 轴,iO安全检查 /// </summary> /// <returns></returns> public bool IoSafeCheck(StationModule sm) { try { int count = _Config.axisArray.Count; int i = 0; int CountIo = _Config.arrWorkStation.Count; if (sm == null) { return(true); } while (i < count) { AxisConfig ac = _Config.axisArray[i]; if (ac.AxisNum >= 0 && NewCtrlCardV0.SR_GetAxisStatus(ac) == 1) { if (!AxisSafeManage.IoAxisIsSafe(sm, ac, 0, 0)) { if (Global.WorkVar.tag_isFangDaiJieChu) { return(true); } return(false); } } i++; } return(true); } catch { return(true); } }
/// <summary> /// 轴,iO安全检查 /// </summary> /// <returns></returns> public bool AxisSafeCheck() { int count = _Config.axisArray.Count; int i = 0; while (i < count) { AxisConfig ac = _Config.axisArray[i]; if (ac.AxisNum >= 0 && ac.CardNum >= 0 && NewCtrlCardV0.SR_GetAxisStatus(ac) == 1) { if (!AxisSafeManage.AxisIsSafe(_Config.tag_safeStationModule, ac, 0, 0)) { if (Global.WorkVar.tag_isFangDaiJieChu) { return(true); } return(false); } } i++; } return(true); }