Home › G-codes › Mazak (EIA) › G68
G68 Coordinate rotation
Mazak (EIA) G-code · Mill
Rotates the program in the active plane about a center point by angle R. Use it for parts clamped at an angle or repeated features at angles.
Format
G68 X Y R
Addresses
| Address | What it does |
|---|---|
X Y | Center of rotation |
R | Rotation angle in degrees, plus is counterclockwise |
How it works
Modal. Cancel with G69.
Example program
G90 G54 G00 X0. Y0. (PART ZERO)
G68 X0. Y0. R30. (ROTATE 30 DEG)
M98 P3000 (POCKET SUBPROGRAM)
G69 (ROTATION OFF)
G68 X0. Y0. R30. (ROTATE 30 DEG)
M98 P3000 (POCKET SUBPROGRAM)
G69 (ROTATION OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Give the first move after G68 in absolute. An incremental first move is easy to get wrong.
- Cancel with G69 before G28.
Related codes
G68 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Coordinate system rotation |
| Haas NGC | 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 Mazak (EIA) 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 Mazak G-codes