领胜LDS 键盘AOI检测项目
wells.liu
2020-07-09 1b2ce8e8b743f052d4325c78cba494342e523478
src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardAxisOperation.cs
@@ -37,21 +37,8 @@
            groupBoxAxisOperration.Text = $"运动轴:{axisIndex}-{axisName}";
        }
        private void buttonPositive_Click(object sender, EventArgs e)
        {
            var opConfig = new MotionOperationCollection();
            MovingOption movingOption = new MovingOption();
            movingOption.AxisIndex = _axisIndex;
            movingOption.MoveMode = MotionMode.Jog;
            movingOption.VelocityPara.Acc = Convert.ToDouble(textBoxJogAcc.Text);
            movingOption.VelocityPara.Dec = Convert.ToDouble(textBoxJogDec.Text);
            movingOption.VelocityPara.Velocity= Convert.ToDouble(textBoxJogVel.Text);
            opConfig.MovingOps.Add(movingOption);
            MotionCard.MoveToPoint(opConfig);
        }
        private void buttonNegative_Click(object sender, EventArgs e)
        private void buttonPositive_MouseDown(object sender, EventArgs e)
        {
            var opConfig = new MotionOperationCollection();
            MovingOption movingOption = new MovingOption();
@@ -65,6 +52,40 @@
            MotionCard.MoveToPoint(opConfig);
        }
        private void buttonPositive_MouseUp(object sender, MouseEventArgs e)
        {
            MotionCard.MoveStop(_axisIndex, 0);
        }
        private void buttonNegative_MouseUp(object sender, MouseEventArgs e)
        {
            MotionCard.MoveStop(_axisIndex, 0);
        }
        private void buttonNegative_MouseDown(object sender, EventArgs e)
        {
            var opConfig = new MotionOperationCollection();
            MovingOption movingOption = new MovingOption();
            movingOption.AxisIndex = _axisIndex;
            movingOption.MoveMode = MotionMode.Jog;
            movingOption.VelocityPara.Acc = Convert.ToDouble(textBoxJogAcc.Text);
            movingOption.VelocityPara.Dec = Convert.ToDouble(textBoxJogDec.Text);
            movingOption.VelocityPara.Velocity = -Convert.ToDouble(textBoxJogVel.Text);
            opConfig.MovingOps.Add(movingOption);
            MotionCard.MoveToPoint(opConfig);
        }
        private void buttonPositive_Click(object sender, EventArgs e)
        {
        }
        private void buttonNegative_Click(object sender, EventArgs e)
        {
        }
        private void buttonStart_Click(object sender, EventArgs e)
        {
            var opConfig = new MotionOperationCollection();