G12 and G13 are powerful circular pocket milling cycles commonly used on Haas CNC machines to create perfectly round pockets quickly and efficiently without needing a full CAM-generated toolpath. G12 performs a clockwise pocketing motion, while G13 performs the same motion counterclockwise. These commands allow machinists to create counterbores, O-ring grooves, circular recesses, bearing seats, and precision bores using a single line of code. They dramatically simplify programming and reduce cycle time, especially in job-shop environments where pockets vary in size but follow the same basic geometry.
1. Basic Operation of G12/G13
The machine cuts a circular pocket centered on the programmed XY position. The cutter spirals into the material while maintaining a constant chip load and consistent radial engagement. This makes pocketing smoother than manually programming arcs or using CAM for simple circular features.
- G12 = Clockwise pocketing
- G13 = Counterclockwise pocketing
Both cycles require a starting Z position and use additional parameters to control radius, feed, and depth.
2. Basic Syntax (Haas Example)
G12 I# K# F#
G13 I# K# F#
Where:
- I = final radius of the pocket
- K = depth of cut (negative value)
- F = feedrate
Example:
G12 I10. K-5. F1200
Cuts a 20 mm diameter pocket to a depth of 5 mm.
3. Real-World Example — Counterbore Pocket
G90 G54
T4 M06
G00 X50. Y30.
G43 H4 Z5.
G13 I8. K-4. F1500
G00 Z50.
This creates a 16 mm counterbore at precise depth, with a perfect circular finish.
4. Multi-Depth Pocketing with G12/G13
For deeper pockets, repeat the cycle:
G00 X0 Y0
G43 H2 Z5
G12 I12. K-3. F1800
G12 I12. K-3. F1800
G12 I12. K-3. F1800
Three passes → total depth 9 mm.
No CAM required.
5. Advanced Example — Precise Bearing Seat
A bearing seat requires tight circularity and precise finish.
G12/G13 excels here due to consistent tool engagement.
Example:
G00 X75. Y40.
G43 H8 Z3.
G13 I15. K-1. F2000 (rough pass)
G13 I15. K-0.2 F800 (finish skim)
G00 Z80.
This combination produces a smooth, accurate bore.
6. Cutter Compensation with Circular Pockets
Unlike standard profiling, G12/G13 automatically handles cutter path.
If the pocket comes out oversize or undersize:
- Adjust tool radius D offset
- Re-run the cycle
No CAM changes needed.
7. When NOT to Use G12/G13
Avoid these cycles when:
- Pocket is not perfectly circular
- Bottom needs special surface patterning
- 3D pocketing is required
- Large pocket depth creates excessive tool load
For irregular or deep pockets, CAM is still superior.
8. Common Issues and Fixes
Incorrect diameter:
– Adjust wear offset in D register
– Check I value (pocket radius)
Poor surface finish:
– Reduce feedrate
– Add finishing skim pass
– Use G187 P1 for higher accuracy
Tool deflection in deeper pockets:
– Use multiple depth passes
– Switch to smaller stepdown K value
9. Summary
G12 and G13 are incredibly efficient cycles for machining circular pockets on Haas CNC machines. They reduce programming time, eliminate CAM for simple features, and deliver excellent circularity and surface finish. With precise control over radius, feed, and depth, these cycles are essential tools for any CNC programmer who wants to boost productivity and consistency in 2025 and beyond.
Leave a comment