Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the first article inspection program.
CNC Programming
M98 P[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong subprogram number.
Forgetting the M98 command.
✗ Incorrect
M98 P1001 calls the subprogram 1001 which is the first article inspection routine.
2fill in blank
mediumComplete the code to measure the part diameter during inspection.
CNC Programming
G65 P[1] Q1 R[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect macro program number.
Confusing parameter Q and R.
✗ Incorrect
G65 P5100 calls the macro program 5100 which measures diameter; Q1 specifies the measurement type; R is the nominal diameter value.
3fill in blank
hardFix the error in the code to correctly probe the part surface.
CNC Programming
G31 X[1] Y0 Z0 F100 Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using positive X value causing no probe contact.
Setting zero which does not move the probe.
✗ Incorrect
G31 probes in the negative X direction to find the part surface at -50 mm.
4fill in blank
hardFill both blanks to set the inspection tolerance limits.
CNC Programming
IF [#[1] GT [2]] THEN M30
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong variable number.
Confusing tolerance value.
✗ Incorrect
Variable 100 holds the measured value; if it is greater than 0.1 (tolerance), the program ends with M30.
5fill in blank
hardFill all three blanks to create a dictionary of inspection results with conditions.
CNC Programming
results = [1]: [2] for [3] in measurements if measurements[[3]] <= 0.1}
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong variable names causing syntax errors.
Misplacing the condition in comprehension.
✗ Incorrect
Creates a dictionary with keys as 'feature', values as measurements[feature], iterating over feature in measurements, filtering by tolerance <= 0.1.