CNC Coolant & Chip Management: M07, M08, M09 and Smart Filtration Systems Explained
Coolant and chip management are often overlooked, yet they are essential for precision machining, tool life, and machine longevity.
Whether it’s mist coolant (M07), flood coolant (M08), or coolant off (M09), these M-codes define how efficiently your CNC handles heat and chip evacuation.
Let’s explore real G-code examples, pressure control systems, and modern smart filtration technologies.
📌 1. Overview of CNC Coolant M-Codes
| M-Code | Function | Description |
|---|---|---|
| M07 | Mist coolant ON | Light aerosol coolant — used for finishing |
| M08 | Flood coolant ON | Standard coolant pump activation |
| M09 | Coolant OFF | Deactivates all coolant systems |
Most CNC machines use relay-controlled outputs connected to coolant pumps or valves.
Always verify the correct M-code mapping in the machine’s PLC ladder or I/O table.
📌 2. Fanuc Example — Coolant Control
%
O0100 (FANUC COOLANT EXAMPLE)
G90 G17 G21 G40 G80 G54
T01 M06
M08 (COOLANT ON)
G01 Z-20. F150
G04 P5.
M09 (COOLANT OFF)
M30
%
M08 turns on the flood coolant, and M09 shuts it off before program end.
You can also assign custom coolant functions via M-code macros (M-code B).
📌 3. Haas Example — With Mist and Flood Coolant
%
O0200 (HAAS COOLANT CONTROL)
G90 G17 G21
T03 M06
M07 (MIST ON)
G04 P10.
M08 (FLOOD ON)
G81 X0 Y0 Z-15. R2. F200
G80
M09
M30
%
Haas NGC machines can run M07 and M08 simultaneously or individually depending on coolant settings.
Haas also supports “Through-Spindle Coolant (TSC)” via M88 (ON) and M89 (OFF).
📌 4. Siemens Example — Coolant & Air Blast
M08 (FLOOD ON)
WAIT SEC=2
M73 (AIR BLAST ON)
G01 Z-25. F200
M09 (ALL OFF)
Siemens controls can assign custom outputs to M-codes (e.g., M73 for air blast).
Configuration is done in PLC variable table (DB9 → Output bits).
📌 5. Heidenhain Example
BEGIN PGM COOLANT MM
M08 ; COOLANT ON
CYCL DEF 200 DRILLING Q201=-10 Q206=+200
M09 ; COOLANT OFF
END PGM
Heidenhain uses the same M-code syntax, often tied to programmable digital outputs (DO) for coolant control.
📌 6. Mazak Example
M08 ; FLOOD COOLANT ON
M12 ; THROUGH SPINDLE COOLANT ON
G81 Z-25. F100
M09 ; COOLANT OFF
M13 ; SPINDLE REVERSE + COOLANT ON
Mazak supports multiple simultaneous coolant types — flood, mist, through-spindle, and air blast.
📌 7. High-Pressure Coolant (HPC)
| Parameter | Description |
|---|---|
| Pressure range | 30–100 bar typical |
| Function | Improves chip evacuation & tool cooling |
| Activation code | Often M88 / M89 or M50 / M51 |
| Applications | Deep hole drilling, tough alloys (Ti, Inconel) |
Example:
M88 (HIGH PRESSURE ON)
G83 Z-100. Q5. R5. F100
M89 (HIGH PRESSURE OFF)
📌 8. Smart Coolant Flow Control Using Macros
Fanuc macro for conditional coolant control:
#5003 = 65. (SPINDLE LOAD)
IF [#5003 GT 70.] THEN M08
IF [#5003 LT 50.] THEN M09
Automatically adjusts coolant flow based on spindle load — ideal for adaptive cutting.
📌 9. Chip Conveyor & Auger Control (M31 / M33)
| M-Code | Function | Description |
|---|---|---|
| M31 | Chip conveyor ON | Activates belt or auger |
| M33 | Chip conveyor OFF | Stops chip removal system |
| M62 / M63 | Output ON/OFF | Generic I/O control for custom devices |
Example:
M08
G01 Z-20. F150
M31 (CHIP CONVEYOR ON)
G04 P10.
M33 (CHIP CONVEYOR OFF)
M09
Use timed activation to avoid excess energy use.
📌 10. Example — Combined Coolant & Conveyor Program
%
O6001 (COOLANT & CHIP CONTROL)
G90 G17 G21 G40 G80 G54
T01 M06
M08
G01 Z-20. F150
M31
G04 P15.
M09
M33
M30
%
Turns on coolant and conveyor simultaneously during machining cycle — disables both before program end.
📌 11. Coolant Filtration & Monitoring Systems
| System | Function | Example |
|---|---|---|
| Cyclone filter | Removes suspended particles | Fanuc coolant tank |
| Magnetic drum | Captures ferrous chips | Haas VF-series |
| Bag filters | Fine filtration < 20 microns | Siemens HMI options |
| Automatic backflush | Reverses flow for self-cleaning | Heidenhain EcoFilter |
Clean coolant means longer tool life, smoother finishes, and fewer pump failures.
📌 12. Coolant Temperature Control
| Control Type | Range | Benefit |
|---|---|---|
| Thermo-controlled chiller | ±0.1 °C | Stabilizes thermal expansion |
| Heat exchanger | ±0.5 °C | Removes spindle heat |
| Coolant sensor feedback | Monitors viscosity and level | Prevents dry running |
📌 13. Macro Example — Automatic Coolant Level Alert
#100 = 20. (MINIMUM COOLANT LEVEL %)
IF [#5005 LT #100] THEN #3006 = 1 (REFILL COOLANT)
Reads analog input or sensor data to display a refill message automatically.
📌 14. Real-World Optimization Tips
- Use high-pressure coolant only when necessary — it consumes more energy.
- Clean chip conveyors weekly to prevent motor overload.
- Replace or clean filters every 200 operating hours.
- Monitor coolant pH (8–9) to avoid corrosion.
- Maintain coolant concentration with refractometer readings.
📌 15. Smart Industry 4.0 Integration
- MTConnect / OPC-UA tags transmit coolant temperature and pump load data.
- AI-based flow controllers optimize coolant usage per material type.
- Predictive chip conveyor monitoring detects jam patterns automatically.
- IoT-connected chillers sync temperature with spindle speed data.
📌 16. Future Trends (2025–2030)
- Self-cleaning nano-filtration systems with AI control.
- Coolant recycling automation — zero waste machining.
- Thermal-adaptive coolant routing using live thermal mapping.
- Smart conveyors that auto-reverse on jam detection.
- CO₂ and minimum-quantity lubrication (MQL) systems replacing flood coolant.
✅ Conclusion
Proper coolant and chip management directly affects accuracy, surface finish, and tool longevity.
By mastering M07, M08, and M09 — and integrating smart filtration and automation — CNC shops can achieve cleaner, cooler, and more sustainable machining for the Industry 4.0 era.
Leave a comment