; homez.g ; called to home the Z axis ; G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position G1 X20 Y20 U0 F800 H2 ; lift Z relative to current position G1 H1 Z-400 F400 ; move Z DOWN until the endstop is triggered G92 Z0 ; set Z position to axis minimum (you may want to adjust this)