Printed from Kezuriba (kezuriba.net/en/nc/g10/)
G10
Machining center, LatheOne-shot, group 00Programmable 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)
- L selects the type of destination and P selects the number. L2 P1–P6 are G54–G59
- L10/L11 are tool length geometry/wear, and L12/L13 are tool radius geometry/wear (consistent between Siemens ISO and Haas)
- Whether it writes an absolute value or adds to the existing value depends on the G90/G91 state (Haas example)
- It overwrites values set on the screen, so check for wrong numbers before running
Diagram: Machine zero and work zero (coordinate systems)
≠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.
| Source | Machine | Item | Detail |
|---|---|---|---|
| Haas | Machining center | Format | L20 P_ for the additional coordinate systems G110–G129/G154Haas can also set the maximum spindle speed for each tool with L14 (Haas-specific) |
| NIST | Machining center | Format | G10 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.
- 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
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov