Example #1
0
        private void CBtnAxisConveyorMoveForward_Click(object sender, EventArgs e)
        {
            Axis AxisIndex = Axis.Conveyor;

            m_ArmControler.ResetError(AxisIndex);
            SetConveyorAxisParamWithInput(false);
            m_ArmControler.MoveContinuous(AxisIndex, AxisDir.Forward);
        }
Example #2
0
        private void MoveMaual(Axis axis, TextBox txt, bool dir)
        {
            int step;

            try
            {
                step = Convert.ToInt32(txt.Text);
            }
            catch
            {
                Global.MessageBoxShow(Global.StrInputError);
                return;
            }

            if (!dir)
            {
                step = -step;
            }

            m_ArmControler.ResetError(axis);
            SetConveyorAxisParamWithInput(false);
            m_ArmControler.MoveRef(axis, step);
        }