; homex.g ; called to home the X axis G91 ; relative positioning M915 X F0 S3 R0 H70 M913 X40 G1 H1 X-800 F6000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X10 F7000 ; go back a few mm G1 H1 X-800 F5000 ; move slowly to X axis endstop once more (second pass) M913 X100 M915 X F1 S10 R3 H70 G90 ; absolute positioning G1 X10 F6000 ; Park