Bird
Raised Fist0
CNC Programmingscripting~5 mins

Coolant control (M08, M09) in CNC Programming

Choose your learning style10 modes available
Introduction

Coolant helps keep tools and workpieces cool during machining. M08 turns coolant on, and M09 turns it off.

When starting a cutting operation to cool the tool and workpiece.
When finishing a cut and you want to stop the coolant flow.
To prevent overheating and improve tool life during drilling or milling.
When switching between different machining steps that require coolant on or off.
To keep the work area clean by controlling coolant spray.
Syntax
CNC Programming
M08 ; Turn coolant ON
M09 ; Turn coolant OFF

M08 activates the coolant system.

M09 stops the coolant flow.

Examples
This command turns the coolant on before starting a cut.
CNC Programming
M08
This command turns the coolant off after finishing a cut.
CNC Programming
M09
Starts cutting with coolant on, then moves to a new position, and finally turns coolant off.
CNC Programming
G01 X50 Y50 F100 M08
G01 X100 Y100 F100
M09
Sample Program

This program turns coolant on before cutting moves and turns it off at the end.

CNC Programming
O1000 (Sample program for coolant control)
G21 (Set units to mm)
G90 (Absolute positioning)
M08 (Turn coolant ON)
G01 X50 Y50 F200 (Cutting move)
G01 X100 Y100 F200 (Cutting move)
M09 (Turn coolant OFF)
M30 (End program)
OutputSuccess
Important Notes

Always turn coolant off (M09) at the end to avoid wasting coolant.

Some machines may have different coolant commands; check your machine manual.

Coolant helps reduce tool wear and improves surface finish.

Summary

M08 turns coolant on to cool tools and workpieces.

M09 turns coolant off to stop coolant flow.

Use these commands to protect tools and improve machining quality.

Practice

(1/5)
1. What does the CNC command M08 do in a machining program?
easy
A. Starts the spindle rotation
B. Turns the coolant off to stop coolant flow
C. Turns the coolant on to cool the tool and workpiece
D. Stops the spindle rotation

Solution

  1. Step 1: Understand the function of M08

    The M08 command is used to turn coolant on in CNC machining to cool tools and workpieces.
  2. Step 2: Compare with other commands

    M09 is used to turn coolant off, spindle commands are different (M03, M05).
  3. Final Answer:

    Turns the coolant on to cool the tool and workpiece -> Option C
  4. Quick Check:

    M08 = Coolant ON [OK]
Hint: M08 means coolant ON, M09 means coolant OFF [OK]
Common Mistakes:
  • Confusing M08 with M09
  • Thinking M08 controls spindle
  • Mixing coolant commands with feed rate commands
2. Which of the following is the correct syntax to turn coolant off in a CNC program?
easy
A. M10
B. M08
C. M07
D. M09

Solution

  1. Step 1: Identify the command for coolant off

    M09 is the standard CNC command to turn coolant off and stop coolant flow.
  2. Step 2: Verify other options

    M08 turns coolant on, M07 and M10 are unrelated or non-standard for coolant control.
  3. Final Answer:

    M09 -> Option D
  4. Quick Check:

    M09 = Coolant OFF [OK]
Hint: M09 always stops coolant flow in CNC programs [OK]
Common Mistakes:
  • Using M08 instead of M09 to stop coolant
  • Confusing M07 with coolant off
  • Assuming M10 controls coolant
3. Given the following CNC program snippet, what is the coolant state after line 3?
N10 M08
N20 G01 X50 Y50 F100
N30 M09
medium
A. Coolant is OFF
B. Coolant is ON
C. Coolant state is unchanged
D. Coolant cycles ON and OFF rapidly

Solution

  1. Step 1: Analyze line 1 (N10 M08)

    M08 turns coolant ON at line 10.
  2. Step 2: Analyze line 3 (N30 M09)

    M09 turns coolant OFF at line 30, which is after line 20.
  3. Final Answer:

    Coolant is OFF -> Option A
  4. Quick Check:

    Last coolant command is M09 = OFF [OK]
Hint: Last coolant command controls coolant state [OK]
Common Mistakes:
  • Ignoring the M09 command at line 30
  • Assuming coolant stays ON after M09
  • Confusing line numbers with command effect
4. Identify the error in this CNC program snippet related to coolant control:
N10 M09
N20 G01 X100 Y100 F200
N30 M08
medium
A. Coolant is turned on after machining moves start
B. Coolant is turned off before machining starts
C. M09 and M08 commands are reversed
D. No error, coolant control is correct

Solution

  1. Step 1: Check coolant commands order

    M09 at N10 turns coolant off before machining moves.
  2. Step 2: Check machining and coolant timing

    Machining move at N20 happens with coolant off, then coolant turns on at N30, which is after machining started.
  3. Final Answer:

    Coolant is turned on after machining moves start -> Option A
  4. Quick Check:

    Coolant ON should be before machining moves [OK]
Hint: Turn coolant ON before machining moves start [OK]
Common Mistakes:
  • Turning coolant on after machining moves
  • Assuming coolant off at start is always correct
  • Ignoring command sequence importance
5. You want to write a CNC program that starts coolant before cutting, stops coolant after cutting, and ensures coolant is off at program end. Which sequence of commands is correct?
hard
A. M09 before cutting moves, M09 after cutting moves, M08 at program end
B. M08 before cutting moves, M09 after cutting moves, M09 at program end
C. M08 before cutting moves, M08 after cutting moves, M09 at program end
D. M09 before cutting moves, M08 after cutting moves, M08 at program end

Solution

  1. Step 1: Turn coolant ON before cutting

    M08 must be used before cutting moves to cool tools and workpiece.
  2. Step 2: Turn coolant OFF after cutting and at program end

    M09 stops coolant flow after cutting and ensures coolant is off at program end.
  3. Final Answer:

    M08 before cutting moves, M09 after cutting moves, M09 at program end -> Option B
  4. Quick Check:

    Coolant ON before cut, OFF after cut and end [OK]
Hint: Always end program with coolant OFF (M09) [OK]
Common Mistakes:
  • Starting with coolant OFF (M09) before cutting
  • Leaving coolant ON at program end
  • Using M08 to turn coolant off
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard