M-Code

G-Code & M-Code Reference

M00Program Stop

Unconditional stop, press cycle start to continue

Haas: ✓Fanuc: ✓
M01Optional Stop

Stops only if optional stop is ON

Haas: ✓Fanuc: ✓
M02Program End

End program, no rewind

Haas: ✓Fanuc: ✓
M03Spindle On CW

Spindle clockwise at S speed

Haas: ✓Fanuc: ✓
M04Spindle On CCW

Spindle counter-clockwise

Haas: ✓Fanuc: ✓
M05Spindle Stop

Stop spindle rotation

Haas: ✓Fanuc: ✓
M06Tool Change

Execute automatic tool change

Haas: ✓Fanuc: ✓
M07Mist Coolant On

Through-spindle mist or shower

Haas: ✓Fanuc: ✓
M08Flood Coolant On

Flood coolant on

Haas: ✓Fanuc: ✓
M09Coolant Off

All coolant off

Haas: ✓Fanuc: ✓
M10Pallet Clamp

Haas: 4th axis brake on

Haas: ✓Fanuc: Varies
M11Pallet Unclamp

Haas: 4th axis brake off

Haas: ✓Fanuc: Varies
M19Spindle Orient

Orient spindle to specific angle

Haas: ✓Fanuc: ✓
M30Program End & Rewind

End program, rewind to start

Haas: ✓Fanuc: ✓
M88TSC Coolant On

Haas through-spindle coolant

Haas: ✓Fanuc: —
M89TSC Coolant Off

Haas TSC off

Haas: ✓Fanuc: —
M97Local Sub Call

Haas local subroutine call

Haas: ✓Fanuc: —
M98Sub Program Call

Call external subroutine

Haas: ✓Fanuc: ✓
M99Sub Program Return

Return from subroutine or loop

Haas: ✓Fanuc: ✓