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

Non-Modal Group 0

Group 0 G codes are non-modal and can be used together when that makes sense.
For complete descriptions click on the G code to see the LinuxCNC Manual.

G code Function Format Parameters
G4 Dwell G4 P P = Dwell period in seconds
G10 L1 Set Tool Table G10 L1 P axes [R I J Q] P = Tool Number
R = Radius of Tool
I = Front Angle(lathe)
J = Back Angle(lathe)
Q = Orientation(lathe)
G10 L2 Set Coordinate System G10 L2 P axes [R] P = Coordinate System (0-9)
R = Rotation about the Z axis
G10 L10 Set Tool Table G10 L10 P axes R I J Q P = Coordinate System (0-9)
R = Radius of Tool
I = Front Angle(lathe)
J = Back Angle(lathe)
Q = Orientation(lathe)
G10 L11 Set Tool Table G10 L11 P axes R I J Q P = Coordinate System (0-9)
R = Radius of Tool
I = Front Angle(lathe)
J = Back Angle(lathe)
Q = Orientation(lathe)
G10 L20 Set Coordinate System G10 L20 P axes P = Coordinate System (0-9)
G28 Go to Predefined Position G28 axes n/a
G28.1 Store Current Absolute Position for G28 G28.1 n/a
G30 Go to Predefined Position G30 axes n/a
G30.1 Store Current Absolute Position for G30 G30.1 n/a
G92 Set Coordinate System Offset G92 axes n/a
G92.1 Reset Coordinate System Offset G92.1 n/a
G92.2 Reset Coordinate System Offset G92.2 n/a
G92.3 Restore Coordinate System Offset G92.3 n/a