private void btAllHome_Click(object sender, EventArgs e) { if (!OM.MstOptn.bDebugMode) { if (Log.ShowMessageModal("Confirm", "Do you want to All Homming?") != DialogResult.Yes) { return; } MM.SetManCycle(mc.AllHome); } else { DialogResult Rslt; Rslt = MessageBox.Show(new Form() { TopMost = true }, "홈동작을 생략 하겠습니까?", "Confirm", MessageBoxButtons.YesNoCancel); if (Rslt == DialogResult.Yes) { SM.MT_SetServoAll(true); Thread.Sleep(100); for (mi i = 0; i < mi.MAX_MOTR; i++) { SM.MT_SetHomeDone(i, true); } } else if (Rslt == DialogResult.No) { MM.SetManCycle(mc.AllHome); } } }
private void btForcedHomeEnd_Click(object sender, EventArgs e) { SM.MT_SetServoAll(true); Thread.Sleep(100); for (mi i = 0; i < mi.MAX_MOTR; i++) { SM.MT_SetHomeDone(i, true); } }