; homeall.g ; called to home all axes G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position G1 H1 X-330 Y345 F6000 ; move quickly to X and Y axis endstops and stop there (first pass) G1 H2 X5 Y-5 F6000 ; go back a few mm G1 H1 X-10 Y10 F360 G1 H1 U395 F6800 ; move quickly to X and Y axis endstops and stop there (first pass) G1 H2 U-5 F6000 G1 H1 U10 ; move slowly to X and Y axis endstops once more (second pass) G1 H1 Z-305 F360 ; move Z down stopping at the endstop G90 ; absolute positioning G92 Z0 ; set Z position to axis minimum (you may want to adjust this) ; Uncomment the following lines to lift Z after probing ;G91 ; relative positioning ;G1 Z5 F100 ; lift Z relative to current position ;G90 ; absolute positioning