CNC Machinist Calculator Ultra

Home › G-codes › Fanuc › G42

G42 Cutter compensation right / Tool nose radius compensation right

Fanuc G-code · Mill, Lathe

On mills: Cutter compensation right

Offsets the tool to the right of the programmed path, looking in the direction of travel, by the radius in offset D. With a right hand tool this is conventional milling.

Format

G42 G01 X Y D F

Addresses

AddressWhat it does
DOffset number holding the tool radius
X YLead in move that starts compensation
FFeed rate

How it works

Modal, group 07. Cancel with G40.

Example program

G90 G54 G00 X-.75 Y-.75 (START OUTSIDE CORNER)
G01 Z-.25 F10. (DEPTH)
G42 D08 Y0. F20. (COMP ON, LEAD IN)
X3. (CONVENTIONAL CUT BOTTOM SIDE)
…

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

Watch out for

On lathes: Tool nose radius compensation right

Offsets the path to the right of the direction of travel by the nose radius. Normal for OD turning toward the chuck. Radius and tip direction come from the offset called by T.

Format

G42 G00 or G01 X(U) Z(W)

Addresses

AddressWhat it does
X ZFirst move, used to bring compensation in

How it works

Modal, group 07. Cancel with G40.

Example program

T0202 (OD FINISH TOOL, R.0313 TIP 3)
G96 S600 M03 (CSS)
G00 X.6 Z.1 M08 (APPROACH)
G42 G01 Z0 F.006 (COMP ON)
…

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

Watch out for

Related codes

G41 · G40 · G10

G42 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCCutter compensation right
Mazak (EIA)Cutter radius compensation right
Okuma OSPCutter radius compensation right
Mitsubishi M70 M80Cutter radius comp right
Brother SpeedioCutter compensation right
Siemens 840D 828DTool radius compensation right
Heidenhain TNC (ISO)Radius compensation right
Fagor 8055 8065Tool radius compensation right
LinuxCNC TormachCutter compensation right
Mach3 Mach4Cutter comp right
Centroid CNC12 AcornCutter compensation right
Hurco WinMax (NC)Cutter compensation right
FadalCutter radius compensation right, conventional
Swiss (Citizen Star)Nose radius compensation right

Every G-code for Fanuc 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 G42 in the app All Fanuc G-codes

App Store Google Play