-

G02 and G03 Circular Moves

Overview

The G02 and G03 commands are used for circular interpolation in CNC programming. G02 is for clockwise (CW) circular arcs, and G03 is for counterclockwise (CCW) arcs.

Command Format

 Key Components 

  1. Plane Designation:
    1. The command begins with specifying the plane (G17, G18, G19) of circular interpolation.
    2. G17 for arcs in the XY plane, G18 for the ZX plane, and G19 for the YZ plane.
  2. End Point:
    1. The end point of the arc can be specified in either incremental (G91) or absolute (G90) values.
    2. In absolute programming (G90), the end point is a specific point in the coordinate system.
    3. In incremental programming (G91), the end point is a distance from the start point.
    4. If end point XY (depending on the plane) position matches start point, a circle will be generated.
    5. If end point Z (depending on the plane) position is different from start point, a helix will be generated.
    6. If end point XYZ coordinates are omitted, a full circle will be generated ending at the exact start point.
  3. Center of the Arc:
    1. The center of an arc can be calculated two different ways: either by specifying distance from the start point to the center (using I, J, K) or by specifying the radius of the arc (using R) and then calculating the center position.
    2. For arcs with a central angle ≤ 180° (minor arc), use a positive R value. For arcs > 180° (major arc), use a negative R value.
    3. It is recommended to use IJK or Rparameter to define the arc center.
      1. If IJK and R is provided - R takes priority and IJK is ignored.
      2. If no IJK and no R parameters are provided - a previous R value is used.
  4. Feedrate (F Command):
    1. The feedrate in this circular interpolation mode is shared with the feedrate of G01 commands.
    2. Controls the tangential speed along the circular arc.
  5. Loops(P Command):
    1. If there is a need to create multiple loops (arc angle > 360 degrees), it is possible to use the P parameter.
    2. If P is omitted or P=1, one full circle or a partial arc will be generated.
    3. If P=2 one full circle and another full circle or a partial arc will be generated (angle >360, but <=720 degrees)


 Examples

Assume a starting point of (0, 0, 0), XY plane. - G02 X20 R10 - a CW arc of 180 degrees with End Point (20, 0, 0), Radius 10, and Center calculated at position (10, 0, 0) will be generated.

Details

 


This is the latest version of Compass Online help and the content may refer to features not available in previously released versions of Compass.

Copyright © 2026 YASKAWA America, Inc.