Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to call a subprogram named 'DRILL'.
CNC Programming
M98 [1]Attempts:
3 left
💡 Hint
Common Mistakes
Using M97 instead of M98
Omitting the 'P' before the subprogram number
Using the wrong subprogram number
✗ Incorrect
The code 'M98 P2000' calls the subprogram with number 2000.
2fill in blank
mediumComplete the code to define a subprogram starting at O2000.
CNC Programming
O[1] (Start of subprogram)
...
M99 (End of subprogram)Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong subprogram number
Omitting the 'O' before the number
Placing M99 before the subprogram code
✗ Incorrect
Subprograms are defined with 'O' followed by their number, here O2000.
3fill in blank
hardFix the error in the subprogram call syntax.
CNC Programming
M98 [1]Attempts:
3 left
💡 Hint
Common Mistakes
Using just the number without 'P'
Using 'O' or 'M' instead of 'P'
Missing the 'P' prefix
✗ Incorrect
The correct syntax to call a subprogram is M98 followed by P and the subprogram number.
4fill in blank
hardFill both blanks to create a subprogram call with repetition.
CNC Programming
M98 [1] L[2]
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong subprogram number
Omitting 'P' or 'L'
Using wrong repetition count
✗ Incorrect
M98 P2000 L5 calls subprogram 2000 five times, reducing repeated code.
5fill in blank
hardFill all three blanks to define a subprogram and call it twice.
CNC Programming
O[1] (Subprogram start) ... M99 (End) M98 [2] L[3]
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up subprogram numbers
Omitting 'P' or 'L' in call
Using wrong repetition count
✗ Incorrect
Define subprogram O2500 and call it twice with M98 P2500 L2 to save code length.
