CNC Machinist Calculator Ultra

Home › G-codes › Mazak (EIA) › G42

G42 Cutter radius compensation right / Tool nose radius compensation right

Mazak (EIA) G-code · Mill, Lathe

On mills: Cutter radius compensation right

Offsets the tool to the right of the path by the radius in offset D. Gives conventional milling on outside contours with a right hand cutter.

Format

G42 X Y D

Addresses

AddressWhat it does
X YLead in move
DOffset number with the radius

How it works

Modal, group 07. Cancel with G40.

Example program

G90 G54 G00 X-1. Y3.5 (START CLEAR)
G43 H06 Z.1 (LENGTH OFFSET)
G01 Z-.25 F15. (TO DEPTH)
G42 X0. D06 F25. (COMP RIGHT)
…

The full 7-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 for the tool nose radius, tool on the right of the path. Used for OD turning toward the chuck.

Format

G42 X Z

Addresses

AddressWhat it does
X ZLead in move

How it works

Modal, group 07. Cancel with G40.

Example program

T0202 (OD FINISH TOOL)
G00 X1.1 Z.1 (START)
G42 G01 X1. Z0. F.006 (COMP ON)
X1.25 Z-.5 (TAPER)
…

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
Haas NGCCutter 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 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 G42 in the app All Mazak G-codes

App Store Google Play