CNC mill · G-code
G02 / G03: circular interpolation (arcs)
G02 cuts a clockwise arc and G03 a counterclockwise one, in the selected plane (G17 XY, G18 XZ, G19 YZ). The arc is given by its center (I, J, K) or its radius (R). Haas lists it in modal group 01. Formats below from Haas and LinuxCNC, each from its maker.
Worked example
A 0.5" radius quarter arc, clockwise, center format. Written for this page in the Haas format.
G00 G17 G90 X0 Y0.5G01 Z-0.1 F10.G02 X0.5 Y0 I0 J-0.5 F15. (center is 0.5 below the start)G00 Z1.The example arc has I0 J-0.5, so its radius is √(I² + J²) = 0.5".
How each control writes it
Haas G02/G03 X- Y- Z- I- J- K- F- or G02/G03 X- Y- Z- R- F-
One source: Haas Automation, the control's maker
- F
- Feedrate
- I
- X distance from the start point to the arc center (optional)
- J
- Y distance from the start point to the arc center (optional)
- K
- Z distance from the start point to the arc center (optional)
- R
- Radius of the arc (optional)
- X, Y, Z, A
- End point (optional)
- Haas recommends I, J, K; R suits general radii.
- Only the center words for the active plane are allowed: G17 uses I J, G18 I K, G19 J K.
LinuxCNC G2/G3 axes I- J- K- (center) or G2/G3 axes R- (radius) <P->
One source: the LinuxCNC project, the control's maker
- X, Y, Z
- End point (optional)
- I, J, K
- Center offsets for the active plane (optional)
- R
- Radius (optional)
- P
- Number of full turns plus the programmed arc (an integer) (optional)
- Direction is as seen from the positive end of the axis the motion turns about.
- Adding the axis normal to the plane (Z in G17) makes a helix.
Source: LinuxCNC documentation, "G2, G3 Arc Move" (archived Oct 29, 2026)
How the controls differ
- Only Haas takes A, F.
- Only LinuxCNC takes P.
- A word two controls share can still mean different things: read each control's list above.
No Fanuc row yet: that chapter of the 0i manual has not been read.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.