G95

Machining centerModal, group 05

Feed per revolution (mm/rev)

Format and notes

G95 G01 Z_ F_ (F is in mm/rev)

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.

SourceMachineItemDetail
HaasLatheMeaningOn lathes, G95 is rigid tapping on the face with live tooling (group 09)On Haas lathes it is not a feed mode switch
Mitsubishi ElectricLatheCodeLathe 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—NotesStates 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.

  1. 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
  2. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
  3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  4. Mitsubishi Electric — MITSUBISHI CNC 700/70 Series Programming Manual (Lathe System) (IB-1500057) mitsubishielectric.com
  5. Mitsubishi Electric — The Basics of CNC Machining Programming (for Lathe) e-Learning material (PDF, BNP-C8027-688) mitsubishielectric.com
  6. LinuxCNC project — G-Codes (LinuxCNC Documentation) linuxcnc.org
  7. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com