G68: Coordinate rotation
What G68 does
G68 rotates everything that follows around the given centre by angle R, so a feature programmed square can be cut at an angle. G69 cancels it. Rotation affects every move until cancelled, including tool changes, so cancel it right after the feature.
| Type | G-code |
|---|---|
| Machine | Mill |
| Group | Rotation |
| Modal | Yes: stays active until replaced by another code from the same group |
G68 example
G68 X0. Y0. R30. Rotate the path 30 degrees around X0 Y0.
| Word | What it means here |
|---|---|
G68 | Coordinate rotation |
X0. | X axis target (on a lathe, the diameter) |
Y0. | Y axis target |
R30. | arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting |
Codes people confuse with G68
| Code | What it does instead |
|---|---|
G69 | Coordinate rotation cancel. Cancels G68 rotation. |
G16 | Polar coordinates on. Reads X as a radius and Y as an angle, handy for bolt-hole circles. |
Other codes in the rotation group
Only one code from a modal group is active at a time. Programming any of these replaces G68.
G69Coordinate rotation cancel
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: G68
-
What does
G68do? (Mill) -
Which code: Rotates the programmed path around a centre point by an angle R.(Mill)
-
What does
G69do? (Mill)
Show the answers
- Rotates the programmed path around a centre point by an angle R.
- G68
- Cancels G68 rotation.
Frequently asked questions
- What does G68 mean in CNC programming?
- Coordinate rotation. Rotates the programmed path around a centre point by an angle R.
- Is G68 modal?
- Yes. G68 belongs to the rotation group and stays active until another code from that group is programmed.
- What is the difference between G68 and G69?
- G68 (coordinate rotation): rotates the programmed path around a centre point by an angle R. G69 (coordinate rotation cancel): cancels G68 rotation.
- What is the difference between G68 and G16?
- G68 (coordinate rotation): rotates the programmed path around a centre point by an angle R. G16 (polar coordinates on): reads X as a radius and Y as an angle, handy for bolt-hole circles.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.