; homex.g ; called to home the X axis ; ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 18 2020 20:04:03 GMT-0600 (Mountain Daylight Time) M400 ; make sure everything has stopped before we make changes M913 X55 Y55 ; reduce motor current to 45% to prevent belts slipping G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position M400 ; G1 H1 X-1105 F4800 ; move quickly to X or Y endstop and stop there (first pass) M400 ; G1 X10 ; Move Away 10mm X axis M400 ; G1 H2 Z-5 F6000 ; lift Z relative to current position G90 ; absolute positioning M400 ; make sure everything has stopped before we reset the motor currents M913 X100 Y100 Z100 ; motor currents back to normal G92 X0 ;