; homeall.g ; called to home all axes G91 ; Relative positioning G1 Z5 F8000 S2 ; Lift the Z axis relative to its current position G1 S1 X-395 Y-395 F8000 ; Move quickly to X and Y axis endstops and stop there (first pass) G1 X5 Y5 F8000 ; Go back a few mm G1 S1 X-395 Y-395 F500 ; Move slowly to X and Y axis endstops once more (second pass) G1 S1 X207 Y208 F8000 ; Move the bed to suit the position of the IR probe G90 ; Absolute positioning