; homeall.g ; called to home all axes ; ; generated by RepRapFirmware Configuration Tool v2.0.3 on Thu Sep 12 2019 22:52:21 GMT+0100 (British Summer Time) G91 ; relative positioning G1 Z5 F6000 S2 ; lift Z relative to current position G1 S1 X-300 Y-300 F1800 ; move quickly to X or Y endstop and stop there (first pass) G1 S1 X-300 ; home X axis G1 S1 Y-300 ; home Y axis G1 X5 Y5 F6000 ; go back a few mm G1 S1 X-300 F360 ; move slowly to X axis endstop once more (second pass) G1 S1 Y-300 ; then move slowly to Y axis endstop G90 ; absolute positioning G29 S2 G1 X172 Y135 F6000 ; go to first bed probe G30 ; home Z by probing the bed G30 P0 X20 Y140 Z-99999 ; probe left lead screw, half way along y axis G30 P1 X276 Y140 Z-99999 S0 ; probe right lead screw, and calibrate both motors ; Uncomment the following lines to lift Z after probing ;G91 ; relative positioning ;G1 S2 Z5 F100 ; lift Z relative to current position ;G90 ; absolute positioning