0
0
CNC Programmingscripting~10 mins

Zero point and datum location in CNC Programming - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Zero point and datum location
Start CNC Setup
Select Workpiece
Identify Datum Point
Set Zero Point at Datum
Confirm Coordinates
Begin Machining
This flow shows how the CNC machine setup starts by selecting the workpiece, identifying the datum point, setting the zero point there, confirming coordinates, and then starting machining.
Execution Sample
CNC Programming
G92 X0 Y0 Z0 ; Set zero at datum
G01 X10 Y10 F100 ; Move to (10,10) at feed 100
G01 Z-5 ; Move down 5 units
M30 ; End program
This CNC code sets the zero point at the datum, moves the tool to (10,10), then down 5 units to start cutting, and ends the program.
Execution Table
StepCommandActionCoordinatesNotes
1G92 X0 Y0 Z0Set zero point at datum(0,0,0)Zero point established
2G01 X10 Y10 F100Move tool to X=10, Y=10(10,10,0)Feed move at F100
3G01 Z-5Move tool down 5 units(10,10,-5)Start cutting depth
4M30End program(10,10,-5)Program stops
💡 Program ends after M30 command
Variable Tracker
VariableStartAfter Step 1After Step 2After Step 3Final
Xundefined0101010
Yundefined0101010
Zundefined00-5-5
Zero Pointundefined(0,0,0)(0,0,0)(0,0,0)(0,0,0)
Key Moments - 2 Insights
Why do we set the zero point at the datum before starting machining?
Setting the zero point at the datum ensures all tool movements are measured from a known, fixed location, as shown in step 1 of the execution_table.
What happens if the zero point is set incorrectly?
If zero is set incorrectly, all coordinates will be off, causing wrong tool paths. The execution_table shows correct coordinates only after zero is set properly in step 1.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what are the coordinates after step 2?
A(10,10,0)
B(0,0,0)
C(10,10,-5)
D(0,0,-5)
💡 Hint
Check the 'Coordinates' column for step 2 in the execution_table.
At which step does the tool start cutting into the material?
AStep 1
BStep 2
CStep 3
DStep 4
💡 Hint
Look for when Z coordinate moves below zero in the execution_table.
If the zero point was set at X=5 instead of X=0, how would step 2 coordinates change?
A(10,10,0)
B(15,10,0)
C(5,10,0)
D(0,0,0)
💡 Hint
Zero point shifts all coordinates by its offset; check variable_tracker for how zero affects positions.
Concept Snapshot
Zero point is the fixed reference location on the workpiece called the datum.
Set zero point before machining to ensure accurate tool paths.
Coordinates in CNC commands are relative to this zero.
Incorrect zero causes wrong cuts.
Use G92 (or similar) to set zero in CNC code.
Full Transcript
In CNC programming, the zero point is the reference location called the datum. The machine uses this point to measure all tool movements. The process starts by selecting the workpiece and identifying the datum point. Then, the zero point is set at this datum using commands like G92 X0 Y0 Z0. After setting zero, the tool moves to specified coordinates relative to zero. For example, moving to X10 Y10 means 10 units right and 10 units forward from zero. Moving down in Z starts the cutting. The program ends with M30. Setting zero correctly is crucial; otherwise, the tool will cut in wrong places. The execution table shows each step's command, action, and resulting coordinates, helping visualize how the zero point controls tool movement.