Home › G-codes › Okuma OSP › G40
G40 Cutter radius compensation cancel / Nose radius compensation cancel
Okuma OSP G-code · Mill, Lathe
On mills: Cutter radius compensation cancel
Turns off cutter radius compensation so the tool center follows the program again.
Format
G40 [X Y]
Addresses
| Address | What it does |
|---|---|
X Y | Move used to leave the profile |
How it works
Modal, compensation group. Active at power on.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X-1. Y-1. S3000 M03 (START OFF PART)
N3 G56 Z-.25 H1 (LENGTH OFFSET)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X-1. Y-1. 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
- Cancel on a move away from the part, not on the finished wall.
- Put G40 in the safe start line.
On lathes: Nose radius compensation cancel
Turns off tool nose radius compensation.
Format
G40
How it works
Modal, compensation group. Active at power on.
Example program
O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X3.2 Z.1 T010101 (START)
N3 G42 G01 X2. Z0 F.008 (COMP ON)
…
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X3.2 Z.1 T010101 (START)
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
- Cancel on a move away from the part.
Related codes
G40 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Cutter compensation cancel |
| Haas NGC | Cutter compensation cancel |
| Mazak (EIA) | Cutter radius compensation cancel |
| Mitsubishi M70 M80 | Cutter radius comp cancel |
| Brother Speedio | Cutter compensation cancel |
| Siemens 840D 828D | Cancel tool radius compensation |
| Heidenhain TNC (ISO) | Cancel radius compensation |
| Fagor 8055 8065 | Cancel tool radius compensation |
| LinuxCNC Tormach | Cutter compensation off |
| Mach3 Mach4 | Cutter comp cancel |
| Centroid CNC12 Acorn | Cutter compensation cancel |
| Hurco WinMax (NC) | Cutter compensation cancel |
| Fadal | Cutter radius compensation cancel |
| Swiss (Citizen Star) | Nose radius compensation cancel |
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 G40 in the app All Okuma OSP G-codes