CNC Circular Interpolation: G02 & G03 Explained with Real Arc Geometry
Circular interpolation (G02, G03) allows CNC machines to cut perfect arcs and circles using simple geometry.
By defining a radius or center offset (I, J, K), you can program smooth curves without 3D CAD surfaces.
📌 1. What Is Circular Interpolation?
- G02 → Clockwise arc
- G03 → Counterclockwise arc
They define motion in a plane selected by G17 (XY), G18 (XZ), or G19 (YZ).
📌 2. Basic Arc Example — XY Plane (G17)
G17
G02 X50. Y50. I25. J0. F200
- Starts from current position (X0, Y0)
- Ends at X50 Y50
- I and J define the arc center offset from the start point
📌 3. Arc Geometry Explanation
| Parameter | Description |
|---|---|
| X/Y/Z | End point of arc |
| I/J/K | Center offset from start position |
| R | Arc radius (optional instead of IJK) |
| G17 / G18 / G19 | Defines which plane arc lies on |
📌 4. Full Circle Example (Fanuc Style)
G17
G02 I0. J25. F200
- Cuts a 360° clockwise circle with radius 25 mm
- Start and end points are identical
⚠️ Full circles using I/J must have the same start and end coordinates.
📌 5. Using R Instead of I/J/K
G02 X50. Y0. R25. F200
- R = 25 → Clockwise 90° arc
- If R is positive → Short arc
- If R is negative → Long arc (>180°)
📌 6. Haas Example — Arc with R
G17
G03 X0 Y50 R25 F150
- Counterclockwise arc with 25 mm radius
- Easier for simple arcs (drill chamfers, contours)
📌 7. G18 / G19 Planes (XZ / YZ Arcs)
XZ Plane:
G18
G02 X50. Z-20. I25. K0.
YZ Plane:
G19
G03 Y30. Z-10. J15. K0.
📌 8. Heidenhain & Siemens Equivalents
Heidenhain:
L X+50 Y+0 CR=+25 DR+
CR= circle radiusDR+= clockwise directionDR-= counterclockwise
Siemens:
G17
CIRCLE CENTER (I=25, J=0) DIR=CLW
📌 9. Advanced Arc Example — Complete 180° Profile
%
O5050 (ARC INTERPOLATION EXAMPLE)
G90 G17 G40 G80 G21
T01 M06
S2000 M03
G00 X0 Y0 Z5
G01 Z-5 F100
G02 X50 Y0 I25 J0 F200
G03 X0 Y0 I-25 J0
M05 M30
%
This program cuts a perfect semicircle and returns to the start point.
📌 10. Common Mistakes
| Mistake | Result |
|---|---|
| Wrong plane (G17/G18/G19) | Arc cuts in wrong orientation |
| Missing IJK or R | Control alarm 33 (Fanuc: “Arc data error”) |
| Wrong sign for I/J | Arc goes the opposite way |
| Inconsistent start/end | Arc not closed properly |
📌 11. Practical Uses of G02/G03
- Circular pockets and holes
- Chamfering with arcs
- Fillet and blending contours
- Helical milling (arc + Z movement)
📌 12. Helical Interpolation Example
G17
G03 X50. Y0. Z-10. I25. J0. F150
- Cuts a helical ramp down 10 mm deep while moving in a CCW circle.
📌 13. Best Practices
- Always define the plane (G17/G18/G19) before arcs.
- Use IJK for precision arcs; R for simple geometry.
- Comment each arc for clarity.
- Use consistent feedrates (F values) for smooth motion.
📌 14. Future Trends (2025–2030)
- AI-driven arc smoothing for high-speed machining.
- Automatic tangent blending in G-code simulation.
- Real-time arc verification in controllers (Fanuc 0i, Siemens 840D).
✅ Conclusion
Circular interpolation with G02 and G03 is the foundation of CNC motion control.
By mastering arcs using IJK or R parameters, you gain precise, efficient control over curves, contours, and high-quality surface finishes.
Leave a comment