Home › M-codes › Heidenhain TNC (ISO) › M138
M138 Select tilting axes
Heidenhain TNC (ISO) M-code · Mill
Selects which rotary axes are used by M128, TCPM and the tilted working plane.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
M138 [A B C]
Addresses
| Address | What it does |
|---|---|
A B C | Rotary axes to use |
How it works
Modal. M138 with no axes uses all axes.
Example program
N40 M138 C *
N50 G80 A+0 B+0 C+30 *
N60 M138 *
N50 G80 A+0 B+0 C+30 *
N60 M138 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Use on machines with more rotary axes than the job needs.
Related codes
M138 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Spindle speed variation on |
| Doosan (Fanuc) | Roof shower coolant on |
| Okuma OSP | Touch setter interlock release OFF |
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 M138 in the app All Heidenhain TNC M-codes