M198: External subprogram call (USB/card)
Calls a subprogram stored in external memory (CF card, USB, network) on compatible Fanuc/Haas controls.
For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.
- Family
- Subprograms
- Machine
- Milling, Turning, Mill-turn
- Risk
- Medium
- Example
- M198 P1234 (Fanuc) / M198 P1234 (Haas)
M198 P1234 (Fanuc) / M198 P1234 (Haas)Parameters
- P
- Número del programa externo (USB, tarjeta o red) que se llama.
Machine: Milling, Turning, Mill-turnRisk: MediumManufacturer: Mazak
Fanuc · Haas
- Fanuc: The program must be in the correct directory on external memory.
- Haas: Haas is equivalent to calling a USB/network share program.
- Haas: Mazak can use M198/M199 depending on control and version.
Other codes in Subprograms
See the full list of G and M codesFrequently Asked Questions (FAQ)
What does M198 mean in a CNC program?
Calls a subprogram stored in external memory (CF card, USB, network) on compatible Fanuc/Haas controls. In the catalogue it appears as "External subprogram call (USB/card)", within the Subprograms family.
Can you give me an example of M198?
M198 P1234 (Fanuc) / M198 P1234 (Haas) — Calls a subprogram stored in external memory (CF card, USB, network) on compatible Fanuc/Haas controls.
Which machines use M198?
M198 is used in: Milling, Turning, Mill-turn.
What should you watch out for with M198?
Medium risk: it rarely breaks anything on its own, but a wrong value shows up on the part. Check the block before running the batch.
Related tools
CNC G-code Simulator
CNC IDE: editing with G/M tooltips, line inspector, conversion between controls and 2D/3D toolpath.
CNC Alarms Guide
CNC Alarms and Solutions Guide. Enter the error code or symptom to find the cause and how to repair it at the machine.
Calculate cycle time
Estimate CNC turning and milling cycle time from G-code. Calculate parts per hour with a breakdown of cutting, rapids, canned cycles and tool changes.