Exemplo n.º 1
0
        private void MoveZAxis()
        {
            CommandMoveZ commandMoveZ = CommandFactory.CreateCommand <CommandMoveZ>("Move Z");

            commandMoveZ.MoveLength = 1;
            commandMoveZ.Execute();
        }
Exemplo n.º 2
0
 private void btnZRight_Click(object sender, EventArgs e)
 {
     if (IsFixedLength)
     {
         if (IsLengthLegal(this.MotionStep))
         {
             CommandMoveZ commandMoveZ = CommandFactory.CreateCommand <CommandMoveZ>("Move Z");
             commandMoveZ.MoveLength = MotionStep;
             CommandFactory.CommandQueue.Push(commandMoveZ);
         }
     }
     else
     {
         if (IsLengthLegal(MotionSpeed))
         {
             CommandSetMoveSpeedZ commandSetMoveSpeedZ = CommandFactory.CreateCommand <CommandSetMoveSpeedZ>("Set Move Speed Z");
             commandSetMoveSpeedZ.Speed = MotionSpeed;
             CommandFactory.CommandQueue.Push(commandSetMoveSpeedZ);
         }
     }
 }