G10

Machining center, LatheOne-shot, group 00

Programmable data input (writes offset values and work coordinates from the program)

⌨Format and notes

G10 L2 P_ X_ Y_ Z_ (work coordinates) / G10 L10–L13 P_ R_ (tool offsets)

Diagram: Machine zero and work zero (coordinate systems)

XYValue written by G10 L2 P1G54 originG55 originG52 localMachine zero (machine coord. 0)
G10 L2 P_ X_ Y_ writes the G54–G59 offsets (shift from machine zero to work zero) from the program. P1–P6 are G54–G59.

≠Differences between controls and machines

The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.

SourceMachineItemDetail
HaasMachining centerFormatL20 P_ for the additional coordinate systems G110–G129/G154Haas can also set the maximum spindle speed for each tool with L14 (Haas-specific)
NISTMachining centerFormatG10 L2 P1–9P7–P9 are G59.1–G59.3 (coordinate systems specific to RS274/NGC)

📚Sources

The meaning shown agrees in at least two sources (agreement confirmed). Explanations are written in our own words.

  1. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
  2. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
  3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  4. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
  5. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov