G-code reference

G68: Coordinate rotation

G68 is coordinate rotation. Rotates the programmed path around a centre point by an angle R. It is modal, so it stays active on the following lines until another code from the same group replaces it.

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.

TypeG-code
MachineMill
GroupRotation
ModalYes: 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.

WordWhat it means here
G68Coordinate 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

CodeWhat 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.

  • G69 Coordinate 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

  1. What does G68 do? (Mill)

  2. Which code: Rotates the programmed path around a centre point by an angle R.(Mill)

  3. What does G69 do? (Mill)

Show the answers
  1. Rotates the programmed path around a centre point by an angle R.
  2. G68
  3. Cancels G68 rotation.

Drill this code with the rest of the core set

More practice hubs

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.

Free preview · no card Try G-Code Sprint