Skip to content

Instantly share code, notes, and snippets.

@DinkDonk
Last active April 25, 2017 17:46
Show Gist options
  • Save DinkDonk/d88a74f1858fc279fd161039f6ac63ff to your computer and use it in GitHub Desktop.
Save DinkDonk/d88a74f1858fc279fd161039f6ac63ff to your computer and use it in GitHub Desktop.
G-code cheat sheet

Homing

$H

Defining WCS (Work Coordinate Systems)

  1. Home the machine
  2. Jog to desired zero position
  3. Define zero:
G10 L20 P<PROGRAM_INDEX> X0 Y0 Z0

There are 5 program slots available (P1-P6). These programs are mapped to G54-59, where P1=G54 and P6=G59.
NB! P1 is used by Carbide Motion on the shapeoko, and cannot be overridden.

Loading a WCS

  1. Home the machine
  2. Load the desired WCS:
G<54-59>
  1. Ensure absolute positioning:
G90
  1. Go to the WCS zero:
G0 X0Y0Z0

Zeroing Z-axis with probe

  1. Issue zeroing command:
G38.2 Z-100 F100
  1. Zero out Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment