Printed from Kezuriba (kezuriba.net/en/nc/g95/)
G95
Machining centerModal, group 05Feed per revolution (mm/rev)
Format and notes
G95 G01 Z_ F_ (F is in mm/rev)
- Can also be used on machining centers for tapping, etc. On lathes in system A, feed per revolution is G99
- With G95, F becomes the feed per spindle revolution (mm/rev). The actual speed is F × spindle speed × feed override (Mitsubishi Electric). F0.08 at 1000 min⁻¹ gives 80 mm/min
- The axis cannot feed unless the spindle is turning. Mitsubishi Electric gives an alarm if feed per revolution is commanded with spindle speed 0. Feed per revolution requires a spindle encoder
- Rewrite F after switching between G94 and G95. The Siemens ISO dialect cancels the current F when you switch. LinuxCNC also gives an error if F is not written after switching
- Be careful not to forget to switch back. If the next tool reads F300 (meant as mm/min) while still in G95, it becomes a command of 300 mm per revolution (on Mitsubishi Electric it is capped at the cutting feed upper limit). Return to G94 when the G95 section ends
- When tapping (G84) is written in G95, F is the thread pitch itself (F1.25 for M8×1.25). In G94, F is spindle speed × pitch (an example from the Siemens ISO dialect)
- During feed per revolution, the G04 dwell is also counted in spindle revolutions, not seconds (Siemens ISO dialect)
- The numbers are swapped between machining centers and lathes. On machining centers, G94 = per minute and G95 = per revolution, and G98/G99 are canned cycle return points. On lathes in G-code system A, Haas lathes, and Mitsubishi Electric lathe G-code lists 2, 4 and 6, G98 = per minute and G99 = per revolution. Systems B and C and Mitsubishi Electric lists 3, 5 and 7 use G94/G95, the same as machining centers
Example
S1000 M03 ; G90 G54 G00 X20. Y20. ; Z2. ; G95 G01 Z-10. F0.08 ; (0.08 MM/REV = 80 MM/MIN AT 1000 MIN-1) G00 Z2. ; G94 ; (BACK TO FEED PER MINUTE) G00 X40. ; G01 Z-3. F150 ; (WRITE F AGAIN AFTER SWITCHING)
An example that drills to Z-10 at 0.08 mm per revolution (80 mm/min in feed per minute) while turning at 1000 min⁻¹. After drilling it returns to G94, and the next F is rewritten as a per-minute value. The values are for illustration and are not recommended values.
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 | On lathes, G95 is rigid tapping on the face with live tooling (group 09)On Haas lathes it is not a feed mode switch |
| Mitsubishi Electric | Lathe | Code | Lathe G-code lists 2, 4 and 6 use G98 (per minute) and G99 (per revolution). Lists 3, 5 and 7 use G94/G95, in which case G98/G99 are canned cycle return points |
| LinuxCNC | — | Notes | States explicitly that G95 is not suited to threading (use G33 or G76 for threading) |
Frequently asked questions about G95
- What is G95 (Feed per revolution (mm/rev)) used for and how is it formatted in a CNC program?
- G95 commands "Feed per revolution (mm/rev)" on Machining center. The standard program format is "G95 G01 Z_ F_ (F is in mm/rev)". Can also be used on machining centers for tapping, etc. On lathes in system A, feed per revolution is G99
- Is G95 a modal code or a one-shot (non-modal) code?
- G95 is a modal code (Group 05). 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 G95 work differently on machining centers (mills) versus CNC lathes?
- G95 is primarily used on Machining center. 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 G95 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 G95. 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. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Mitsubishi Electric — MITSUBISHI CNC 700/70 Series Programming Manual (Lathe System) (IB-1500057) mitsubishielectric.com
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Lathe) e-Learning material (PDF, BNP-C8027-688) mitsubishielectric.com
- LinuxCNC project — G-Codes (LinuxCNC Documentation) linuxcnc.org
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com