Home › M-codes › Haas NGC › M42
M42 Spindle high gear override / Spindle high gear
Haas NGC M-code · Mill, Lathe
On mills: Spindle high gear override
Forces the spindle into high gear on machines with a gearbox.
Format
M42
How it works
Modal, until M41 or a speed change that needs a new gear.
Example program
T2 M06 (SMALL END MILL)
M42 (HIGH GEAR)
S6000 M03 (SPINDLE ON)
M42 (HIGH GEAR)
S6000 M03 (SPINDLE ON)
Example is in inch. Check offsets and clearances first.
Watch out for
- Only on machines with a two speed gearbox.
On lathes: Spindle high gear
Selects high gear on machines with a gearbox. Gives higher RPM for small diameters and finishing.
Format
M42
How it works
Modal until M41.
Example program
M42 (HIGH GEAR)
G96 S600 M03 (CSS 600 SFM)
G01 Z-1. F.006 (FINISH CUT)
G96 S600 M03 (CSS 600 SFM)
G01 Z-1. F.006 (FINISH CUT)
Example is in inch. Check offsets and clearances first.
Watch out for
- Select the gear before the spindle start so it does not shift mid cut.
Related codes
M42 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | High gear range |
| 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 Haas NGC 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 Haas NGC M-codes