You are on page 1of 4

G-code, M-code, and Setting

Page 1 of 4 pages
G-code, M-code, and Setting

G02 CW/G03 CCW Circular Interpolation Motion (Group 01)


F - Feed rate
* I - Distance along X-axis to center of circle
* J - Distance along Y-axis to center of circle
* K - Distance along Z-axis to center of circle
* R - Radius of arc
* U - X-axis incremental motion command
* W - Z-axis incremental motion command
* X - X-axis absolute motion command
* Y - Y-axis absolute motion command
* Z - Z-axis absolute motion command

* indicates optional

These G codes are used to specify a circular motion (CW or CCW) of the linear axes (Circular motion is possible in the
X and Z axes as selected by G18). The X and Z values are used to specify the end point of the motion and can use
either absolute (X and Z) or incremental motion (U and W). If either the X or Z is not specified, the endpoint of the arc
is the same as the starting point for that axis. There are two ways to specify the center of the circular motion; the first
uses I or K to specify the distance from the starting point to the center of the arc; the second uses R to specify the
radius of the arc.

For information on G17 and G19 Plane Milling, see the Live Tooling section.

G02 Axis Definitions: [1] Turret Lathes, [2] Table Lathes.

G02 and G03 Programs

Page 2 of 4 pages
G-code, M-code, and Setting

R is used to specify the radius of the arc. With a positive R, the control will generate a path of 180 degrees or less; to
generate a radius of over 180 degrees, specify a negative R. X or Z is required to specify an endpoint if different from
the starting point.

The following lines cut an arc of less than 180 degrees:

G01 X3.0 Z4.0 ;


G02 Z-3.0 R5.0 ;
G02 Arc Using Radius

I and K are used to specify the center of the arc. When I and K are used, R may not be used. The I or K is the signed
distance from the starting point to the center of the circle. If only one of I or K is specified, the other is assumed to be
zero.

G02 Defined X and Z: [1] Start.

Page 3 of 4 pages
G-code, M-code, and Setting

Page 4 of 4 pages

You might also like