G02 is a LinuxCNC G-code that commands a clockwise circular or helical arc at the current feed rate, the direction being viewed from the positive end of the axis about which the motion occurs. The arc is programmed either in center format, giving the endpoint plus I, J, K offsets to the arc centre, or in radius format using the R word. The arc axis and plane are chosen with G17, G18 or G19.
| Language | gcode |
|---|---|
| Code | G02 |
| Group | Arc Move |
| Syntax | G2 axes offsets (center format); G2 axes R- (radius format); G2 offsets|R- <P-> (full circles) |
| Dialect | LinuxCNC |
| Name | Data type | Description |
|---|---|---|
| X | real | Axis word for the arc end point in the selected plane. |
| Y | real | Axis word for the arc end point in the selected plane. |
| Z | real | Helix axis word when the G17 plane is active; moves the Z axis during the circular XY motion. |
| I | real | X offset to the arc centre from the current location. |
| J | real | Y offset to the arc centre from the current location. |
| K | real | Z offset to the arc centre from the current location (XZ and YZ planes). |
| R | real | Radius from the current position; positive for a turn of less than 180 degrees, negative for more than 180 degrees. |
| P | integer | Number of full turns plus the programmed arc; defaults to 1 when unspecified. |
| F | real | Feed rate; an error occurs if no feed rate has been set. |