Home › M-codes › Mitsubishi M70 M80 › M98
M98 Subprogram call
Mitsubishi M70 M80 M-code · Mill and lathe
Calls a subprogram. Mitsubishi uses P for program, H for start sequence and L for repeat count.
Format
M98 P [H] [L]
Addresses
| Address | What it does |
|---|---|
P | Subprogram number |
H | Sequence number to start at |
L | Number of times to repeat |
How it works
Non-modal.
Example program
G90 G54 G00 X0. Y0. (START)
M98 P1234 L3 (RUN SUB 3 TIMES)
G00 Z1. (CLEAR)
M98 P1234 L3 (RUN SUB 3 TIMES)
G00 Z1. (CLEAR)
Example is in inch. Check offsets and clearances first.
Watch out for
- Mitsubishi uses L for repeats. The Fanuc style of packing the count into P may not work.
- Use G65 when you need to pass arguments.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M98 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Subprogram call |
| Haas NGC | Subprogram call |
| Doosan (Fanuc) | Sub program call |
| DMG Mori MAPPS (Fanuc) | Sub-program call in NC memory |
| Mazak (EIA) | EIA → EIA Subprogram call |
| Okuma OSP | Subprogram call (Lathes & Mills) |
| Brother Speedio | Subprogram call |
| Heidenhain TNC (ISO) | Machine open contours completely |
| LinuxCNC Tormach | Fanuc style subprogram call |
| Mach3 Mach4 | Subprogram call |
| Centroid CNC12 Acorn | Call subprogram |
| Hurco WinMax (NC) | Subprogram call |
| Fadal | Execute subprogram |
| Swiss (Citizen Star) | Subprogram call |
Every M-code for Mitsubishi M70 M80 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 Mitsubishi M70 M80 M-codes