Skip to content

Instantly share code, notes, and snippets.

@trentster
Created November 1, 2015 10:37
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 trentster/da6d37a6471a6f5f9a96 to your computer and use it in GitHub Desktop.
Save trentster/da6d37a6471a6f5f9a96 to your computer and use it in GitHub Desktop.
Auto Z Touch Off
<pre>
o100 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 Z0.36
( Rapid up to Z10 above the material )
G0 Z10
o100 endsub
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment