///// <summary> ///// 停止M1X1裝置 (復歸流程中使用,不停止homeTask) ///// </summary> //public void Stop(StopType type) //{ // if (type == StopType.Emergency) // { // CCMNet.CS_mnet_m1_emg_stop((U16)axisPara.CardSwitchNo, (U16)axisPara.RingNoOfCard, axisPara.SlaveIP); // } // if (type == StopType.SlowDown) // { // CCMNet.CS_mnet_m1_sd_stop((U16)axisPara.CardSwitchNo, (U16)axisPara.RingNoOfCard, axisPara.SlaveIP); // } //} /// <summary> /// 停止M1X1裝置 (復歸流程中不停止homeTask) /// </summary> public void Stop(StopType type, bool isStopTask) { if (axisPara.IsActive && axisPara.Enabled) { if (type == StopType.Emergency) { CCMNet.CS_mnet_m1_emg_stop(RingNoOfMNet, axisPara.SlaveIP); } if (type == StopType.SlowDown) { CCMNet.CS_mnet_m1_sd_stop(RingNoOfMNet, axisPara.SlaveIP); } if (isStopTask) { itemHome.TProcVar.Step1 = 9000; homeTask.TurnOffAll(); } } }