CNC Machinist Calculator Ultra

Home › G-codes › Haas NGC › G42

G42 Cutter compensation right / Tool nose compensation right

Haas NGC G-code · Mill, Lathe

On mills: Cutter compensation right

Offsets the tool to the right of the path by the D offset value, seen along the direction of travel. With M03 this gives conventional milling on outside profiles.

Format

G42 D X Y

Addresses

AddressWhat it does
DDiameter offset number
X YLead in move that turns compensation on

How it works

Modal, cutter comp group 07. Cancel with G40.

Example program

G00 X-1. Y3. (START AWAY FROM THE PART)
G01 Z-.25 F10. (DOWN TO DEPTH)
G42 D01 X0. Y2.5 F20. (LEAD IN WITH COMP RIGHT)
Y0. (CUT DOWN THE LEFT 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 compensation right

Offsets the tool to the right of the path by the tool nose radius. Used for OD turning toward the chuck. Radius and tip direction come from the tool offset.

Format

G42 G01 X Z F

Addresses

AddressWhat it does
X ZLead in point where comp is applied
FFeed rate

How it works

Modal, group 07. Cancel with G40.

Example program

T0101 (OD FINISH TOOL, TIP 3, .031 RADIUS)
G00 G54 X.6 Z.1 (APPROACH)
G42 G01 Z0 F.006 (COMP RIGHT ON LEAD IN)
X.75 Z-.125 (45 DEGREE CHAMFER)
…

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

Watch out for

Related codes

G40 · G41

G42 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucCutter 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 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 G42 in the app All Haas NGC G-codes

App Store Google Play