Bird
0
0
CNC Programmingscripting~20 mins

Pocket milling (rectangular) in CNC Programming - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Pocket Milling Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Output of a simple rectangular pocket milling G-code
What is the final position of the tool after executing this G-code snippet for a rectangular pocket milling?
G90 G00 X0 Y0 Z5
G01 Z-2 F100
G01 X50 Y0 F200
G01 X50 Y30
G01 X0 Y30
G01 X0 Y0
G00 Z5
CNC Programming
G90 G00 X0 Y0 Z5
G01 Z-2 F100
G01 X50 Y0 F200
G01 X50 Y30
G01 X0 Y30
G01 X0 Y0
G00 Z5
AX50 Y30 Z-2
BX0 Y0 Z-2
CX0 Y0 Z5
DX50 Y30 Z5
Attempts:
2 left
💡 Hint
Look at the last move command and the Z height it sets.
🧠 Conceptual
intermediate
1:30remaining
Understanding step-over in rectangular pocket milling
In rectangular pocket milling, what does the term step-over refer to?
AThe distance the tool moves down in Z-axis after each pass
BThe lateral distance the tool moves sideways between passes to cover the pocket area
CThe speed at which the tool moves along the pocket edges
DThe diameter of the cutting tool used
Attempts:
2 left
💡 Hint
Think about how the tool covers the entire rectangular area.
🔧 Debug
advanced
2:30remaining
Identify the error in this rectangular pocket milling G-code
This G-code is intended to mill a rectangular pocket 40mm wide and 20mm deep. What error will occur when running it?
G90 G00 X0 Y0 Z5
G01 Z-20 F100
G01 X40 Y0 F200
G01 X40 Y20
G01 X0 Y20
G01 X0 Y0
G00 Z5
CNC Programming
G90 G00 X0 Y0 Z5
G01 Z-20 F100
G01 X40 Y0 F200
G01 X40 Y20
G01 X0 Y20
G01 X0 Y0
G00 Z5
AThe tool will crash because Z-20 is too deep without incremental steps
BThe feed rate F200 is too slow for XY moves
CThe toolpath is missing a command to start spindle rotation
DNo error, the code will run correctly
Attempts:
2 left
💡 Hint
Consider typical machining practice for depth of cut.
🚀 Application
advanced
2:00remaining
Calculate number of passes for rectangular pocket milling
You want to mill a rectangular pocket 48mm wide using a 10mm diameter tool with a 40% step-over. How many passes are needed to cover the width?
A12 passes
B15 passes
C8 passes
D10 passes
Attempts:
2 left
💡 Hint
Calculate step-over distance and divide pocket width by it, then round up.
📝 Syntax
expert
1:30remaining
Identify the syntax error in this rectangular pocket milling G-code snippet
Which option contains a syntax error that will cause the CNC machine to reject the program?
G90 G00 X0 Y0 Z5
G01 Z-5 F100
G01 X40 Y0 F200
G01 X40 Y20
G01 X0 Y20
G01 X0 Y0
G00 Z5
AG01 X40 Y20
BG01 Z-5 F100
CG00 Z5
DG01 X40 Y0 F
Attempts:
2 left
💡 Hint
Check if all commands have correct syntax and parameters.