Home › G-codes › Fagor 8055 8065 › G42
G42 Tool radius compensation right
Fagor 8055 8065 G-code · Mill and lathe
Offsets the tool to the right of the path, seen in the cut direction. Radius comes from the tool offset selected with D.
Format
G42 [N] X Y
Addresses
| Address | What it does |
|---|---|
X Y | First move with compensation |
N | Optional collision detection, G42 N |
How it works
Modal. Cancel with G40.
Example program
T2 D2 (TOOL 2 OFFSET 2)
G00 G90 X0.8 Z0.1 (APPROACH)
G42 G01 Z0 F0.006 (COMP ON)
X1.0 Z-0.1 (CHAMFER)
…
G00 G90 X0.8 Z0.1 (APPROACH)
G42 G01 Z0 F0.006 (COMP ON)
X1.0 Z-0.1 (CHAMFER)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- On lathes the tool tip location in the tool table must be correct.
- Turn on during a move toward the part, not on an arc.
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 |
| Heidenhain TNC (ISO) | 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 Fagor 8055 8065 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 Fagor 8055 8065 G-codes