Printed from Kezuriba (kezuriba.net/en/nc/g50/)
G50
Machining center, LatheModal, group 11Scaling cancel
On machining centers
G50
- On machining centers it is paired with G51 (scaling). Often an optional feature
On lathes: Maximum spindle speed setting (also sets the coordinate system in system A)
The same number means something different on lathes (FANUC-type G-code system A). Group 00.
G50 S_ (maximum speed) / G50 X_ Z_ (coordinate system setting, system A)
- With constant surface speed control (G96), the speed keeps rising as the tool approaches the center, so always set the upper limit with G50 S before G96
- To cancel, command G50 again with the machine's maximum speed (Haas)
- In G-code systems B/C the same function is G92 (coordinate system setting / speed limit)
Diagram (lathe): diameter and spindle speed, constant surface speed (G96) vs constant rpm (G97)
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 | Lathe | Meaning | Spindle speed limit onlyHaas describes G50 as a speed limit; work coordinates are handled with the G54 series |
| Siemens (ISO dialect) | Lathe | Code | G92 in systems B/CSiemens ISO T: G50 X Z in system A is G92 X Z in systems B/C |
Frequently asked questions about G50
- What is G50 (Scaling cancel) used for and how is it formatted in a CNC program?
- G50 commands "Scaling cancel" on Machining center, Lathe. The standard program format is "G50". On machining centers it is paired with G51 (scaling). Often an optional feature
- Is G50 a modal code or a one-shot (non-modal) code?
- G50 is a modal code (Group 11). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
- Does G50 work differently on machining centers (mills) versus CNC lathes?
- Yes. On a machining center G50 means "Scaling cancel", whereas on a CNC lathe (FANUC G-code System A) G50 means "Maximum spindle speed setting (also sets the coordinate system in system A)" (lathe format: "G50 S_ (maximum speed) / G50 X_ Z_ (coordinate system setting, system A)"). Never copy G50 between mill and lathe programs without checking which G-code system (A, B, or C) your lathe uses.
- Are there differences in G50 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 G50. 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. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Lathe) e-Learning material (PDF, BNP-C8027-688) mitsubishielectric.com
- Ministry of Health, Labour and Welfare (MHLW), Human Resources Development Bureau, Office of the Councillor for Skills Evaluation — Human resource development manual using the practical exam tasks of the Grade 3 Skilled Worker Test: CNC lathe work (March 2018) waza.mhlw.go.jp
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com