Bird
0
0
CNC Programmingscripting~10 mins

Contour milling with line segments in CNC Programming - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to move the tool to the start point of the contour.

CNC Programming
G00 X[1] Y0
Drag options to blanks, or click blank then click option'
A10
B0
C5
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong X coordinate for the start point.
Using G01 instead of G00 for rapid positioning.
2fill in blank
medium

Complete the code to mill a straight line segment along the Y-axis.

CNC Programming
G01 X10 Y[1] F100
Drag options to blanks, or click blank then click option'
A20
B0
C30
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong Y coordinate for the end point.
Forgetting to specify the feed rate.
3fill in blank
hard

Fix the error in the code to correctly mill the next line segment back to X=0.

CNC Programming
G01 X[1] Y20 F100
Drag options to blanks, or click blank then click option'
A10
B20
C0
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong X coordinate causing the tool to move incorrectly.
Omitting the feed rate.
4fill in blank
hard

Fill both blanks to complete the code for milling the final line segment down to the start Y position.

CNC Programming
G01 X[1] Y[2] F100
Drag options to blanks, or click blank then click option'
A0
C10
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect coordinates for the final move.
Forgetting the feed rate.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping line segment start points to end points.

CNC Programming
segments = { [1]: [2], [3]: (0, 0) }
Drag options to blanks, or click blank then click option'
A(0, 0)
B(10, 0)
C(10, 20)
D(0, 20)
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect coordinate pairs.
Mixing up keys and values.