;''' Sensorless Homing test file for RepRapFirmware ''' M400 ; make sure everything has stopped before we make changes M574 X2 Y2 Z2 S3 ; set endstops to use motor stall M913 Y30 ; reduce motor current to 50% to prevent belts slipping M915 P2:4 S3 F0 R0 G91 ; use relative positioning G1 S1 Y-700 F4000 ; move all carriages up 700mm, stopping at the endstops G1 S1 X700 Y700 Z700 F4000 G90 ; back to absolute positioning M400 ; make sure everything has stopped before we reset the motor currents M913 X100 Y100 Z100 ; motor currents back to normal G1 Y0 F2000 ; centre the head and set a reasonable feed rate M574 X2 Y2 Z2 S1 ; set endstops back to normal so that homedelta.g works