Home › G-codes › Siemens 808D ISO › G68
G68 Coordinate rotation, 2D or 3D
Siemens 808D ISO G-code · Mill
Rotates the program by angle R around a center in the active plane. With a vector I J K in the block it becomes a 3D rotation around that vector.
Format
G68 X Y R or G68 X Y Z I J K R
Addresses
| Address | What it does |
|---|---|
X Y | Center of rotation, absolute. Omitted uses the current position |
Z | Pivot point for 3D rotation |
I J K | Rotation vector, makes it a 3D rotation |
R | Rotation angle in degrees |
How it works
Modal, group 16. Cancel with G69.
Example program
G17 G90 G54 G00 X0. Y0. (PART ZERO)
G68 X0. Y0. R30. (ROTATE 30 DEG AROUND X0 Y0)
M98 P1400 (CUT FEATURE)
G69 (ROTATION OFF)
…
G68 X0. Y0. R30. (ROTATE 30 DEG AROUND X0 Y0)
M98 P1400 (CUT FEATURE)
G69 (ROTATION OFF)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- No other G codes in the G68 or G69 block.
- Without R the angle comes from SD42150 DEFAULT_ROT_FACTOR_R. In 2D R follows G90 or G91, in 3D it is always absolute.
- A second G68 adds a second rotation on top of the first. G69 cancels both.
- Turn rotation off before a plane change. The angle carries into the new plane.
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 |
| 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 Siemens 808D ISO 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 Siemens 808D ISO G-codes