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
Addresses
| Address | What it does |
|---|---|
D | Diameter offset number |
X Y | Lead in move that turns compensation on |
How it works
Modal, cutter comp group 07. Cancel with G40.
Example program
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
- Use a lead in move longer than the tool radius.
- Inside pockets cut in the CCW direction with G42 are conventional milled with M03.
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
Addresses
| Address | What it does |
|---|---|
X Z | Lead in point where comp is applied |
F | Feed rate |
How it works
Modal, group 07. Cancel with G40.
Example program
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
- Enter the tool nose radius and tip direction, tip 3 for a normal OD tool.
- Start comp on a lead in move longer than the nose radius.
- Comp corrects tapers and radii. Straight cuts do not need it.
Related codes
G42 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Cutter compensation right |
| Mazak (EIA) | Cutter radius compensation right |
| Okuma OSP | Cutter radius compensation right |
| Mitsubishi M70 M80 | Cutter radius comp right |
| Brother Speedio | Cutter compensation right |
| Siemens 840D 828D | Tool radius compensation right |
| Heidenhain TNC (ISO) | Radius compensation right |
| Fagor 8055 8065 | Tool radius compensation right |
| LinuxCNC Tormach | Cutter compensation right |
| Mach3 Mach4 | Cutter comp right |
| Centroid CNC12 Acorn | Cutter compensation right |
| Hurco WinMax (NC) | Cutter compensation right |
| Fadal | Cutter 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