private void btnJogPlus_MouseUp(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { //MultiMotion.JogStop(MultiMotion.INDEX_MOVE_M); } }
private void btn5StepMove_Click(object sender, EventArgs e) { if (checkLaserUnitPos() == false) { //MultiMotion.StopAll(); if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { MultiMotion.JogStop(MultiMotion.INDEX_MOVE_M); } MessageBox.Show("레이저 유닛 위치를 확인해 주세요."); return; } if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_FAST); MultiMotion.StepMove(MultiMotion.INDEX_MOVE_M, 1, true); MultiMotion.StepMove(MultiMotion.INDEX_MOVE_M, 1, false); MultiMotion.SetSpeed(this.AxisSpeed); } }
private void btnJogPlus_MouseDown(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { MultiMotion.StepMove(MultiMotion.INDEX_MOVE_M, 0, false); } }
private void btnJogMinus_MouseUp(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(0, true) == MultiMotion.KSM_OK) { //MultiMotion.JogStop(MultiMotion.INDEX_FIX_R); } }
private void btnIndexMove_P_MouseUp(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(0, false) == MultiMotion.KSM_OK) { MultiMotion.JogStop(MultiMotion.INDEX_MOVE_R); } }
private void btnPJog_Index_MouseDown(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(0, true) == MultiMotion.KSM_OK) { //MultiMotion.StepMove(MultiMotion.INDEX_FIX_R, 0, false); MultiMotion.JogMove(MultiMotion.INDEX_FIX_R, 0); } }
private void btnJogHome_Click(object sender, EventArgs e) { if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { MultiMotion.HomeMove(MultiMotion.INDEX_MOVE_M, true); MessageBox.Show("원점 이동이 완료되었습니다."); } }
private void btnIndex_X_P_MouseDown(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { //timerAxis.Enabled = true; MultiMotion.JogMove(MultiMotion.INDEX_MOVE_M, 0); } }
private void btnIndexFix_P_MouseUp(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(0, false) == MultiMotion.KSM_OK) { MultiMotion.JogStop(MultiMotion.INDEX_FIX_R); } //MultiMotion.StopAll(); // 방어 코드 ... }
private void btnIndexFix_P_MouseDown(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(0, false) == MultiMotion.KSM_OK) { //timerAxis.Enabled = true; MultiMotion.JogMove(MultiMotion.INDEX_FIX_R, 0); } }
private void btnUnlockPos_Click(object sender, EventArgs e) { if (MultiMotion.GantryAxisEnable(0, false) == MultiMotion.KSM_OK) { timerAxis.Enabled = true; //MultiMotion.MoveAxis(MultiMotion.INDEX_FIX_R, 0.0, false); //MultiMotion.MoveAxis(MultiMotion.INDEX_MOVE_R, 0.0, false); MultiMotion.HomeMove(MultiMotion.INDEX_FIX_R, false); MultiMotion.HomeMove(MultiMotion.INDEX_MOVE_R, false); } }
private void btnHome_Click(object sender, EventArgs e) { if (bFLMove == false) { MessageBox.Show("F-L 위치로 먼저 이동해 주세요."); return; } if (MultiMotion.GantryAxisEnable(0, false) == MultiMotion.KSM_OK) { MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_FAST); // ---------- MultiMotion.HomeMove(MultiMotion.INDEX_FIX_R, false); MultiMotion.HomeMove(MultiMotion.INDEX_MOVE_R, false); // ---------- MultiMotion.SetSpeed(this.AxisSpeed); bHomeReturn = true; } if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_FAST); MultiMotion.MoveAxis(MultiMotion.INDEX_MOVE_M, 1.0, true); MultiMotion.HomeMove(MultiMotion.INDEX_MOVE_M, true); MultiMotion.SetSpeed(this.AxisSpeed); bHomeReturn = true; } //MessageBox.Show("INDEX Home 복귀가 완료되었습니다."); DeviceManager.PlaySoundM4A("작업이 완료 되었습니다.m4a"); }
private void btnIndex_X_H_Click(object sender, EventArgs e) { if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { //timerAxis.Enabled = true; if (checkBoxHomeClear.Checked == true) { MultiMotion.HomeMove(MultiMotion.INDEX_MOVE_M, true); } else { MultiMotion.HomeMove(MultiMotion.INDEX_MOVE_M, false); } } }
private void btn70JogMinus_MouseUp(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { //MultiMotion.JogStop(MultiMotion.INDEX_MOVE_M); // 좌표 중복 전송 방지 ... // ---------- timerCommand.Enabled = true; bReadyCmdCheck = false; ReadyCmdCount = 0; // ---------- } // 방어 코드 => 명령어 전송 전에 모든 축 정지 // -------------------------------------------------- MultiMotion.StopAll(); // -------------------------------------------------- }
private void btn70JogPlus_MouseDown(object sender, MouseEventArgs e) { if (checkLaserUnitPos() == false) { MultiMotion.StopAll(); MessageBox.Show("레이저 유닛 위치를 확인해 주세요."); return; } if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { MultiMotion.StepMove(MultiMotion.INDEX_MOVE_M, 0, false); // 좌표 중복 전송 방지 ... // ---------- timerCommand.Enabled = false; ReadyCmdCount = 0; // ---------- } }
private bool RotatingIndex() { double dTempValue = 0.0; if (double.TryParse(this.txtRotateCount.Text, out dTempValue)) { DataManager.SelectedModel.dRotateCount = dTempValue; } else { return(false); } double dMoveValue = MultiMotion.AxisValue[MultiMotion.INDEX_FIX_R] + DataManager.SelectedModel.dRotateCount * 360.0; if (MultiMotion.GantryAxisEnable(0, true) == MultiMotion.KSM_OK) { MultiMotion.IndexGantryAxis(MultiMotion.INDEX_FIX_R, MultiMotion.INDEX_MOVE_R, dMoveValue, true); } return(true); }