CNC Machinist Calculator Ultra

Home › G-codes › Siemens 840D 828D › G40

G40 Cancel tool radius compensation

Siemens 840D 828D G-code · Mill and lathe

Turns off G41 and G42. The tool center or tool tip runs on the programmed path again. Cancel on a G0 or G1 move away from the contour.

Format

G40 G1 X Y

Addresses

AddressWhat it does
X YPoint off the contour where compensation ends

How it works

Modal, G group 7 (radius compensation).

Example program

G41 G1 X0 Y5 F400 ; COMP ON
G1 Y40 ; CUT
G40 G1 X-10 Y50 ; COMP OFF, MOVE AWAY
G0 Z50 ; RETRACT

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G41 · G42

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
Heidenhain TNC (ISO)Cancel 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 Siemens 840D 828D 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 Siemens 840D 828D G-codes

App Store Google Play