; homez.g ; called to home the Z axis G91 ; Relative mode G1 S2 Z4 F8000 ; Raise the Z axis 4mm to ensure it is above the Z probe trigger height G90 ; Back to absolute mode G1 X207 Y208 F8000 ; Put head over the centre of the bed, or wherever you want to probe G30 ; Lower head, stop when probe is triggered and set Z to trigger height