; Finish Z-Adjustment - Called after manually setting nozzle to "paper-width" above bed G91 ;relative positioning G92 Z0 ;Set Z=0 G0 Z10 ;Move the bed away from the nozzle by more than the probe offset (and less than dive height) G30 S-1 ;Probe the bed to determine the offset from Z=0 ;general cleanup :G90 ;back to absolute positioning M290 R0 S0 ;remove any babysteps (should not be any) M564 S1 ;Enable Axis Limits G29 S1 ;Load the default heightmap - Duet code G28 XY ; Home XY to indicate finished M117 "Z Offset measurement completed"