M-code reference

M08: Flood coolant on

M08 is flood coolant on. Turns on flood coolant. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What M08 does

M08 turns on the main flood coolant. It is usually written on the first approach move of each tool.

TypeM-code
MachineMill and lathe
GroupCoolant
ModalYes: stays active until replaced by another code from the same group

M08 example

G00 Z5. M08

Approach and start flood coolant.

WordWhat it means here
G00Rapid positioning
Z5.Z axis target or depth
M08Flood coolant on

Codes people confuse with M08

CodeWhat it does instead
M09 Coolant off. Turns all coolant off.
M07 Mist coolant on. Turns on mist (or on some machines, through-spindle) coolant.

Memory hook: M08 on, M09 off: nine is the end of the line.

Other codes in the coolant group

Only one code from a modal group is active at a time. Programming any of these replaces M08.

  • M07 Mist coolant on
  • M09 Coolant off

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: M08

  1. What does M08 do? (Mill and lathe)

  2. Which code: Turns on flood coolant.(Mill and lathe)

  3. What does M09 do? (Mill and lathe)

Show the answers
  1. Turns on flood coolant.
  2. M08
  3. Turns all coolant off.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does M08 mean in CNC programming?
Flood coolant on. Turns on flood coolant.
Is M08 modal?
Yes. M08 belongs to the coolant group and stays active until another code from that group is programmed.
What is the difference between M08 and M09?
M08 (flood coolant on): turns on flood coolant. M09 (coolant off): turns all coolant off. A way to remember it: m08 on, M09 off: nine is the end of the line.
What is the difference between M08 and M07?
M08 (flood coolant on): turns on flood coolant. M07 (mist coolant on): turns on mist (or on some machines, through-spindle) coolant. A way to remember it: m08 on, M09 off: nine is the end of the line.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint