Skip to content

Instantly share code, notes, and snippets.

@Pastitas
Created June 14, 2021 09:26
Show Gist options
  • Save Pastitas/f7585b9d0500dd2a3b5de9eb1cf651e2 to your computer and use it in GitHub Desktop.
Save Pastitas/f7585b9d0500dd2a3b5de9eb1cf651e2 to your computer and use it in GitHub Desktop.
some cnc gcode commands

Z, X, Y probes:

(Z-Probe)
G91
G38.2 Z-30 F60
G90
G10 L20 P1 Z10.1 (Set the active WCS Z0)
(Retract from the touch plate)
G91
G0 Z5
G0 X-30
G0 Z-10
G90
(X-Probe)
G91
G38.2 X30 F60
G90
G10 L20 P1 X-10.1 (Set the active WCS X0)
(Retract from the touch plate)
G91
G0 X-5
G0 Y30
G0 X20
G90
(Y-Probe)
G91
G38.2 Y-30 F60
G90
G10 L20 P1 Y10.1 (Set the active WCS Y0)
(Retract from the touch plate)
G91
G0 Y5
G0 Z10
G90

Xprobe:

G91
G38.2 X30 F60
G90
G10 L20 P1 X-10.1\n
G91
G0 X-4
G90"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment