CNC Machinist Calculator Ultra

Home › G-codes › Mach3 Mach4 › G68

G68 Rotate coordinates

Mach3 Mach4 G-code · Mill

Rotates the program about a center point in the XY plane. Positive R is counterclockwise. The center letters differ between Mach3 and Mach4.

Format

G68 X Y R (Mach4) or G68 A B R [I] (Mach3)

Addresses

AddressWhat it does
X YMach4 center of rotation
A BMach3 center of rotation, A is X and B is Y
RRotation angle in degrees
IMach3, any I adds R to the rotation already active

How it works

Modal, rotation group. Cancel with G69.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S6000 M3 (SPINDLE ON)
G43 H1 Z1.0 (LENGTH OFFSET)
…

The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G69 · G17

G68 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucCoordinate system rotation
Haas NGCCoordinate rotation
Mazak (EIA)Coordinate rotation
Mitsubishi M70 M80Coordinate rotation
Brother SpeedioCoordinate rotation
Fagor 8055 8065Stock removal along X (lathe)
Centroid CNC12 AcornCoordinate rotation on
Hurco WinMax (NC)Coordinate rotation
FadalCoordinate rotation
Swiss (Citizen Star)Balance cut or double turret mirror on (Star)

Every G-code for Mach3 Mach4 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 Mach3 Mach4 G-codes

App Store Google Play