Introduction
The zero point and datum location help the machine know where to start cutting or moving. It sets a clear reference so the work is done in the right place.
Jump into concepts and practice - no test required
G10 L20 P1 X0 Y0 Z0 ; Set G54 zero point at current position G10 L20 P2 X10 Y10 Z0 ; Set G55 alternate datum location
G10 L20 P1 X0 Y0 Z0
G10 L20 P2 X50 Y25 Z-5
G54 ; Use the main zero point without changing coordinates
O1000 (Program start)
G21 (Set units to millimeters)
G90 (Absolute positioning)
G10 L20 P1 X0 Y0 Z0 (Set G54 zero point at workpiece corner)
G00 X0 Y0 Z5 (Move above zero point)
G01 Z-1 F100 (Cut down 1 mm)
G01 X50 Y0 F200 (Cut along X axis)
G01 X50 Y50 (Cut along Y axis)
G01 X0 Y50 (Cut back along X axis)
G01 X0 Y0 (Complete square)
M30 (End program)G54
G0 X0 Y0
G1 X50 Y50 F100