G12 (clockwise circular pocket) and G13 (counterclockwise circular pocket) are high-efficiency cycles designed for creating circular pockets using a single command. Unlike standard contour programming or CAM-generated paths, G12/G13 automatically handle radial stepovers, spiral interpolation, feed control, chip evacuation paths, and final contour cleanup. These cycles are widely used for thread milling preparation, O-ring seats, circular counterbores, precision bearing seats, and high-speed production pockets where repeatability and speed are essential.
1. Core Advantage of G12/G13
- Single-line command to mill a full pocket
- No CAM needed
- Spiral interpolation reduces tool load
- Perfectly round pockets regardless of machine tolerance stack
- Dramatic cycle time reduction
- Ideal for production machining
G12 = CW
G13 = CCW
2. Full Command Format (Fanuc / Haas Style)
G12 I(ramp radius) K(final radius) Q(stepover) F(feed)
Example:
G12 I4. K20. Q3. F450
Meaning:
- Starting spiral radius = 4 mm
- Final pocket radius = 20 mm
- Radial stepover = 3 mm
- Feedrate = 450 mm/min
Tool automatically spirals outward until pocket is done.
3. Real Industry Example — Thread Milling Base Pocket
When preparing a flat-bottom pocket before thread milling:
T4 M06
G00 X50. Y50. Z5.
G01 Z-4. F110
G13 I3. K9. Q1. F350
This produces a perfect pilot pocket for:
- Thread mills
- Helical thread tools
- Solid carbide thread cutters
4. Blind Pocket Example With Finish Clean-Up
G12 can automatically create a flat-bottom blind pocket:
G12 I4. K18. Q2. F380
G01 Z-0.2 F60
G13 I4. K18. Q0.5 F250
Finish pass in opposite direction removes scallops.
5. High-Speed Aluminum Pocket (Full Production Example)
For a molding component requiring a Ø40 pocket:
G13 I5. K20. Q4. F1200
This is significantly faster than CAM because:
- No contour linking
- No retracts
- Smooth continuous spiral
- Better chip evacuation
6. Steel Pocket With Controlled Chip Load
In 4140 pre-hard steel:
G12 I3. K12. Q0.6 F180
Small Q = small radial stepover = safe for hard materials.
7. Multi-Pocket Pattern (Widely Used in Aerospace)
G90 G54
G13 X40. Y30. I3. K10. Q2. F500
X85. Y30.
X130. Y30.
G80
Perfect for large circular arrays.
8. Using G12 for Bearing Seats (Precision Application)
Tolerance-critical operations often use G12/G13 because:
- Final contour is perfectly circular
- Machine performs interpolation mathematically
- No CAM tolerance stack error
Example:
G12 I2. K15. Q0.4 F220
Used for:
- Precision bearing pockets
- Optical components
- High-speed spindle housings
9. Using G12/G13 With Depth Steps (Hard Metals)
For titanium or Inconel, break into depth levels:
G01 Z-1.0 F80
G13 I2. K12. Q0.3 F150
G01 Z-2.0
G13 I2. K12. Q0.3
G01 Z-3.0
Reduces risk of:
- Tool breakage
- Excessive heat
- Wall chatter
10. Common Problems & Expert Fixes
Problem: Tool overload on first spiral pass
– Increase initial ramp radius (I)
Problem: Chatter on finishing wall
– Reduce Q
– Add opposite-direction finishing pass
Problem: Poor chip evacuation
– Increase entry Z distance
– Add air blast or M73 tool coolant
Problem: Imperfect floor finish
– Add one final circular pass at low feed
11. Zero-Trigonometry Programming Using G12/G13
Instead of calculating dozens of G02/G03 arc points, G12 does:
- Entire spiral
- Automatic stepovers
- Final contour
Program size reduction up to 95%.
12. Summary
G12 and G13 are extremely powerful circular pocketing cycles that dramatically reduce cycle time, eliminate complex CAM paths, and deliver perfect roundness and finish. In 2025 machining—where speed, accuracy, and automation define manufacturing efficiency—G12/G13 cycles remain some of the most powerful built-in G-code tools available.
Leave a comment