CNC Machinist Calculator Ultra

Home › M-codes › Fanuc › M198

M198 Subprogram call from external device

Fanuc M-code · Mill and lathe

Calls a subprogram stored on the memory card, USB, data server or other external device instead of control memory.

Format

M198 P [L]

Addresses

AddressWhat it does
PFile number or program number on the external device
LRepeat count

How it works

Non-modal.

Example program

G00 X3. Z1. (CLEAR)
M198 P1234 (RUN O1234 FROM MEMORY CARD)
G28 U0 W0 (HOME)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M98 · M99

M198 on other controls

The same number can mean something different on another control.

ControlMeaning
DMG Mori MAPPS (Fanuc)Subprogram call in external I or O device
Mazak (EIA)EIA → MAZATROL program call
Mitsubishi M70 M80Subprogram call from external device

Every M-code for Fanuc 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 Fanuc M-codes

App Store Google Play