; homeall.g ; called to home all axes M98 P"/sys/homex.g" M98 P"/sys/homey.g" M98 P"/sys/homez.g" ;Home X ; raise Z a bit G91 G1 H2 Z5 F1600 G90 ; reset current position to 0 G92 X0 ; Move quickly to Y axis endstop and stop there (first pass) G1 X355 H1 F6000 ; Go back a few mm G91 G1 X-5 F8000 ; Move slowly to Y axis endstop once more (second pass) G1 X10 H1 F360 G90 ; raise Z a bit G91 G1 H2 Z5 F2400 G90 ;Home Y ; reset current position to 0 G92 Y0 ; Move quickly to Y axis endstop and stop there (first pass) G1 Y365 H1 F6000 ; Go back a few mm G91 G1 Y-5 F8000 ; Move slowly to Y axis endstop once more (second pass) G1 Y10 F360 H1 G90 ;Home Z if sensors.probes[0].value[0] == 0 ; if sensor is value ia 0 do this, 0 = probe attached echo "Probe already attched" G1 Y175 F12000 ; return to bed Y center G1 X175 F12000 ; return to bed X center M400 ;wait for moves to finish else G1 X53 F20000 ; X position of klicky dock G1 Y347 F20000 ; Y position of klicky dock M400 ; wait for move to finish G1 Y175 F12000 ; slide out of dock return to bed Y center G1 X175 F12000 ; slide out of dock return to bed X center M400 ; wait for moves to finish M291 P"Probe check done" S3 ;Reminder to clean nozzle G30