CNC Machinist Calculator Ultra

Home › M-codes › Heidenhain TNC (ISO) › M140

M140 Retract in the tool axis

Heidenhain TNC (ISO) M-code · Mill

Retracts the tool away from the contour in the tool axis direction, by a distance MB or to the travel limit with MB MAX. Works in a tilted plane too.

Format

M140 MB

Addresses

AddressWhat it does
MBRetract distance, or MAX for the limit

How it works

Non-modal.

Example program

N150 G01 G40 X+120 F1000 *
N160 M140 MB MAX *
N170 M30 *

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M91 · M148

M140 on other controls

The same number can mean something different on another control.

ControlMeaning
Okuma OSPTapping Cycle M-Tool Constant Rotation Answer Ignored
Hurco WinMax (NC)Retract along tool vector

Every M-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 M140 in the app All Heidenhain TNC M-codes

App Store Google Play