Home › M-codes › Swiss (Citizen Star) › M99
M99 Subprogram return or program loop
Swiss (Citizen Star) M-code · Lathe
Ends a subprogram. At the end of a main program it loops back to the start, the normal way to run a bar.
Format
M99 [P]
Addresses
| Address | What it does |
|---|---|
P | Block number to return to |
How it works
One shot.
Example program
M200 (STAR WAIT, OR !2L999 ON CITIZEN)
G00 X.8 (CLEAR)
M99 (LOOP TO START FOR NEXT PART)
G00 X.8 (CLEAR)
M99 (LOOP TO START FOR NEXT PART)
Example is in inch. Check offsets and clearances first.
Watch out for
- Both paths must loop together. Put a wait just before M99 in each path.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
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 |
| Heidenhain TNC (ISO) | Cycle call in a positioning block |
| 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 |
Every M-code for Swiss (Citizen Star) 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 Swiss M-codes