CNC Machinist Calculator Ultra

Home › M-codes › Brother Speedio › M99

M99 Subprogram end

Brother Speedio M-code · Mill

Ends a subprogram and returns to the calling program. In a main program it loops back to the start.

Format

M99 [P]

Addresses

AddressWhat it does
PSequence number to return to

How it works

Non-modal.

Example program

O2000 (HOLE PATTERN SUB)
G99 G81 X1. Y1. Z-.3 R.1 F10. (HOLE)
X2. (HOLE)
G80 (CANCEL)
…

The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M98

M99 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSubprogram end and return
Haas NGCSubprogram 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 OSPSubprogram return (Lathes & Mills)
Mitsubishi M70 M80Subprogram end and return
Heidenhain TNC (ISO)Cycle call in a positioning block
LinuxCNC TormachFanuc style subprogram return
Mach3 Mach4Subprogram return
Centroid CNC12 AcornReturn from subprogram or macro
Hurco WinMax (NC)Subprogram return
FadalEnd of subprogram, or line jump
Swiss (Citizen Star)Subprogram return or program loop

Every M-code for Brother Speedio 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 Brother Speedio M-codes

App Store Google Play