Printed from Kezuriba (kezuriba.net/en/nc/g96/)
G96
Machining center, LatheModal, group 13 (lathe 02)Constant surface speed control
Format and notes
G96 S_ (m/min)M03
- S becomes the cutting speed (m/min) instead of the spindle speed. The spindle speed changes automatically with X (diameter)
- Many machines do not use it on machining centers (not in the Haas mill list)
Diagram: Diameter and spindle speed: constant surface speed (G96) and constant rpm (G97)
On lathes: Constant surface speed control
On lathes (FANUC-type G-code system A) the code does the same job. Group 02.
G50 S_ (limit); G96 S_ (m/min) M03
- The closer to the center, the higher the spindle speed, so first always set the upper speed limit with G50 S_ (system A) (on machining centers G50 is scaling cancel, a different function)
- When cutting off or facing all the way to the center, the speed sticks at the upper limit
- On machines with gear ranges, select the gear (M41–M44, etc.) before G96 (Siemens ISO T, MHLW material)
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 | Group | 13 |
Frequently asked questions about G96
- What is G96 (Constant surface speed control) used for and how is it formatted in a CNC program?
- G96 commands "Constant surface speed control" on Machining center, Lathe. The standard program format is "G96 S_ (m/min)M03". S becomes the cutting speed (m/min) instead of the spindle speed. The spindle speed changes automatically with X (diameter)
- Is G96 a modal code or a one-shot (non-modal) code?
- G96 is a modal code (Group 13). 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 G96 work differently on machining centers (mills) versus CNC lathes?
- On both machining centers and CNC lathes (G-code System A), G96 performs the same function ("Constant surface speed control"). However, valid axis addresses (such as X/Y/Z versus diameter/incremental U/W) and parameter numbers can still differ between mill and lathe controls.
- Are there differences in G96 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 G96. 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
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
- 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
- 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