CNC Machinist Calculator Ultra

Home › M-codes › Fanuc › M42

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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M41 · M03

M42 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCSpindle high gear override
Okuma OSPSpindle gear range 2
Centroid CNC12 AcornSelect medium low gear range, macro
Hurco WinMax (NC)Two touch probing
FadalHigh 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

App Store Google Play