Skip to content

Instantly share code, notes, and snippets.

@mzizzi
Created October 9, 2019 21:30
Show Gist options
  • Save mzizzi/39a9ed15bfc387db4c51b21f22d84419 to your computer and use it in GitHub Desktop.
Save mzizzi/39a9ed15bfc387db4c51b21f22d84419 to your computer and use it in GitHub Desktop.
; probe z-
g92 z0 ; set current position as temporary origin
g91 ; relative positioning
g38.2 z-20 f50 ; probe z
g92 z0 ; set current position as z0
g0 z2 f480 ; back off of work
; probe x+
g91 ; relative positioning
g38.2 x50 f100 ; probe x0 (remember to account endmill radius afterwards)
g92 x-1.58 ; set x zero and compensate for endmill diameter
g0 x-2 f1000 ; move off of work
; probe y+
g91 ; relative positioning
g38.2 y50 f100 ; probe y0 (remember to account endmill radius afterwards)
g92 y-1.58 ; set y zero and compensate for endmill diameter
g0 y-2 f1000 ; move off of work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment