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
| Address | What it does |
|---|---|
M | Optional 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 *
; CHECK PART
N80 G38 *
N90 T2 G17 S3000 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Add M5 or M9 if the spindle and coolant must stop.
Related codes
G38 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fagor 8055 8065 | Tangential 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