CNC mill · M-code
M08 / M09: coolant on and off
M08 turns flood coolant on and M09 turns it off. Formats below from Haas and LinuxCNC, each from its maker.
Worked example
Coolant on with the length offset, off on the retract. Written for this page in the Haas format.
G43 H01 Z0.1 M08(… cut …)G00 Z1. M09How each control writes it
Haas M08 / M09
One source: Haas Automation, the control's maker
- The coolant level is checked only at program start.
- Haas warns against straight mineral cutting oils, which damage rubber parts of the machine.
Source: Haas Automation, mill M08
LinuxCNC M7 / M8 / M9
One source: the LinuxCNC project, the control's maker
- M7 is mist, M8 flood; M9 turns both off.
Source: LinuxCNC documentation, "M7, M8, M9 Coolant Control" (archived Oct 24, 2026)
No Fanuc row yet: that chapter of the 0i manual has not been read.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.