G-code reference

G02: Circular interpolation, clockwise

G02 is circular interpolation, clockwise. Cuts an arc clockwise, seen from the positive end of the axis normal to the plane. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G02 does

G02 cuts an arc clockwise to the end point, either with a radius (R) or with the arc centre given as I, J, K distances from the start point. Clockwise is judged looking at the active plane (G17, G18 or G19) from the positive side of the third axis. On a lathe the apparent direction depends on whether the turret is in front of or behind the spindle centre line.

TypeG-code
MachineMill and lathe
GroupMotion
ModalYes: stays active until replaced by another code from the same group

G02 example

G02 X40. Y20. R10. F200.

Clockwise arc of radius 10 to X40 Y20.

WordWhat it means here
G02Circular interpolation, clockwise
X40.X axis target (on a lathe, the diameter)
Y20.Y axis target
R10.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
F200.feed rate (on threading codes, the lead)

Codes people confuse with G02

CodeWhat it does instead
G03 Circular interpolation, counterclockwise. Cuts an arc counterclockwise.

Memory hook: G02 = clockwise, the way a clock's hands turn.

Other codes in the motion group

Only one code from a modal group is active at a time. Programming any of these replaces G02.

  • G00 Rapid positioning
  • G01 Linear interpolation (feed move)
  • G03 Circular interpolation, counterclockwise
  • G32 Thread cutting (single pass)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G02

  1. What does G02 do? (Mill and lathe)

  2. Which code: Cuts an arc clockwise, seen from the positive end of the axis normal to the plane.(Mill and lathe)

  3. What does G03 do? (Mill and lathe)

Show the answers
  1. Cuts an arc clockwise, seen from the positive end of the axis normal to the plane.
  2. G02
  3. Cuts an arc counterclockwise.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G02 mean in CNC programming?
Circular interpolation, clockwise. Cuts an arc clockwise, seen from the positive end of the axis normal to the plane.
Is G02 modal?
Yes. G02 belongs to the motion group and stays active until another code from that group is programmed.
What is the difference between G02 and G03?
G02 (circular interpolation, clockwise): cuts an arc clockwise, seen from the positive end of the axis normal to the plane. G03 (circular interpolation, counterclockwise): cuts an arc counterclockwise. A way to remember it: g02 = clockwise, the way a clock's hands turn.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint