# LinuxCNC M48

Instructions · `M48` · verification: source checked

M48 is a LinuxCNC M-code that enables the spindle speed and feed rate override controls. M49 disables both controls. The command also takes an optional $ parameter to determine which spindle it operates on.

## Specification

| Property | Value |
|---|---|
| Language | gcode |
| Code | M48 |
| Group | speed and feed override control |
| Dialect | LinuxCNC |

### Parameters

| Name | Description |
|---|---|
| $ | Optional parameter that determines which spindle the command operates on. |

## Connected

- Related: [LinuxCNC M49](https://machineschema.com/instruction/mcode-m49.md)

## Study notes

- It is OK to enable or disable the override controls when they are already enabled or disabled.
- The feed and spindle speed override controls can be toggled individually with M50 (feed) and M51 (spindle speed).
- M2 and M30 program end set the feed and speed overrides to ON, like M48.
- M70 saves the speed override (M51) and feed override (M50) settings as part of modal state.

## Sources

1. [M-Codes](https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m48-m49) (accessed 2026-10-26)

---

Source page: https://machineschema.com/instruction/mcode-m48  
JSON: https://machineschema.com/instruction/mcode-m48.json  
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite Machine Schema and the original sources.
