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) |
Frequently asked questions about G10
- What is G10 (Programmable data input (writes offset values and work coordinates from the program)) used for and how is it formatted in a CNC program?
- G10 commands "Programmable data input (writes offset values and work coordinates from the program)" on Machining center, Lathe. The standard program format is "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
- Is G10 a modal code or a one-shot (non-modal) code?
- G10 is a one-shot (non-modal, Group 00) code. It acts only in the single block where it is written and does not carry over to the next block, so you must write G10 on every line where that action is required.
- Does G10 work differently on machining centers (mills) versus CNC lathes?
- G10 is primarily used on Machining center, Lathe. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
- Are there differences in G10 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
- Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G10. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.
Sources
The meaning of this code agrees in two or more sources from different publishers. 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