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 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_MouseUp(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK) { //MultiMotion.JogStop(MultiMotion.INDEX_MOVE_M); } }
private void UpdatePos() { MultiMotion.GetCurrentPos(); if (UpdateFormula() == false) { return; } double dCalcValue = 0.0; double dResult = 0.0; txtLestLength.Text = (MultiMotion.dIndex_XPos - MultiMotion.AxisValue[MultiMotion.INDEX_MOVE_M]).ToString("##.00"); if (double.TryParse(txtFLValue.Text, out DataManager.SelectedModel.dFLValue) == true) { dCalcValue = MultiMotion.dIndex_XPos - MultiMotion.AxisValue[MultiMotion.INDEX_MOVE_M] - (DataManager.SelectedModel.dMetalThick1 + DataManager.SelectedModel.dMetalThick2 - 4.5); dResult = ((dCalcValue - (DataManager.SelectedModel.dSLValue + DataManager.SelectedModel.dWRValue * 2)) / ((DataManager.SelectedModel.dFLValue - (DataManager.SelectedModel.dSLValue + DataManager.SelectedModel.dWRValue * 2)) * 0.01)); txtRollingRate.Text = (100.0 - dResult).ToString(); } }
private void btnJogMinus_MouseUp(object sender, MouseEventArgs e) { if (MultiMotion.GantryAxisEnable(0, true) == MultiMotion.KSM_OK) { //MultiMotion.JogStop(MultiMotion.INDEX_FIX_R); } }
private void RollingDown() { //MultiMotion.StopAll(); MultiMotion.JogStop(MultiMotion.ROLLING_FIX_1); MultiMotion.JogStop(MultiMotion.ROLLING_FIX_2); MultiMotion.JogStop(MultiMotion.ROLLING_MOVE_1); MultiMotion.JogStop(MultiMotion.ROLLING_MOVE_2); MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_MIDIUM); MultiMotion.MoveRolling(1.0, false); MultiMotion.SetSpeed(this.AxisSpeed); /* * MultiMotion.MoveRolling(1.0, true); * * MultiMotion.HomeMove(MultiMotion.ROLLING_FIX_1, true); // 고정축 롤링 1 * MultiMotion.HomeMove(MultiMotion.ROLLING_FIX_2, true); // 고정축 롤링 2 * MultiMotion.HomeMove(MultiMotion.ROLLING_MOVE_1, true); // 이동축 롤링 1 * MultiMotion.HomeMove(MultiMotion.ROLLING_MOVE_2, true); // 이동축 롤링 2 * * MessageBox.Show("Rolling Down이 완료되었습니다."); */ }
private void RotationMotorHome_Click(object sender, EventArgs e) { //if (checkBoxHomeClear.Checked == true) MultiMotion.HomeMove(MultiMotion.RotationMotor, true); //else // MultiMotion.HomeMove(MultiMotion.RotationMotor, false); }
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 btnVBlockUp_Click(object sender, EventArgs e) { double dTempValue = 0.0; double VBlockFL_Limit_Value = 0.0; double VBlockFL_Offset_Value = 0.0; double FL_Value = 0.0; if (double.TryParse(this.txtVBlockFL_Limit_Value.Text, out dTempValue)) { VBlockFL_Limit_Value = dTempValue; } else { txtVBlockFL_Offset_Value.Text = "200.0"; } if (double.TryParse(this.txtVBlockFL_Offset_Value.Text, out dTempValue)) { VBlockFL_Offset_Value = dTempValue; } else { txtVBlockFL_Offset_Value.Text = "0.0"; } if (double.TryParse(this.txtFLValue.Text, out dTempValue)) { FL_Value = dTempValue; } // -------------------------------------------------- if (VBlockFL_Limit_Value < 0.1 || FL_Value < 0.1) { MessageBox.Show("FL 값과 V-Block FL 제한 값을 확인하지 못하여 취소합니다."); return; } if (VBlockFL_Limit_Value > FL_Value) { MessageBox.Show("FL 값이 V-Block FL 제한 값보다 작으므로 취소합니다."); return; } // -------------------------------------------------- MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW); double dVBlockZ = 290.0 - (DataManager.SelectedModel.dCapsulePie / 2.0) + VBlockFL_Offset_Value; MultiMotion.MoveAxis(MultiMotion.VBLOCK_Z, dVBlockZ, false); MultiMotion.SetSpeed(AxisSpeed); }
private void timerAxis_Tick(object sender, EventArgs e) { UpdatePos(); if (MultiMotion.CheckDefense() != MultiMotion.KSM_OK) { } }
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 UpdatePos() { MultiMotion.GetCurrentPos(); txtXAxisValue.Text = MultiMotion.AxisValue[MultiMotion.CAM_UNIT_X].ToString(); txtYAxisValue.Text = MultiMotion.AxisValue[MultiMotion.CAM_UNIT_Y].ToString(); txtZAxisValue.Text = MultiMotion.AxisValue[MultiMotion.CAM_UNIT_Z].ToString(); }
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 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 VBlockZDown() { MultiMotion.StopAll(); MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW); MultiMotion.MoveAxis(MultiMotion.VBLOCK_Z, 1.0, false); MultiMotion.SetSpeed(this.AxisSpeed); }
private void btnRollingDown_Click(object sender, EventArgs e) { MultiMotion.StopAll(); MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_MIDIUM); MultiMotion.MoveRolling(1.0, false); MultiMotion.SetSpeed(this.AxisSpeed); }
private void frmFuncRollingUI_FormClosing(object sender, FormClosingEventArgs e) { MultiMotion.StopAll(); MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW); // 기본 속도로 변경 ... timerAxis.Enabled = false; UpdateFormula(); }
private void btnRollingMove_B_H_Click(object sender, EventArgs e) { if (checkBoxHomeClear.Checked == true) { MultiMotion.HomeMove(MultiMotion.ROLLING_MOVE_2, true); } else { MultiMotion.HomeMove(MultiMotion.ROLLING_MOVE_2, false); } }
private void btnCamUnit_Z_H_Click(object sender, EventArgs e) { if (checkBoxHomeClear.Checked == true) { MultiMotion.HomeMove(MultiMotion.CAM_UNIT_Z, true); } else { MultiMotion.HomeMove(MultiMotion.CAM_UNIT_Z, false); } }
private void btnVBlockDown_Click(object sender, EventArgs e) { //MultiMotion.StopAll(); MultiMotion.JogStop(MultiMotion.VBLOCK_Z); MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW); MultiMotion.MoveAxis(MultiMotion.VBLOCK_Z, 1.0, false); MultiMotion.SetSpeed(this.AxisSpeed); }
private void Camera2Home_Click(object sender, EventArgs e) { if (checkBoxHomeClear.Checked == true) { MultiMotion.HomeMove(MultiMotion.Camera2Adjust, true); } else { MultiMotion.HomeMove(MultiMotion.Camera2Adjust, false); } }
private void Shuttle2MotorHome_Click(object sender, EventArgs e) { if (checkBoxHomeClear.Checked == true) { MultiMotion.HomeMove(MultiMotion.Shuttle2Motor, true); } else { MultiMotion.HomeMove(MultiMotion.Shuttle2Motor, false); } }
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 btnRollingDown_Click(object sender, EventArgs e) { MultiMotion.StopAll(); MultiMotion.MoveRolling(1.0, true); MultiMotion.HomeMove(MultiMotion.ROLLING_FIX_1, true); // 고정축 롤링 1 MultiMotion.HomeMove(MultiMotion.ROLLING_FIX_2, true); // 고정축 롤링 2 MultiMotion.HomeMove(MultiMotion.ROLLING_MOVE_1, true); // 이동축 롤링 1 MultiMotion.HomeMove(MultiMotion.ROLLING_MOVE_2, true); // 이동축 롤링 2 MessageBox.Show("Rolling Down이 완료되었습니다."); }
private void btnBCam_Z_H_Click(object sender, EventArgs e) { //timerAxis.Enabled = true; if (checkBoxHomeClear.Checked == true) { MultiMotion.HomeMove(MultiMotion.BACK_CAM_Z, true); } else { MultiMotion.HomeMove(MultiMotion.BACK_CAM_Z, false); } }
private void btnFLMove_Click(object sender, EventArgs e) { if (UpdateFormula() == false) { MessageBox.Show("계산식을 완료할 수 없습니다. 입력 내용을 확인해 주세요."); return; } double dMoveDis = MultiMotion.dIndex_XPos - MultiMotion.dRolling100Value; MultiMotion.GantryAxis(MultiMotion.INDEX_MOVE_M, MultiMotion.INDEX_MOVE_S, dMoveDis, false); }
private void frmFuncWelding_FormClosing(object sender, FormClosingEventArgs e) { if (serialPort_PCToPC.IsOpen) { serialPort_PCToPC.Close(); } timerAxis.Enabled = false; MultiMotion.StopAll(); MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW); // 기본 속도로 변경 ... }
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"); }