| | |
| | | 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(); |
| | |
| | | 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(); |