;called to Home X M400 ; make sure everything has stopped before we make changes M574 Y1 X1 S3 ; set endstops to use motor stall M913 X40 Y40 ; drop motor currents to 40% M915 Y X S1 R0 F0 ; set sensitivity to 2, do nothing when stall, unfiltered G91 ; relative positioning M117 Homing X Axis. Ignoring Z G1 Z5 F500 S2 ; lower bed relative to current position, Ignoring if Z was not homed prior G1 S1 X-690 F2800 ; move 675mm, stopping at the endstop G4 P125 ; wait 125msec G1 X10 F1000 ; move away from home 10mm G4 P125 ; wait 125msec G1 S1 X-690 F2800 ; move towards axis minimum G4 P125 ; wait 125msec G1 Z-5 F500 S2 ; raise bed again, Ignoring if Z was not homed prior G90 ; absolute positioning M400 ; make sure everything has stopped before we reset the motor currents M913 Y100 X100 ; motor currents back to 100% M117 Ready