Beispiel #1
0
 private void btnJogPlus_MouseDown(object sender, MouseEventArgs e)
 {
     if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK)
     {
         MultiMotion.StepMove(MultiMotion.INDEX_MOVE_M, 0, false);
     }
 }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 private void btnJogPlus_MouseUp(object sender, MouseEventArgs e)
 {
     if (MultiMotion.GantryAxisEnable(1, true) == MultiMotion.KSM_OK)
     {
         //MultiMotion.JogStop(MultiMotion.INDEX_MOVE_M);
     }
 }
Beispiel #4
0
        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();
            }
        }
Beispiel #5
0
 private void btnJogMinus_MouseUp(object sender, MouseEventArgs e)
 {
     if (MultiMotion.GantryAxisEnable(0, true) == MultiMotion.KSM_OK)
     {
         //MultiMotion.JogStop(MultiMotion.INDEX_FIX_R);
     }
 }
Beispiel #6
0
        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이 완료되었습니다.");
             */
        }
Beispiel #7
0
 private void RotationMotorHome_Click(object sender, EventArgs e)
 {
     //if (checkBoxHomeClear.Checked == true)
     MultiMotion.HomeMove(MultiMotion.RotationMotor, true);
     //else
     //    MultiMotion.HomeMove(MultiMotion.RotationMotor, false);
 }
Beispiel #8
0
 private void btnIndexMove_P_MouseUp(object sender, MouseEventArgs e)
 {
     if (MultiMotion.GantryAxisEnable(0, false) == MultiMotion.KSM_OK)
     {
         MultiMotion.JogStop(MultiMotion.INDEX_MOVE_R);
     }
 }
Beispiel #9
0
        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)
            {
            }
        }
Beispiel #11
0
 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();
        }
Beispiel #13
0
        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);
            }
        }
Beispiel #14
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(); // 방어 코드 ...
        }
Beispiel #15
0
        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);
            }
        }
Beispiel #16
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("원점 이동이 완료되었습니다.");
            }
        }
Beispiel #17
0
        private void VBlockZDown()
        {
            MultiMotion.StopAll();

            MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW);

            MultiMotion.MoveAxis(MultiMotion.VBLOCK_Z, 1.0, false);

            MultiMotion.SetSpeed(this.AxisSpeed);
        }
Beispiel #18
0
        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);
        }
Beispiel #19
0
        private void frmFuncRollingUI_FormClosing(object sender, FormClosingEventArgs e)
        {
            MultiMotion.StopAll();

            MultiMotion.SetSpeed(MultiMotion.KSM_SPEED_SLOW); // 기본 속도로 변경 ...

            timerAxis.Enabled = false;

            UpdateFormula();
        }
Beispiel #20
0
 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);
     }
 }
Beispiel #21
0
 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);
     }
 }
Beispiel #22
0
        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);
        }
Beispiel #23
0
 private void Camera2Home_Click(object sender, EventArgs e)
 {
     if (checkBoxHomeClear.Checked == true)
     {
         MultiMotion.HomeMove(MultiMotion.Camera2Adjust, true);
     }
     else
     {
         MultiMotion.HomeMove(MultiMotion.Camera2Adjust, false);
     }
 }
Beispiel #24
0
 private void Shuttle2MotorHome_Click(object sender, EventArgs e)
 {
     if (checkBoxHomeClear.Checked == true)
     {
         MultiMotion.HomeMove(MultiMotion.Shuttle2Motor, true);
     }
     else
     {
         MultiMotion.HomeMove(MultiMotion.Shuttle2Motor, false);
     }
 }
Beispiel #25
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);
            }
        }
Beispiel #26
0
        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이 완료되었습니다.");
        }
Beispiel #27
0
        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);
            }
        }
Beispiel #28
0
        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);
        }
Beispiel #29
0
        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); // 기본 속도로 변경 ...
        }
Beispiel #30
0
        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");
        }