; homex.g ; called to home the X axis G91 ;Set to Relative Positioning G1 Z5 F1000 ; Lift Z relative to current position G90 ;Back to absolute positioning G1 X-225 F1800 S1 ; Move quickly to X axis endstop and stop there (first pass) G91 ;Set to Relative Positioning G1 X5 F6000 ; Go back a few mm G90 ;Back to absolute positioning G1 X-225 F360 S1 ; Move slowly to X axis endstop once more (second pass) G91 ;Set to Relative Positioning G1 Z-5 F1000 ; Lower Z again G90 ;Back to absolute positioning