Bird
Raised Fist0
CNC Programmingscripting~10 mins

Depth of cut and step-over in CNC Programming - Step-by-Step Execution

Choose your learning style10 modes available
Concept Flow - Depth of cut and step-over
Start CNC Operation
↓
Set Depth of Cut
↓
Set Step-Over
↓
Begin Cutting Pass
↓
Cut to Depth
↓
Move Step-Over
↓
Check if Area Complete?
No→Repeat Cutting Pass
Yes↓
End Operation
This flow shows how CNC cutting uses depth of cut and step-over to remove material layer by layer until the area is fully machined.
Execution Sample
CNC Programming
depth_of_cut = 2.0  # mm
step_over = 1.0      # mm
material_thickness = 6.0  # mm
current_depth = 0.0

while current_depth < material_thickness:
    current_depth += depth_of_cut
    print(f"Cutting at depth {current_depth} mm")
    print(f"Moving step-over by {step_over} mm")
This code simulates cutting a material 6 mm thick by removing 2 mm depth each pass and moving 1 mm sideways after each cut.
Execution Table
Iterationcurrent_depth (mm)Condition (current_depth < 6.0)ActionOutput
10.0 + 2.0 = 2.00.0 < 6.0 = TrueCut at 2.0 mm, move 1.0 mm step-overCutting at depth 2.0 mm Moving step-over by 1.0 mm
22.0 + 2.0 = 4.02.0 < 6.0 = TrueCut at 4.0 mm, move 1.0 mm step-overCutting at depth 4.0 mm Moving step-over by 1.0 mm
34.0 + 2.0 = 6.04.0 < 6.0 = TrueCut at 6.0 mm, move 1.0 mm step-overCutting at depth 6.0 mm Moving step-over by 1.0 mm
46.06.0 < 6.0 = FalseStop cutting
💡 At iteration 4, current_depth 6.0 is not less than material_thickness 6.0, so loop stops.
Variable Tracker
VariableStartAfter 1After 2After 3After 4 (exit)
current_depth0.02.04.06.06.0
depth_of_cut2.02.02.02.02.0
step_over1.01.01.01.01.0
Key Moments - 2 Insights
Why does the loop stop without current_depth exceeding material thickness?
The loop condition checks if current_depth is less than material_thickness before adding depth_of_cut. At iteration 4, current_depth is 6.0 which is equal to material_thickness, so the loop stops before adding 2.0 again (see execution_table row 4).
What is the difference between depth of cut and step-over?
Depth of cut is how deep the tool cuts into the material vertically each pass. Step-over is how far the tool moves sideways horizontally after each cut to cover the whole area (see execution_table outputs).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the value of current_depth after iteration 2?
A4.0 mm
B2.0 mm
C6.0 mm
D8.0 mm
💡 Hint
Check the 'current_depth (mm)' column for iteration 2 in the execution_table.
At which iteration does the loop condition become false and stop the cutting?
AIteration 3
BIteration 2
CIteration 4
DIteration 5
💡 Hint
Look at the 'Condition' column in the execution_table where it becomes False.
If the depth_of_cut was changed to 3.0 mm, how many cutting passes would be needed to reach 6.0 mm thickness?
A3 passes
B2 passes
C1 pass
D4 passes
💡 Hint
Think about how many times 3.0 mm fits into 6.0 mm, referencing the variable_tracker for current_depth changes.
Concept Snapshot
Depth of cut is how deep the tool cuts vertically each pass.
Step-over is how far the tool moves sideways after each cut.
Cutting repeats until total depth reaches material thickness.
Adjust depth and step-over to balance speed and finish quality.
Loop stops when depth reaches or exceeds material thickness.
Full Transcript
This lesson shows how CNC machines cut material layer by layer using two key settings: depth of cut and step-over. Depth of cut controls how deep the tool cuts into the material each pass, while step-over controls how far the tool moves sideways to cover the area. The example code simulates cutting a 6 mm thick material by removing 2 mm depth each pass and moving 1 mm sideways after each cut. The execution table traces each pass, showing current depth increasing by 2 mm until it reaches 6 mm, then stopping. The variable tracker shows how current_depth changes after each iteration. Key moments clarify why the loop stops exactly at the material thickness and the difference between depth of cut and step-over. The quiz tests understanding of these values and loop behavior. This visual step-by-step helps beginners see how CNC cutting progresses in layers and moves sideways to finish the job.

Practice

(1/5)
1. What does the depth of cut control in CNC machining?
easy
A. How fast the tool moves along the path
B. How deep the tool cuts into the material each pass
C. The speed of the spindle rotation
D. The temperature of the cutting tool

Solution

  1. Step 1: Understand depth of cut meaning

    Depth of cut means how far down the tool goes into the material per pass.
  2. Step 2: Match with options

    How deep the tool cuts into the material each pass matches this definition exactly, others describe different parameters.
  3. Final Answer:

    How deep the tool cuts into the material each pass -> Option B
  4. Quick Check:

    Depth of cut = tool depth per pass [OK]
Hint: Depth of cut = vertical cut depth per pass [OK]
Common Mistakes:
  • Confusing depth of cut with feed rate
  • Mixing depth of cut with spindle speed
  • Thinking depth of cut controls sideways movement
2. Which of the following is the correct way to specify a step-over of 0.5 mm in a CNC program line?
easy
A. STEP_OVER 0.5
B. STEP_OVER = 0.5
C. STEP_OVER(0.5)
D. STEP_OVER:0.5

Solution

  1. Step 1: Identify common CNC parameter syntax

    CNC programs often use keyword followed by value without symbols for parameters.
  2. Step 2: Compare options

    STEP_OVER 0.5 uses keyword and value separated by space, which is standard. Others use symbols not typical in CNC code.
  3. Final Answer:

    STEP_OVER 0.5 -> Option A
  4. Quick Check:

    Parameter syntax = keyword + space + value [OK]
Hint: Parameters usually use space, not symbols, between name and value [OK]
Common Mistakes:
  • Adding equals sign or parentheses incorrectly
  • Using colon instead of space
  • Confusing step-over syntax with programming languages
3. Given a CNC program snippet:
DEPTH_OF_CUT 2.0
STEP_OVER 1.0
MILLING_PASS

What will be the depth and sideways move per pass?
medium
A. Depth 1.0 mm, Step-over 2.0 mm
B. Depth 1.0 mm, Step-over 1.0 mm
C. Depth 2.0 mm, Step-over 2.0 mm
D. Depth 2.0 mm, Step-over 1.0 mm

Solution

  1. Step 1: Read parameter values

    DEPTH_OF_CUT is set to 2.0 mm, STEP_OVER is set to 1.0 mm.
  2. Step 2: Match values to depth and step-over

    Depth of cut = 2.0 mm, step-over = 1.0 mm as per the program lines.
  3. Final Answer:

    Depth 2.0 mm, Step-over 1.0 mm -> Option D
  4. Quick Check:

    DEPTH_OF_CUT=2.0, STEP_OVER=1.0 [OK]
Hint: Match parameter names to values directly [OK]
Common Mistakes:
  • Swapping depth and step-over values
  • Ignoring parameter names and guessing
  • Assuming default values instead of given
4. A CNC program uses DEPTH_OF_CUT 3.0 and STEP_OVER 1.5 but the tool only cuts 1.5 mm deep per pass. What is the likely error?
medium
A. The machine overrides depth to 1.5 mm for safety
B. The step-over value is too large and limits depth
C. The depth of cut parameter is ignored due to syntax error
D. The tool diameter is smaller than depth of cut

Solution

  1. Step 1: Analyze parameter effect

    If depth of cut is set to 3.0 but actual cut is 1.5, likely the program did not apply 3.0 correctly.
  2. Step 2: Consider syntax errors

    A syntax error in the depth of cut line can cause the machine to ignore it and use default or previous value (1.5).
  3. Final Answer:

    The depth of cut parameter is ignored due to syntax error -> Option C
  4. Quick Check:

    Syntax error causes parameter ignore [OK]
Hint: Check syntax if parameters don't apply as expected [OK]
Common Mistakes:
  • Blaming step-over for depth issues
  • Assuming machine overrides without checking code
  • Ignoring syntax errors in program
5. You want to machine a 10 mm deep pocket with a tool that can safely cut 2 mm depth per pass and 40% step-over of its 5 mm diameter. How many passes and what step-over distance should you program?
hard
A. 5 passes, 2 mm step-over
B. 2 passes, 2 mm step-over
C. 5 passes, 2.5 mm step-over
D. 5 passes, 0.4 mm step-over

Solution

  1. Step 1: Calculate number of passes

    Depth per pass = 2 mm, total depth = 10 mm, so passes = 10 / 2 = 5 passes.
  2. Step 2: Calculate step-over distance

    Step-over = 40% of 5 mm diameter = 0.4 * 5 = 2 mm.
  3. Final Answer:

    5 passes, 2 mm step-over -> Option A
  4. Quick Check:

    Passes = 10/2=5, Step-over = 0.4*5=2 mm [OK]
Hint: Divide depth by cut depth; multiply diameter by step-over % [OK]
Common Mistakes:
  • Confusing step-over percentage with depth
  • Calculating passes incorrectly
  • Using wrong tool diameter for step-over
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