CNC Machinist Calculator Ultra

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

AddressWhat it does
A B CRotary 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 *

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M128 · G80

M138 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCSpindle speed variation on
Doosan (Fanuc)Roof shower coolant on
Okuma OSPTouch 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

App Store Google Play