;homex M400 ; Wait for current moves to finish M913 X40 Y40 ; drop motor current to % M400 G91 ; relative positioning G1 H1 X-625 F6000 ; move to X axis endstop and stop there (first pass) G1 X5 F6000 ; go back a few mm G1 H1 X-625 F6000 ; move to X axis endstop once more (second pass) G90 ; absolute positioning M400 M913 X100 Y100 ; return current to 100% M400