; homeall.g ; BLTouch M280 P0 S160 ; Precautionary alarm release G4 S1 ; dwell momentarily M280 P0 S90 ; Ensure the pin is raised G91 ; relative positioning G1 H2 Z5 F6000 ; move Z to safety from current position ;home X axis G1 H1 X-625 F1800 ; move quickly to X axis endstop and stop there (first pass) G1 X5 F6000 ; go back a few mm G1 H1 X-625 F360 ; move slowly to X axis endstop once more (second pass) ;home Y axis G1 H1 Y605 F1800 ; move quickly to Y axis endstop and stop there (first pass) G1 Y-5 F6000 ; go back a few mm G1 H1 Y605 F360 ; move slowly to Y axis endstop once more (second pass) ;home Z axis G90 ; absolute positioning G1 X150 Y150 F10000 ; go to first probe point G30 ; home Z by probing the bed G91 ; relative positioning G1 Z5 F100 ; lift Z relative to current position G90 ; absolute positioning ;home A axis (alarm motor) G91 ; relative positioning G1 A3 H2 ; Move a little to show you're alive and with H2 to ignore that you aren't homed yet G92 A0 ; Set home at whatever the current position is and call it zero G90 ; absolute positioning