CNC Machinist Calculator Ultra

Home › M-codes › Brother Speedio › M98

M98 Subprogram call

Brother Speedio M-code · Mill

Calls a subprogram by number. L or the P digits set the repeat count.

Format

M98 P [L]

Addresses

AddressWhat it does
PSubprogram number
LRepeat count

How it works

Non-modal.

Example program

G90 G54 G00 X0 Y0 (FIRST PART)
M98 P2000 (RUN HOLE PATTERN)
G55 G00 X0 Y0 (SECOND PART)
M98 P2000 (RUN AGAIN)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M99 · G65

M98 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSubprogram call
Haas NGCSubprogram call
Doosan (Fanuc)Sub program call
DMG Mori MAPPS (Fanuc)Sub-program call in NC memory
Mazak (EIA)EIA → EIA Subprogram call
Okuma OSPSubprogram call (Lathes & Mills)
Mitsubishi M70 M80Subprogram call
Heidenhain TNC (ISO)Machine open contours completely
LinuxCNC TormachFanuc style subprogram call
Mach3 Mach4Subprogram call
Centroid CNC12 AcornCall subprogram
Hurco WinMax (NC)Subprogram call
FadalExecute subprogram
Swiss (Citizen Star)Subprogram call

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 M98 in the app All Brother Speedio M-codes

App Store Google Play