G91 ; use relative positioning ;M400 ; make sure everything has stopped before we make changes M915 X Y Z S3 F0 R0 ;set stall detect drives, S-threshold (-64 to 63), F1 filtered, 0 = no action (default), 1 = just log it, 2 = pause print, 3 = pause print, execute /sys/rehome.g, and resume print M201 X800 Y800 Z800 ; set max acceleration M913 X30 Y30 Z30 ; reduce motor current to 50% to prevent belts slipping G1 H1 X12000 Y12000 Z12000 F4500 ; move all carriages up 700mm, stopping at the endstops M400 ; make sure everything has stopped before we make changes M913 X100 Y100 Z100 ; motor currents back to normal M201 X3000 Y3000 Z3000 ; set max acceleration G1 H2 X-20 Y-20 Z-20 F6500 ; down a few mm so that we can centre the head M201 X800 Y800 Z800 ; set max acceleration M915 X Y Z S2 F0 R0 ;set stall detect drives, S-threshold (-64 to 63), F1 filtered, R-log only M913 X25 Y25 Z25 ; reduce motor current to 50% to prevent belts slipping G1 H1 X12000 Y12000 Z12000 F2600 ; move all carriages up 700mm, stopping at the endstops M913 X100 Y100 Z100 ; motor currents back to normal M201 X2000 Y2000 Z2000 ; set max acceleration G1 H2 X-20 Y-20 Z-20 F6500 ; down a few mm so that we can centre the head G90 ; back to absolute positioning M400 ; make sure everything has stopped before we reset the motor currents M915 X Y Z S3 F0 R0 ;set stall detect drives, S-threshold (-64 to 63), F1 filtered, ;M913 X100 Y100 Z100 ; motor currents back to normal ;G1 X0 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; homedelta.g ; called to home all towers on a delta printer ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Sun Mar 07 2021 17:32:33 GMT-0500 (Eastern Standard Time) ;M915 X Y Z S10 F1 R0 ;M913 X40 Y40 Z40 ; drop motor current to 30% ;M201 X150 Y150 Z150 ; set max acceleration ;G91 ; relative positioning ;G1 H1 X-265 Y-265 Z-265 F1800 ; move all towers to the high end stopping at the endstops (first pass) ;G1 H2 X-5 Y-5 Z-5 F1800 ; go down a few mm ;G1 H1 X10 Y10 Z10 F360 ; move all towers up once more (second pass) ;G1 Z-5 F6000 ; move down a few mm so that the nozzle can be centred ;G90 ; absolute positioning ;G1 X0 Y0 F6000 ; move X+Y to the centre ;M915 X Y Z S20 F1 R0 ;M915 X Y Z S2 F1 R0 ;M913 X50 Y50 Z50 ; drop motor current to 30% ;M201 X80 Y80 Z80 ; set max acceleration ;G91 ; relative positioning ;G1 H1 X765 Y765 Z765 F600 ; move all towers to the high end stopping at the endstops (first pass) ;G1 H2 X-5 Y-5 Z-5 F1800 ; go down a few mm ;G1 H1 X10 Y10 Z10 F360 ; move all towers up once more (second pass) ;G1 Z-5 F6000 ; move down a few mm so that the nozzle can be centred ;G90 ; absolute positioning ;G1 X0 Y0 F6000 ; move X+Y to the centre ;G91; relative positioning ;G91 ; relative positioning ;G1 H1 X12000 Y12000 Z12000 F600 ; move all towers to the high end stopping at the endstops (first pass) ;G1 H2 X-5 Y-5 Z-5 F1800 ; go down a few mm ;G1 H1 X10 Y10 Z10 F360 ; move all towers up once more (second pass) ;G1 Z-5 F6000 ; move down a few mm so that the nozzle can be centred ;G90 ; absolute positioning ;G91 ; relative positioning ;G1 H1 X375 Y375 Z375 F170 ; move all towers to the high end stopping at the endstops (third pass) ;G1 H2 X-5 Y-5 Z-5 F170 ; go down a few mm ;G1 H1 X10 Y10 Z10 F85 ; move all towers up once more (fourth pass) ;G1 Z-5 F85 ; move down a few mm so that the nozzle can be centred ;G90 ; absolute positioning ;G1 X0 Y0 F360 ; move X+Y to the centre ;M400 ;M913 X100 Y100 ; return current to 100% ;M400