; homex.g ; called to home the X axis G91 ; Relative positioning G1 S2 Z5 F6000 ; Lift the Z axis relative to is current position to stop the nozzle hitting the bed G1 S1 X-395 F8000 ; Move quickly to the X axis endstop and stop there (first pass) G1 X5 F6000 ; Go back a few mm G1 S1 X-395 F500 ; Move slowly to X axis endstop once more (second pass)stopping at the homing switch G1 X15 F8000 ; Move the X axis back to put the IR probe over the bed G1 S2 Z-5 F6000 ; Lower the Z axis again G90 ; Absolute positioning