0
0
CNC Programmingscripting~10 mins

Zero point and datum location in CNC Programming - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the machine zero point at the current tool position.

CNC Programming
G10 G54 [1]
Drag options to blanks, or click blank then click option'
AM30
BG10
CG00
DM06
Attempts:
3 left
💡 Hint
Common Mistakes
Using G00 which is a rapid move command.
Using M30 which ends the program.
Using M06 which changes the tool.
2fill in blank
medium

Complete the code to move the tool to the workpiece zero point using G54.

CNC Programming
G00 X[1] Y0 Z0
Drag options to blanks, or click blank then click option'
A0
B100
C-50
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-zero values which move away from the zero point.
Confusing rapid move with setting zero.
3fill in blank
hard

Fix the error in the code to correctly set the datum location using G10.

CNC Programming
G10 L20 P1 [1] X0 Y0 Z0
Drag options to blanks, or click blank then click option'
AG54
BG00
CM06
DM30
Attempts:
3 left
💡 Hint
Common Mistakes
Using G00 which is a move command.
Using M06 or M30 which are unrelated to coordinate setting.
4fill in blank
hard

Fill both blanks to define a new datum offset and move the tool there.

CNC Programming
G10 L20 P1 [1] X50 Y[2] Z0
G00 X50 Y50 Z0
Drag options to blanks, or click blank then click option'
AG54
B100
C50
DG55
Attempts:
3 left
💡 Hint
Common Mistakes
Using G55 instead of G54 for the coordinate system.
Setting Y to 100 which does not match the move command.
5fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps axis names to their zero offsets if offset is zero.

CNC Programming
zero_offsets = {: {BLANK_2}} for [2] in ['X', 'Y', 'Z'] if offsets[{{BLANK_3}}] == 0
Drag options to blanks, or click blank then click option'
Aaxis
Boffsets[axis]
D{
Attempts:
3 left
💡 Hint
Common Mistakes
Not starting the comprehension with '{'.
Using wrong variable names for keys or values.
Missing the condition to filter zero offsets.