void RetractPlate()
        {
            ResetAccelStepper();


            while (!printer.LimitSwitchPressed())
            {
                if (!printer.StepStepper(PrinterControl.StepperDir.STEP_UP))
                {
                    break;
                }

                WaitForNextStep();
            }

            plateZ = printer.GetPrinterHeight();
        }
示例#2
0
 void ResetPlate()
 {
     command.SendSingleCommand((byte)FWCommands.CMD_RETRACT_PLATE);
     curPlateZ = printer.GetPrinterHeight();
 }
示例#3
0
        static int maxStepperSpeed  = 100;                  //Because the max amount of times the stepper can accelerate is 10 times

        public void z_rail_init(/*PrinterControl printer*/) //Moves Galvos to the top
        {
            printer.WaitMicroseconds(1000000);
            ToLimit();
            MoveZrail(printer.GetPrinterHeight(), PrinterControl.StepperDir.STEP_DOWN);
        }