Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2016 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e36edb3ed1fd348fb369 to your computer and use it in GitHub Desktop.
Save anonymous/e36edb3ed1fd348fb369 to your computer and use it in GitHub Desktop.
O <z-probe> sub
( Set current Z position to 0 so that we will always be moving down )
G10 L20 P0 Z0
( Probe to Z-10 at F25 [Uses machine units, I work in mm, this is meant to be slow!] )
G38.2 Z-10 f25
( Set Z0 at point where probe triggers with offset of +1.47 [this is the thickness of my PCB plate. You must adjust this for your plate / setup] )
G10 L20 P0 Z1.47
( Rapid up to Z10 above the material )
G0 Z10
O <z-probe> endsub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment