Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong X coordinate for the start point.
Using G01 instead of G00 for rapid positioning.
✗ Incorrect
The tool must move rapidly to X=10 to start the contour milling at the correct position.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong Y coordinate for the end point.
Forgetting to specify the feed rate.
✗ Incorrect
The line segment is milled from Y=0 to Y=20 at X=10 with feed rate 100.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong X coordinate causing the tool to move incorrectly.
Omitting the feed rate.
✗ Incorrect
The tool must move back to X=0 at Y=20 to complete the contour segment.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect coordinates for the final move.
Forgetting the feed rate.
✗ Incorrect
The tool moves to X=0 and Y=0 to finish the contour milling at the start point.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect coordinate pairs.
Mixing up keys and values.
✗ Incorrect
The dictionary maps (10, 0) to (0, 20) and (10, 20) to (0, 0) representing line segments of the contour.
