Home › M-codes › Heidenhain TNC (ISO) › M128
M128 Keep tool tip position TCPM
Heidenhain TNC (ISO) M-code · Mill
Keeps the tool tip on the part when tilting axes move. On TNC 640 the preferred form is FUNCTION TCPM, which offers more options. Reset with M129.
Format
M128
Addresses
| Address | What it does |
|---|---|
M128 | No addresses |
How it works
Modal. Cancel with M129 or FUNCTION RESET TCPM.
Example program
N40 M128 *
N50 G01 X+10 Y+20 Z-5 B+20 F1000 *
N60 G00 Z+100 *
N70 M129 *
N50 G01 X+10 Y+20 Z-5 B+20 F1000 *
N60 G00 Z+100 *
N70 M129 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Software option. The tool length in the table must be correct.
- FUNCTION TCPM F TCP AXIS POS PATHCTRL AXIS is the newer way to program the same idea.
Related codes
M128 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| DMG Mori MAPPS (Fanuc) | External output |
| Centroid CNC12 Acorn | Move axis by encoder counts |
| Hurco WinMax (NC) | Tool center point management on |
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 M128 in the app All Heidenhain TNC M-codes