Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to call the subprogram for repeated drilling.
CNC Programming
M98 P[1]Attempts:
3 left
💡 Hint
Common Mistakes
Using M97 instead of M98 to call the subprogram.
Forgetting the P before the subprogram number.
Using the wrong subprogram number.
✗ Incorrect
M98 P200 calls the subprogram with program number 200, which contains the repeated drilling pattern.
2fill in blank
mediumComplete the code to repeat the subprogram 5 times.
CNC Programming
M98 P200 [1]5
Attempts:
3 left
💡 Hint
Common Mistakes
Using R instead of L for repeat count.
Omitting the repeat count letter.
Using an invalid letter before the number.
✗ Incorrect
The L word specifies the number of repetitions for the subprogram call. M98 P200 L5 repeats it 5 times.
3fill in blank
hardFix the error in the subprogram call to repeat drilling 3 times.
CNC Programming
M98 P[1] L3Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong subprogram number.
Forgetting the P before the number.
Using a subprogram number that does not exist.
✗ Incorrect
The subprogram number must be 200 to match the drilling pattern program. M98 P200 L3 repeats it 3 times.
4fill in blank
hardFill in the blank to define a subprogram that drills a hole at the current XY position.
CNC Programming
O[1] (Drilling subprogram) G81 Z-5 R1 F100 G80 M99
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong subprogram number.
Omitting the M99 to end the subprogram.
✗ Incorrect
O200 defines the subprogram number 200. The G81 drilling cycle drills at the current position.
5fill in blank
hardFill all three blanks to create a loop that calls the drilling subprogram 3 times with X positions 10, 20, and 30.
CNC Programming
N10 G0 X[1] Y10 M98 P200 L1 N20 G0 X[2] Y10 M98 P200 L1 N30 G0 X[3] Y10 M98 P200 L1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same X coordinate for all calls.
Using an X coordinate outside the hole positions.
Forgetting to call the subprogram after moving.
✗ Incorrect
The loop moves to X10, X20, and X30 positions respectively, calling the drilling subprogram each time once.
