In CNC programming, G02 and G03 are commands used for creating arcs and circles. G02 is used for clockwise arcs, while G03 is used for counterclockwise arcs. These commands are essential for precision machining of curved surfaces and are widely used in various industries.

## Usage Format

The general format for these commands is as follows:

- G02 X… Y… I… J…
- G03 X… Y… I… J…

Where:

**X**and**Y**are the end points of the arc.**I**and**J**are the distances from the starting point to the center of the arc along the X and Y axes, respectively.

## Explanation

The G02 and G03 commands allow the machine to move in a controlled arc. The **I** and **J** parameters define the radius and direction of the arc, providing the machine with the necessary information to perform the cut accurately.

## Example

Let’s consider an example where we need to cut a quarter circle with a radius of 10 units.

```
G17 G90 G40
G0 X0 Y0 (Starting Point)
G02 X10 Y10 I0 J10 (Clockwise arc to the point X10, Y10)
```

**Text Diagram:**

```
(10,10)
| /
| /
| / R=10
| /
| /
(0,0)
```

In this example, the machine starts at the origin (0,0), then moves in a clockwise direction to the point (10,10) with a radius of 10 units, forming a quarter circle.