CNC Machinist Calculator Ultra

Home › M-codes › Haas NGC › M12

M12 5th axis brake on / Auto air jet on

Haas NGC M-code · Mill, Lathe

On mills: 5th axis brake on

Clamps the 5th axis brake.

Format

M12

How it works

Modal, until M13.

Example program

M13 (RELEASE THE BRAKE)
G00 B45. (TILT)
M12 (5TH AXIS BRAKE ON)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Auto air jet on

Turns on the optional auto air jet. With S and P it spins the spindle at S RPM with air on for P milliseconds, then turns both off.

Format

M12 [S] [P]

Addresses

AddressWhat it does
SSpindle RPM while the air blows
PAir blast time in milliseconds

How it works

Modal until M13 when used without P.

Example program

M05 (SPINDLE STOP)
M12 S300 P2000 (AIR BLAST 2 SECONDS AT 300 RPM)
M11 (UNCLAMP CHUCK)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M13 · M10 · M112

M12 on other controls

The same number can mean something different on another control.

ControlMeaning
Doosan (Fanuc)Coolject on (upper side)
Mazak (EIA)Milling spindle mode cancel (Turning mode selection)
Okuma OSPMachine m-tool spindle stop
Hurco WinMax (NC)Clamp C axis

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 M12 in the app All Haas NGC M-codes

App Store Google Play