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
Addresses
| Address | What it does |
|---|---|
X Y | Lead in move |
D | Offset number with the radius |
How it works
Modal, group 07. Cancel with G40.
Example program
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
- Same lead in and lead out rules as G41.
- Changing from G41 to G42 directly is allowed but risky. Cancel with G40 first.
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
Addresses
| Address | What it does |
|---|---|
X Z | Lead in move |
How it works
Modal, group 07. Cancel with G40.
Example program
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
- Set the tip direction for the OD tool, usually 3 on a front turret lathe.
- Tapers and radii are wrong without nose comp.
Related codes
G42 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Cutter compensation right |
| Haas NGC | Cutter 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 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