LinuxCNC G code Reference

  1. Index
  2. Non-Modal
  3. Motion
  4. Plane
  5. Distance
  6. Feed
  7. Units
  8. Cutter Comp
  9. Tool Offset
  10. Cycle Return
  11. Coordinate System
  12. Path Control
  13. Spindle
  14. Lathe

Motion Group 1

Group 1 G codes cause motion to happen. Each time a Group 1 G code is
used it stays in effect until replaced by a new code.
For complete descriptions click on the G code to see the LinuxCNC Manual.

G code Function Format Parameters
G0 Rapid Linear Motion G0 axes n/a
G1 Linear Feed G1 axes n/a
G2 CW Arc Feed G2 axes I J K P I = X Offset
J = Y Offset
K = Z Offset
P = Number of Turns for a full arc
G3 CCW Arc Feed G3 axes I J K P I = X Offset
J = Y Offset
K = Z Offset
P = Number of Turns for a full arc
G5.1 Quadratic B-spline G5.1 X Y I J I = X Offset
J = Y Offset
G5.2 G5.3 NURBs Block G5.2 X Y P L P = Weights
L = Order
G33 Spindle Synchronized Feed G33 axes K K = Distance per Revolution
G33.1 Rigid Tapping G33.1 axes K K = Distance per Revolution
G38 Straight Probe G38.n axes .2 = stop on contact, error on fail
.3 = stop on contact
.4 = stop on loss of contact, error on fail
.5 = stop on loss of contact
G73 Drilling Cycle with Chip Breaking G73 axes R Q L R = Retract Position
Q = Increment
L = Repeat
G76 Threading G76 P Z I J K R Q H E L P = Thread Pitch
Z = End of Threads
I = Thread Peak Offset
J = Inital Cut Depth
K = Full Thread Depth
R = Depth Degression
Q = Compound Angle
H = Spring Passes
E = Taper Distance
L = Taper Type
G80 Cancel Canned Cycle G80 n/a
G81 Drilling Cycle G81 axes R L R = Retract Position
L = Repeat
G82 Dwell Drilling Cycle G82 axes R L P R = Retract Position
L = Repeat
P = Dwell
G83 Peck Drilling Cycle G83 axes R L Q R = Retract Position
L = Repeat
Q = Increment
G85 Boring Cycle, Feed Out G85 axes R L R = Retract Position
L = Repeat
G86 Boring Cycle, Spindle Stop, Rapid Out G86 axes R L R = Retract Position
L = Repeat
G89 Boring Cycle, Spindle Stop, Feed Out G89 axes R L P R = Retract Position
L = Repeat
P = Dwell