M-code reference

M198 M-Code: Subprogram Call from External Memory

Subprogram Call from External Memory — Fanuc: calls a subprogram stored on a memory card or data server instead of the internal memory. It is used for very large programs.

By cnccode · Updated
PropertyValue
CodeM198
FunctionSubprogram Call from External Memory
Used onMills and lathes

What does M198 do?

Fanuc: calls a subprogram stored on a memory card or data server instead of the internal memory. It is used for very large programs.

M198 example

Example
M198 P1234

Tips

  • Requires the data-server or memory-card option.

M-codes vary between machine builders. Codes from M00 to M09, M30 and M98/M99 are nearly universal; most others are defined by the machine builder. Always check the M-code list in your machine manual.

Most-used M-codes

CodeFunction
M00Program Stop
M01Optional Stop
M03Spindle On Clockwise
M04Spindle On Counter-Clockwise
M05Spindle Stop
M06Tool Change
M08Flood Coolant On
M09Coolant Off
M30Program End and Rewind
M98Subprogram Call
M99Subprogram Return / Loop

Frequently asked questions

What does M198 mean on a CNC machine?
M198 is Subprogram Call from External Memory. Fanuc: calls a subprogram stored on a memory card or data server instead of the internal memory. It is used for very large programs.