CNC Machinist Calculator Ultra

Home › G-codes › Heidenhain TNC (ISO) › G38

G38 Program stop

Heidenhain TNC (ISO) G-code · Mill

Stops the program run. Spindle and coolant are not switched off by G38 alone. Klartext: STOP.

Format

G38 [M]

Addresses

AddressWhat it does
MOptional miscellaneous function, for example M5

How it works

Non-modal.

Example program

N70 G00 Z+100 M5 *
; CHECK PART
N80 G38 *
N90 T2 G17 S3000 *

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M0

G38 on other controls

The same number can mean something different on another control.

ControlMeaning
Fagor 8055 8065Tangential exit

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

App Store Google Play