Home › G-codes › Okuma OSP › G42
G42 Cutter radius compensation right / Nose radius compensation right
Okuma OSP G-code · Mill, Lathe
On mills: Cutter radius compensation right
Offsets the tool to the right of the path, looking in the direction of travel. With a right hand cutter this is conventional milling.
Format
Addresses
| Address | What it does |
|---|---|
X Y | Lead in move |
D | Cutter radius offset number |
F | Feed rate |
How it works
Modal. Cancel with G40.
Example program
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X-1. Y3. S3000 M03 (START OFF PART)
N3 G56 Z-.25 H1 (LENGTH OFFSET)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Switching straight from G41 to G42 can gouge. Cancel first.
- Check the D offset holds the radius, not the diameter, unless set by parameter.
On lathes: Nose radius compensation right
Offsets the tool nose to the right of the path. Normal for OD turning toward the chuck.
Format
How it works
Modal. Cancel with G40.
Example program
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X3.2 Z.1 T010101 (OD TOOL)
N3 G42 G01 X2. Z0 F.008 (COMP ON)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Without compensation, tapers and radii come out wrong by part of the nose radius.
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 |
| 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 Okuma OSP 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 Okuma OSP G-codes