G42 Cutter radius compensation right, conventional
Fadal G-code · Mill
Offsets the tool to the right of the path by the tool radius. On a CW spindle this is conventional milling.
Format
G42 D X Y
Addresses
| Address | What it does |
|---|---|
D | Diameter offset number, Format 2 |
H | Offset number, Format 1 |
How it works
Modal until G40.
Example program
N1 G0 G40 G49 G80 G90 G17 (FORMAT 2 SAFE START)
N2 T1 M6 (1-2 END MILL)
N3 G0 G90 G54 X-1. Y3. S3000 M3
N4 G43 H1 Z-.25 M8
…
N2 T1 M6 (1-2 END MILL)
N3 G0 G90 G54 X-1. Y3. S3000 M3
N4 G43 H1 Z-.25 M8
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Format 2 picks the radius with D. Format 1 picks it with H, and a D word overrides the diameter from the H.
- Turn it on with a lead in move longer than the tool radius and cancel with G40 on a lead out move.
- M96 rolls around outside corners and M97 uses intersections. Pick one before the profile.
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 |
| 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 |
| Swiss (Citizen Star) | Nose radius compensation right |
Every G-code for Fadal 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 Fadal G-codes