Printed from Kezuriba (kezuriba.net/en/nc/g02/)
G02
Machining center, LatheModal, group 01Circular interpolation, clockwise (CW) / helical interpolation
Format and notes
G17 G02 X_ Y_ R_ (or I_ J_) F_ / lathe: G02 X(U)_ Z(W)_ R_ (or I_ K_) F_
- Direction is as seen from the + side of the selected plane (the +Z side for G17)
- On a lathe (ZX plane, G18), the direction of rotation looks reversed when seen from above, depending on whether the turret is on the near or far side. The control defines the direction as seen from the +Y side, so the program is the same regardless of the turret position (figure on the G18 page)
- I/J/K are incremental distances from the start point to the arc center (incremental regardless of G90/G91)
- With R, the center error becomes large for arcs close to a semicircle or full circle. Write a full circle with I/J/K (it cannot be written with R)
- Some controls use a negative R to denote an arc over 180° (NIST, FANUC-type)
Diagram: G02 arc: direction, center, I/J, R
Full guide with examples: How to program a thread mill (helical interpolation: G02/G03 plus Z to cut threads)
Try it in the simulator (machining center)
G02 is clockwise, G03 counter-clockwise (seen from above). Try the R form and the I/J centre form (needed for a full circle).
X—
Y—
Z—
T—
S0
F0
—0:00
Simulator with exercises: Machining center page
Frequently asked questions about G02
- What is G02 (Circular interpolation, clockwise (CW) / helical interpolation) used for and how is it formatted in a CNC program?
- G02 commands "Circular interpolation, clockwise (CW) / helical interpolation" on Machining center, Lathe. The standard program format is "G17 G02 X_ Y_ R_ (or I_ J_) F_ / lathe: G02 X(U)_ Z(W)_ R_ (or I_ K_) F_". Direction is as seen from the + side of the selected plane (the +Z side for G17)
- Is G02 a modal code or a one-shot (non-modal) code?
- G02 is a modal code (Group 01). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
- Does G02 work differently on machining centers (mills) versus CNC lathes?
- G02 is primarily used on Machining center, Lathe. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
- Are there differences in G02 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
- While the core behavior of G02 is shared across most ISO-compatible CNC controls (FANUC, Mitsubishi Electric, Haas), controls using native conversational or proprietary dialects (such as Okuma OSP, Siemens native mode, or Heidenhain) or machine-specific M-code tables may use different syntax. Always verify with single-block execution and distance-to-go display on a new machine.
Sources
The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Machining center) e-Learning material (PDF) mitsubishielectric.com
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Lathe) e-Learning material (PDF, BNP-C8027-688) mitsubishielectric.com
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
- Ministry of Health, Labour and Welfare (MHLW), Human Resources Development Bureau, Office of the Councillor for Skills Evaluation — Human resource development manual using the practical exam tasks of the Grade 3 Skilled Worker Test: CNC lathe work (March 2018) waza.mhlw.go.jp