Bird
Raised Fist0
CNC Programmingscripting~20 mins

Coolant control (M08, M09) in CNC Programming - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Coolant Control Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:00remaining
What is the effect of the command M08 in a CNC program?
In CNC programming, what does the command M08 do when executed?
ATurns off the coolant supply to the cutting tool
BTurns on the coolant supply to the cutting tool
CPauses the program until coolant pressure is stable
DIncreases the coolant flow rate by 50%
Attempts:
2 left
💡 Hint
Think about what 'M08' typically controls in CNC machining.
💻 Command Output
intermediate
1:00remaining
What happens when the command M09 is executed in a CNC program?
In CNC programming, what is the result of running the command M09?
ATurns off the coolant supply
BTurns on the coolant supply
CStarts the spindle motor
DStops the spindle motor
Attempts:
2 left
💡 Hint
M09 is often paired with M08. What does it do?
📝 Syntax
advanced
1:30remaining
Identify the correct CNC code snippet to turn coolant on and then off.
Which of the following CNC code snippets correctly turns the coolant on and then off?
A
M09
G01 X10 Y10
M08
B
M08
G01 X10 Y10
M08
C
M08
G01 X10 Y10
M09
D
M09
G01 X10 Y10
M09
Attempts:
2 left
💡 Hint
Coolant should be turned on before cutting and off after.
🔧 Debug
advanced
1:30remaining
Why does this CNC program fail to turn off coolant?
Given this CNC program snippet: M08 G01 X20 Y20 G01 X30 Y30 Why does the coolant remain on after the program runs?
CNC Programming
M08
G01 X20 Y20
G01 X30 Y30
ABecause G01 commands override coolant commands
BBecause M08 is not a valid coolant command
CBecause coolant turns off automatically after G01 moves
DBecause the program never includes M09 to turn off coolant
Attempts:
2 left
💡 Hint
Think about how coolant is turned off in CNC code.
🚀 Application
expert
2:00remaining
How to program coolant control for a drilling cycle with pauses?
You want to program a CNC drilling cycle where coolant turns on before drilling, pauses during tool changes (coolant off), then resumes coolant after tool change. Which sequence correctly achieves this?
A
M08
G81 X10 Y10 Z-5
M09
M06 T2
M08
G81 X20 Y20 Z-5
M09
B
M09
G81 X10 Y10 Z-5
M08
M06 T2
M09
G81 X20 Y20 Z-5
M08
C
M08
M06 T2
G81 X10 Y10 Z-5
M09
G81 X20 Y20 Z-5
M08
D
M06 T2
M08
G81 X10 Y10 Z-5
M09
G81 X20 Y20 Z-5
M09
Attempts:
2 left
💡 Hint
Coolant should be on during drilling and off during tool change.

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