Why the G85 G-Code Matters in CNC Machining: Precision Boring and Reaming Explained
The G85 G-code is a standard canned cycle in CNC machining used primarily for precision boring and reaming operations. It matters because it forces the cutting tool to feed both into and out of the workpiece at a controlled feed rate while the spindle continuo...
The G85 G-code is a standard canned cycle in CNC machining used primarily for precision boring and reaming operations. It matters because it forces the cutting tool to feed both into and out of the workpiece at a controlled feed rate while the spindle continuously rotates. This dual-feed action eliminates retraction drag marks, maintains tight dimensional tolerances, and preserves high-quality surface finishes.
Contents
Understanding G85: The Controlled-Feed Boring Cycle
In computer numerical control (CNC) programming, canned cycles condense complex multi-axis motion sequences into a single line of code. Standardized under ISO 6983 and supported across major CNC control architectures such as Fanuc, Haas, Siemens, and Heidenhain, canned cycles simplify programming, conserve controller memory, and improve cycle consistency across production runs.
The G85 command represents the standard boring cycle (or reaming cycle) with controlled retract feed. Unlike standard drilling cycles that retract the tool at rapid traverse speeds ($G00$), G85 regulates both the entry stroke and the exit stroke at the programmed feed rate ($F$).
Sequence of Motion for G85: 1. Rapid positioning (G00) to hole coordinates (X, Y). 2. Rapid movement to the reference clearance plane (R-plane). 3. Controlled feed rate (G01) entry down to the final Z-depth. 4. Controlled feed rate (G01) exit back up to the R-plane or initial height. 5. Continuous spindle rotation (M03/M04) maintained throughout the entire cycle.
By maintaining spindle speed and controlled feed during the exit stroke, G85 prevents the cutting edges from rubbing, dragging, or gouging against the internal bore walls as the tool retracts. This makes G85 an essential tool path strategy for hole finishing where bore roundness, straightness, and micro-inch surface finishes are paramount.
Why G85 is Critical for Precision CNC Machining
1. Elimination of Retraction Drag Marks
When a cutting tool retracts from a finished hole at rapid feed rates ($G00$), tiny microscopic deflection in the tool bar or machine spindle can cause the cutting insert or reamer flutes to scratch the wall of the hole. These spiral drag marks ruin the surface finish and introduce stress concentration points. G85 eliminates this by controlling the retract vector at the exact same feed rate (or modified feed rate, depending on control parameters), ensuring a smooth, uniform burnishing or cutting pass on the way out.
2. Maintenance of Tight Dimensional Tolerances
Precision applications—such as hydraulic valve bodies, bearing seats, dowel pin locations, and automotive engine blocks—often demand tolerances tight to within $\pm0.0002\text{ inches}$ ($\pm0.005\text{ mm}$). Rapid retraction can pull micro-chips upward through the clearance gap, scoring the wall and causing oversize or out-of-round condition. The continuous feed-out of G85 stabilizes the radial cutting forces, keeping the bore concentric and within spec.
3. Tooling Life and Edge Protection
Solid carbide reamers, expandable boring heads, and PCD-tipped tools are sensitive to severe vibration and uneven side loading. Allowing a tool to snap back at rapid speed while contacting metal leads to micro-chipping on the secondary cutting edges. G85 ensures constant chip loading across both the downward push and upward lift, extending the usable life of expensive precision cutting tools.
4. Simplified Code and Controller Efficiency
Without canned cycles, a programmer would have to write multiple linear interpolation ($G01$) moves for every hole location, specifying separate Z-depth targets and retract points. In a part containing dozens of precision dowel holes, manual coding inflates file sizes and increases potential human error. A single G85 line defined modally allows the machine to repeat the exact same precision sequence at every subsequent X-Y coordinate until cancelled by $G80$.
Technical Syntax and Parameter Breakdown of G85
To program G85 effectively, a programmer must understand how parameters interact within the control loop. Below is the standard Fanuc-compatible syntax structure used on modern vertical and horizontal machining centers:
$$\text{G85 X\dots Y\dots Z\dots R\dots F\dots}$$
Key Parameter Definitions
- G85: Activates the boring/reaming canned cycle with feed-in and feed-out motion.
- X / Y: Designates the absolute or incremental coordinates for the hole center position.
- Z: Specifies the absolute final Z-depth target at the bottom of the bore.
- R: Defines the reference plane (R-plane) location where the tool transitions from rapid position speed to cutting feed rate.
- F: Sets the cutting feed rate in inches per minute (IPM) or millimeters per minute (mm/min).
- K or L (Optional): Designates the number of repeat cycles for equally spaced hole patterns (control dependent).
Modal Return Commands: G98 vs. G99
G85 operates in conjunction with return height plane modifiers, which dictate where the tool retracts after completing the feed-out stroke:
- G98 (Return to Initial Level): Forces the tool to retract all the way back to the initial Z height specified before the canned cycle was called. This mode is crucial when machining across step features or workholding clamps.
- G99 (Return to R-Plane): Orders the tool to stop retracting at the specified reference (R) plane. This minimizes Z-axis travel distance, optimizing cycle times when machining a series of holes on a flat, unobstructed surface.
Example G-Code Block using G85:
N40 T05 M06 (0.5000 INCH PRECISION REAMER) N45 G90 G54 G00 X2.0 Y1.5 S650 M03 N50 G43 H05 Z1.0 M08 N55 G99 G85 Z-1.25 R0.1 F5.2 N60 X4.0 Y1.5 N65 X6.0 Y1.5 N70 G80 G00 Z2.0 M09 N75 M05 N80 M30
In this example, line N55 initiates the G85 cycle at the first hole location, feeding down to Z-1.25 at $5.2\text{ IPM}$, then feeding back out to R0.1. Lines N60 and N65 repeat the cycle at new locations automatically before G80 cancels the modal cycle on line N70.
G85 vs. Alternative Canned Hole Cycles
CNC programmers must choose the correct canned cycle based on hole depth, tolerance, material composition, and surface finish requirements. Comparing G85 against common alternative G-codes highlights its distinct operational advantages.
| G-Code | Cycle Name | In-Feed Motion | Motion at Bottom of Hole | Out-Feed Motion | Typical Application |
|---|---|---|---|---|---|
| G81 | Standard Drilling | Feed ($G01$) | None | Rapid ($G00$) | Shallow clearance holes, spot drilling |
| G82 | Drilling with Dwell | Feed ($G01$) | Dwell ($P$) timer | Rapid ($G00$) | Counterboring, flat-bottom blind holes |
| G84 | Tapping Cycle | Feed ($G01$) | Spindle Reverses Direction | Feed ($G01$) | Right-hand thread cutting |
| G85 | Boring / Reaming | Feed ($G01$) | None | Feed ($G01$) | High-precision boring, finish reaming |
| G86 | Boring (Spindle Stop) | Feed ($G01$) | Spindle Stops ($M05$) | Rapid ($G00$) | Rough boring, rough hole sizing |
| G89 | Boring with Dwell | Feed ($G01$) | Dwell ($P$) timer | Feed ($G01$) | High-finish flat-bottom boring |
When to Select G85 Over G86 or G89
- G85 vs. G86: G86 stops the spindle at the bottom of the bore before executing a rapid retract ($G00$). While this prevents drag lines caused by spindle rotation, it leaves a straight vertical drag line along the hole wall as the tool retracts. G85 is preferred over G86 when a continuous cross-hatch or micro-smooth spiral surface finish is required.
- G85 vs. G89: G89 is identical to G85 except that it includes a programmable dwell ($P$) parameter at the bottom of the stroke. If a hole has a flat bottom or a shoulder that must be cleaned up before feeding back out, G89 is the better choice. However, on through-holes or standard through-bores, G85 is preferred because an unnecessary dwell at the bottom can cause tool rubbing, heat buildup, and work hardening in stainless steels and nickel alloys.
Best Practices for Implementing G85 on the Shop Floor
Achieving optimal results with G85 requires proper tooling setups, precise feeds and speeds calculations, and controlled chip management strategies.
1. Pre-Hole Preparation
G85 is a finishing cycle, not a roughing cycle. Attempting to execute a G85 reaming or boring pass in solid stock will cause tool failure or severe geometry errors.
- Pre-drilling: Drill the stock leaving an appropriate amount of stock material.
- Stock Allowance: For reaming operations using G85, leave between $0.010\text{ inches}$ and $0.015\text{ inches}$ ($0.25\text{ mm}$ to $0.38\text{ mm}$) of stock for diameters up to $0.500\text{ inches}$. For fine boring bars, leave $0.005\text{ inches}$ to $0.010\text{ inches}$ on diameter.
2. Matching In-Feed and Out-Feed Conditions
By default, CNC controllers execute the retraction phase of G85 at the exact same feed rate ($F$) specified for the downward stroke. In certain tough materials (such as Inconel or Titanium 6Al-4V), feeding back out at $100%$ speed can cause minor burnishing. Some modern CNC controls allow programmers to adjust retract feed multipliers via custom machine parameters or secondary variables, but standard practice relies on selecting a balanced single feed rate that accommodates both strokes cleanly.
3. High-Pressure Coolant Delivery
Because G85 maintains constant contact between tool and workpiece throughout the entry and exit strokes, heat buildup can accelerate tool wear.
- Use internal through-spindle coolant (TSC) whenever possible to flush micro-chips downward through through-holes or clear them from blind holes.
- If using flood coolant, direct high-pressure nozzles straight down into the tool-workpiece interface to prevent chip recutting on the upward feed stroke.
Common G85 Programming Mistakes and Troubleshooting
Even experienced CNC programmers encounter machining errors when implementing G85 cycles. Identifying root causes quickly reduces scrap rates and machine downtime.
Miscalculating R-Plane Heights
Setting an R-plane too close to the workpiece surface can cause the tool to engage material while still moving at rapid feed ($G00$). Always set the R-plane at least $0.100\text{ inches}$ ($2.5\text{ mm}$) above the raw stock surface to account for material height variance and raw casting tolerances.
Feed Rate Overspeeding
Reaming and precision boring require significantly lower surface feet per minute (SFM) and higher chip loads per tooth than standard carbide drilling. Programming an excessively fast feed rate during a G85 cycle causes hole bell-mouthing, taper, or galling along the bore entry.
Ignoring Tool Deflection in Deep Bores
When using G85 for deep-hole boring (length-to-diameter ratio greater than $5:1$), long tool shanks experience radial deflection during the entry feed stroke. On the return feed stroke, this deflection causes the bar to push against the opposite side of the bore, creating an elliptical profile. To fix this:
- Reduce the depth-of-cut per side.
- Use carbide-shank boring bars for higher static stiffness.
- Switch to a precision single-point boring bar optimized for balanced chip load.
Optimizing Hole-Making Processes with G85
To maximize accuracy and efficiency when running G85 in production environments, establish a standardized hole-making workflow:
- Verify Machine Geometry: Ensure spindle tram, column alignment, and tool holder runout are within $0.0001\text{ inches}$ ($0.0025\text{ mm}$) before running precision G85 cycles.
- Select the Right Tool Geometry: Pair G85 with spiral-flute reamers for blind holes (to pull chips up) or straight/left-hand spiral flutes for through-holes (to push chips forward).
- Standardize Toolpaths in CAM: Configure your Computer-Aided Manufacturing (CAM) software (e.g., Mastercam, Fusion 360, Siemens NX) to output G85 automatically for all fine reaming and finish-boring operations.
- Implement Bore Inspection: Measure finished parts using air gages, bore micrometers, or Coordinate Measuring Machines (CMM) to verify that roundness and surface finish targets are met continuously throughout the production run.
Frequently Asked Questions
What is the main difference between G85 and G86 in CNC programming?
G85 feeds into the hole at a programmed feed rate and feeds out at the same feed rate while the spindle continues spinning. G86 feeds into the hole, stops the spindle at the bottom, and retracts at rapid speed ($G00$). G85 provides a superior surface finish, while G86 avoids spiral retraction lines at the cost of a single straight line along the bore axis.
Can G85 be used for reaming as well as boring?
Yes, G85 is widely used for both finish reaming and precision boring. Reamers benefit directly from the controlled feed-out motion because rapid retraction can chip brittle reamer teeth or score precision-reamed walls.
Does the spindle stop at the bottom of a G85 cycle?
No. The spindle continues to rotate at the programmed speed ($S$) throughout the entire G85 cycle, including during the entry stroke, bottom point transition, and exit stroke.
What is the purpose of G98 and G99 when paired with G85?
G98 and G99 control the Z-axis retract position after the G85 cycle completes. G98 commands the tool to retract to the initial height defined before entering the canned cycle, allowing safety clearance over obstacles. G99 retracts the tool only to the reference R-plane height, reducing overall cycle time during multi-hole operations on flat parts.
Why not write manual G01 linear moves instead of using G85?
Using G85 condenses multiple lines of positioning, depth, and retraction code into a single modal command block. This reduces G-code file sizes, minimizes programming errors, simplifies shop-floor editability, and allows for clean subprogram looping across multiple hole coordinates.
Technical Summary & Recommendations
To maintain tight dimensional control and smooth surface finishes across your CNC machining processes, incorporate the G85 canned cycle whenever precision hole finishing is required. Reserve rapid-retract cycles ($G81$, $G86$) for roughing or non-critical clearance holes, and leverage G85 alongside proper pre-drilling procedures, high-pressure coolant, and rigid tooling setups.