CNC Machinist Calculator Ultra

Home › G-codes › Heidenhain TNC (ISO) › G40

G40 Cancel radius compensation

Heidenhain TNC (ISO) G-code · Mill

Turns off tool radius compensation. The tool center moves to the programmed point. Klartext: R0.

Format

G40 X Y

Addresses

AddressWhat it does
X YTarget point for the tool center

How it works

Modal. Active at power on.

Example program

N150 G27 R5 F500 *
N160 G40 X-20 Y-20 F1000 *
N170 G00 Z+250 M2 *

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G41 · G42 · G27

G40 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucCutter compensation cancel
Haas NGCCutter compensation cancel
Mazak (EIA)Cutter radius compensation cancel
Okuma OSPCutter radius compensation cancel
Mitsubishi M70 M80Cutter radius comp cancel
Brother SpeedioCutter compensation cancel
Siemens 840D 828DCancel tool radius compensation
Fagor 8055 8065Cancel tool radius compensation
LinuxCNC TormachCutter compensation off
Mach3 Mach4Cutter comp cancel
Centroid CNC12 AcornCutter compensation cancel
Hurco WinMax (NC)Cutter compensation cancel
FadalCutter radius compensation cancel
Swiss (Citizen Star)Nose radius compensation cancel

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 G40 in the app All Heidenhain TNC G-codes

App Store Google Play