M08 turns on flood coolant. It is called once the tool is about to cut and switched off with M09 before the program ends or a tool change. Some machines add M07 for mist coolant.
Format
M09 (coolant off)
How it works
- M08 starts the flood pump; M09 stops all coolant.
- Turn coolant on after the spindle starts and off before the spindle stops.
- M07 is mist coolant on machines that support it.
Example
M08 (coolant on)
G01 Z-0.25 F5.0
FAQ
Should M08 come before or after the spindle start command? Common practice is to start the spindle with M03 or M04 first, then turn on coolant with M08, so coolant isn’t wasted on a stationary tool and the cutting edge is already spinning before coolant hits it.
Is M08 the same as through-spindle coolant? No, M08 typically controls flood coolant delivered externally through nozzles at the tool. Through-spindle coolant usually has its own separate M-code, since it requires a different plumbing path through the spindle itself.
Related: the Coolant Selection Guide and Coolant & Lubrication calculators.
When to use it
M08 turns on flood coolant, and it is normally called just before the tool starts to cut and shut off with M09 when the cut is finished. Running coolant during rapid moves wastes it and can spray chips around, so many programs place M08 after the tool is positioned at the start of the cut.
Practical notes
Some machines use M07 for mist coolant, and through-spindle coolant is often a different M code, so check the machine manual. Make sure coolant is off before opening the doors for a manual tool change or inspection, and confirm the coolant level and nozzle position before the first cut of a new setup.
