private void btnAuto_Click(object sender, EventArgs e) { // 일시 정지 버튼 대응 ... // ---------- System.Windows.Forms.Application.DoEvents(); MultiMotion.CheckDefense(); if (MultiMotion.bEAutoStop == true) { MultiMotion.bEAutoStop = false; //MessageBox.Show(""); return; } // ---------- if (Rolling70() == false) { return; } // 일시 정지 버튼 대응 ... // ---------- System.Windows.Forms.Application.DoEvents(); MultiMotion.CheckDefense(); if (MultiMotion.bEAutoStop == true) { MultiMotion.bEAutoStop = false; return; } // ---------- // V-Block ... // ---------- MultiMotion.StopAll(); MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW); MultiMotion.MoveAxis(MultiMotion.VBLOCK_Z, 1.0, true); MultiMotion.SetSpeed(this.AxisSpeed); // ---------- // 일시 정지 버튼 대응 ... // ---------- System.Windows.Forms.Application.DoEvents(); MultiMotion.CheckDefense(); if (MultiMotion.bEAutoStop == true) { MultiMotion.bEAutoStop = false; return; } // ---------- if (RotatingIndex() == false) { return; } // 일시 정지 버튼 대응 ... // ---------- System.Windows.Forms.Application.DoEvents(); MultiMotion.CheckDefense(); if (MultiMotion.bEAutoStop == true) { MultiMotion.bEAutoStop = false; return; } // ---------- if (Rolling80() == false) { return; } // 일시 정지 버튼 대응 ... // ---------- System.Windows.Forms.Application.DoEvents(); MultiMotion.CheckDefense(); if (MultiMotion.bEAutoStop == true) { MultiMotion.bEAutoStop = false; return; } // ---------- if (RotatingIndex() == false) { return; } // 일시 정지 버튼 대응 ... // ---------- System.Windows.Forms.Application.DoEvents(); MultiMotion.CheckDefense(); if (MultiMotion.bEAutoStop == true) { MultiMotion.bEAutoStop = false; return; } // ---------- MultiMotion.Swing(false); // 일시 정지 버튼 대응 ... // ---------- System.Windows.Forms.Application.DoEvents(); MultiMotion.CheckDefense(); if (MultiMotion.bEAutoStop == true) { MultiMotion.bEAutoStop = false; return; } // ---------- SaveData(); this.DialogResult = System.Windows.Forms.DialogResult.OK; }
private void btnUnswing_Click(object sender, EventArgs e) { MultiMotion.Swing(false); }
private void btnSwing_Click(object sender, EventArgs e) { MultiMotion.Swing(true); }