Home › G-codes › Haas NGC › G68
G68 Coordinate rotation
Haas NGC G-code · Mill
Rotates the programmed path by the R angle about a center point in the selected plane. Use it to cut a feature at an angle without new math.
Format
G68 A B R
Addresses
| Address | What it does |
|---|---|
A | Center of rotation on the first axis of the plane, X in G17 |
B | Center of rotation on the second axis of the plane, Y in G17 |
R | Rotation angle in degrees, positive is CCW |
How it works
Modal, group 16. Cancel with G69.
Example program
G17 G90 G54 (XY PLANE, ABSOLUTE)
G68 A0. B0. R30. (ROTATE 30 DEG ABOUT X0 Y0)
M98 P1003 (CUT THE SLOT)
G69 (ROTATION OFF)
G68 A0. B0. R30. (ROTATE 30 DEG ABOUT X0 Y0)
M98 P1003 (CUT THE SLOT)
G69 (ROTATION OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Select the plane before G68 and do not change it while rotation is on.
- Cancel with G69 before the next tool or the end of the program.
Related codes
G68 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Coordinate system rotation |
| Mazak (EIA) | Coordinate rotation |
| Mitsubishi M70 M80 | Coordinate rotation |
| Brother Speedio | Coordinate rotation |
| Fagor 8055 8065 | Stock removal along X (lathe) |
| Mach3 Mach4 | Rotate coordinates |
| Centroid CNC12 Acorn | Coordinate rotation on |
| Hurco WinMax (NC) | Coordinate rotation |
| Fadal | Coordinate rotation |
| Swiss (Citizen Star) | Balance cut or double turret mirror on (Star) |
Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G68 in the app All Haas NGC G-codes