Home › M-codes › Mitsubishi M70 M80 › M198
M198 Subprogram call from external device
Mitsubishi M70 M80 M-code · Mill and lathe
Calls a subprogram stored on an external device such as a memory card or data server.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
M198 P [L]
Addresses
| Address | What it does |
|---|---|
P | Program number on the device |
L | Repeat count |
How it works
Non-modal.
Example program
G90 G54 G00 X0. Y0. (START)
M198 P5000 (RUN SUB FROM CARD)
G00 Z1. (CLEAR)
M198 P5000 (RUN SUB FROM CARD)
G00 Z1. (CLEAR)
Example is in inch. Check offsets and clearances first.
Watch out for
- Device and folder are set by parameters. Test once in single block.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
M198 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Subprogram call from external device |
| DMG Mori MAPPS (Fanuc) | Subprogram call in external I or O device |
| Mazak (EIA) | EIA → MAZATROL program 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 M198 in the app All Mitsubishi M70 M80 M-codes