M42 High gear range
Fanuc M-code · Mill and lathe
Selects the high spindle gear range on machines with a gearbox.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
M42
How it works
Stays until another gear range.
Example program
M05 (SPINDLE STOP)
M42 (HIGH GEAR, BUILDER CODE)
G97 S2500 M03 (HIGH RPM FINISHING)
M42 (HIGH GEAR, BUILDER CODE)
G97 S2500 M03 (HIGH RPM FINISHING)
Example is in inch. Check offsets and clearances first.
Watch out for
- Gear range numbering varies by builder, and some go up to M44.
Related codes
M42 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Spindle high gear override |
| Okuma OSP | Spindle gear range 2 |
| Centroid CNC12 Acorn | Select medium low gear range, macro |
| Hurco WinMax (NC) | Two touch probing |
| Fadal | High range RPM |
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 M42 in the app All Fanuc M-codes