void RetractPlate() { ResetAccelStepper(); while (!printer.LimitSwitchPressed()) { if (!printer.StepStepper(PrinterControl.StepperDir.STEP_UP)) { break; } WaitForNextStep(); } plateZ = printer.GetPrinterHeight(); }
void ResetPlate() { command.SendSingleCommand((byte)FWCommands.CMD_RETRACT_PLATE); curPlateZ = printer.GetPrinterHeight(); }
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); }