Skip to content

Instantly share code, notes, and snippets.

@robanonymous
Created October 26, 2016 22:36
Show Gist options
  • Select an option

  • Save robanonymous/f11757304286e02b9bdfa60d626ad396 to your computer and use it in GitHub Desktop.

Select an option

Save robanonymous/f11757304286e02b9bdfa60d626ad396 to your computer and use it in GitHub Desktop.
(touch_plate.ngc)
O <touch_plate> sub
g91 (switch to relative coordinates)
G38.2 Z-1 F6 (down fast to get approximate)
F10 G1 Z.06 (up .08)
G38.2 Z-1 F1 (down slow to get exact)
F10 G1 Z.1 (up .1)
(version 1 set but at 0 and manually hit zero button)
T0 M6 (pause)
F10 G1 Z-.857 (down to true zero - .1 up + .757 thickness of plate)
g90 (switch to absolute coordinates)
(Version 2)
(g90)
(G38.2 Z-1 F1)
(G10 L20 P0 Z0.1230)
(G0 Z.5)
(Version 3)
(g90)
(G38.2 Z-1 F1)
(G92 Z0.1230)
(G0 Z.5)
O <touch_plate> endsub
M2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment