Home › G-codes › Heidenhain TNC (ISO) › G42
G42 Radius compensation right
Heidenhain TNC (ISO) G-code · Mill
Offsets the tool to the right of the contour in the direction of travel. Klartext: RR.
Format
G42 X Y [F]
Addresses
| Address | What it does |
|---|---|
X Y | First contour point |
F | Feed rate |
How it works
Modal. Cancel with G40.
Example program
N50 I+50 J+50 *
N60 G01 G42 X+50 Y+80 F250 *
N70 G26 R5 *
N80 G02 X+80 Y+50 *
N60 G01 G42 X+50 Y+80 F250 *
N70 G26 R5 *
N80 G02 X+80 Y+50 *
Example is in inch. Check offsets and clearances first.
Watch out for
- With a right hand spindle, G42 is conventional milling.
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 |
| 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 |
| 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 Heidenhain TNC (ISO) 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 Heidenhain TNC G-codes