G-code reference
G02 G-Code: Circular Interpolation Clockwise
Circular Interpolation Clockwise — Cuts a clockwise arc in the active plane (G17/G18/G19). The arc centre is given either with I, J, K offsets from the start point or with a radius R. Adding a…
| Property | Value |
|---|---|
| Code | G02 |
| Function | Circular Interpolation Clockwise |
| Modal group | 01 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Mills and lathes |
| Syntax | G02 X_ Y_ I_ J_ F_ or G02 X_ Y_ R_ F_ |
What does G02 do?
Cuts a clockwise arc in the active plane (G17/G18/G19). The arc centre is given either with I, J, K offsets from the start point or with a radius R. Adding a third-axis move creates a helix.
G02 is modal: once programmed it remains in effect for the following blocks until another code from modal group 01 replaces it or the control is reset.
Syntax and parameters
G02 X_ Y_ I_ J_ F_ or G02 X_ Y_ R_ F_| Address | Meaning |
|---|---|
X Y Z | Arc end point |
I J K | Incremental distance from start point to arc centre (X, Y, Z) |
R | Arc radius (positive ≤ 180°, negative > 180° on most controls) |
F | Feed rate |
G02 example program
G17 G90 G01 X0 Y-25.0 F400.
G02 X0 Y-25.0 I0 J25.0 (full circle, R25)
G02 X25.0 Y0 R25.0 (quarter arc)▶ Open this example in the G-code viewer
Tips and common mistakes
- A full circle needs I/J/K — R cannot describe a 360° arc.
- "Arc end point radius error" alarms mean the end point does not lie on the arc; check rounding.
- Clockwise is viewed from the positive end of the axis perpendicular to the plane.
Controller compatibility
G02 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.
Related codes
- G03 — Circular Interpolation Counter-Clockwise
- G17 — XY Plane Selection
- G01 — Linear Interpolation (Feed Move)