Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to move the CNC machine to the origin point.
CNC Programming
G0 X[1] Y0 Z0 Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-zero value moves the machine away from the origin.
Confusing G0 with G1 which is for controlled feed movement.
✗ Incorrect
G0 command moves the machine quickly to the specified coordinates. To move to the origin, X must be 0.
2fill in blank
mediumComplete the code to set the feed rate to 150 mm/min.
CNC Programming
F[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a feed rate too high or too low for the material.
Confusing feed rate with spindle speed.
✗ Incorrect
F command sets the feed rate. To set it to 150 mm/min, use F150.
3fill in blank
hardFix the error in the code to perform a linear cut to X=50, Y=25 at feed rate 100.
CNC Programming
G1 X[1] Y25 F100 Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong X coordinate causes the tool to cut in the wrong place.
Omitting feed rate or using wrong command.
✗ Incorrect
The code moves linearly to X=50, Y=25 at feed rate 100. X must be 50 to match the instruction.
4fill in blank
hardFill both blanks to define a clockwise circular move with radius 10 starting at current position.
CNC Programming
G2 I[1] J[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using negative radius when positive is needed.
Swapping I and J values.
✗ Incorrect
G2 is clockwise arc move. I and J define the center offset from start. Radius 10 on X (I=10), no offset on Y (J=0).
5fill in blank
hardFill all three blanks to create a dictionary that maps axis names to their zero positions.
CNC Programming
{'X': [1], 'Y': [2], 'Z': [3] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using different values for axes when zero is expected.
Using None or negative values incorrectly.
✗ Incorrect
The zero position for all axes is 0, so all values should be 0.
