Home › M-codes › Heidenhain TNC (ISO) › M99
M99 Cycle call in a positioning block
Heidenhain TNC (ISO) M-code · Mill
Calls the last defined cycle once at the end of the positioning block. Klartext and ISO both use M99.
Format
X Y M99
Addresses
| Address | What it does |
|---|---|
X Y | Hole position in the same block |
How it works
Non-modal. Acts at end of block.
Example program
N130 G98 L1 *
N140 G79 *
N150 G91 X+20 M99 *
N160 Y+20 M99 *
…
N140 G79 *
N150 G91 X+20 M99 *
N160 Y+20 M99 *
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The spindle must already be running. Add M3 in the same block if needed.
Related codes
M99 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Subprogram end and return |
| Haas NGC | Subprogram return or loop |
| Doosan (Fanuc) | End of sub program |
| DMG Mori MAPPS (Fanuc) | Sub-program end Repeat program |
| Mazak (EIA) | EIA → EIA Return to main EIA program |
| Okuma OSP | Subprogram return (Lathes & Mills) |
| Mitsubishi M70 M80 | Subprogram end and return |
| Brother Speedio | Subprogram end |
| LinuxCNC Tormach | Fanuc style subprogram return |
| Mach3 Mach4 | Subprogram return |
| Centroid CNC12 Acorn | Return from subprogram or macro |
| Hurco WinMax (NC) | Subprogram return |
| Fadal | End of subprogram, or line jump |
| Swiss (Citizen Star) | Subprogram return or program loop |
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 M99 in the app All Heidenhain TNC M-codes