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
| Address | What it does |
|---|---|
MB | Retract 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 *
N160 M140 MB MAX *
N170 M30 *
Example is in inch. Check offsets and clearances first.
Watch out for
- MB MAX goes to the software limit. Make sure nothing is above the tool.
Related codes
M140 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Okuma OSP | Tapping 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