Back to GSM Code List

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)
E.g.:
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 codes

Frequently 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