Bird
0
0
CNC Programmingscripting~10 mins

CNC machine coordinate system in CNC Programming - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - CNC machine coordinate system
Set Machine Zero (Home)
Select Coordinate System
Move Tool to Coordinates
Perform Machining Operation
Return to Safe Position or Next Command
The CNC machine starts at a home position, selects a coordinate system, moves the tool to specified coordinates, performs machining, then moves to the next step.
Execution Sample
CNC Programming
G54
G00 X10 Y20 Z5
G01 Z-1 F100
G00 Z5
This code sets the coordinate system, moves the tool rapidly to X=10, Y=20, Z=5, then cuts down to Z=-1 at feed rate 100, and retracts to Z=5.
Execution Table
StepCommandActionCoordinatesFeed RateTool Position
1G54Set coordinate system to G54N/AN/A(0,0,0) - Machine Zero
2G00 X10 Y20 Z5Rapid move to position(10,20,5)Rapid(10,20,5)
3G01 Z-1 F100Linear cut down to Z=-1(10,20,-1)100(10,20,-1)
4G00 Z5Rapid retract to Z=5(10,20,5)Rapid(10,20,5)
💡 Program ends after retracting tool to safe Z=5 position
Variable Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4
Coordinate SystemDefault (Machine Zero)G54G54G54G54
X Position00101010
Y Position00202020
Z Position005-15
Feed RateN/AN/ARapid100Rapid
Key Moments - 3 Insights
Why does the tool move rapidly to X=10 Y=20 Z=5 before cutting?
Because G00 is a rapid move command to position the tool quickly without cutting, as shown in step 2 of the execution_table.
What does setting G54 coordinate system do?
It sets the origin for the program coordinates, so all moves are relative to this point, as seen in step 1 of the execution_table.
Why does the Z position go from 5 to -1 during cutting?
Because G01 moves the tool linearly at feed rate to cut into the material, lowering Z from 5 to -1 in step 3.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the tool position after step 3?
A(10,20,5)
B(10,20,-1)
C(0,0,0)
D(0,0,-1)
💡 Hint
Check the 'Tool Position' column in row for step 3 in execution_table.
At which step does the feed rate change to 100?
AStep 1
BStep 2
CStep 3
DStep 4
💡 Hint
Look at the 'Feed Rate' column in execution_table rows.
If we remove the G54 command, what would be the coordinate system used?
AMachine Zero (default)
BG55
CG00
DNo coordinate system
💡 Hint
Refer to variable_tracker 'Coordinate System' start value before step 1.
Concept Snapshot
CNC Machine Coordinate System:
- G54 sets program origin relative to machine zero.
- G00 moves tool rapidly without cutting.
- G01 moves tool linearly at feed rate for cutting.
- Coordinates X, Y, Z specify tool position.
- Always retract tool to safe Z after cutting.
Full Transcript
This visual execution shows how a CNC machine uses coordinate systems to position the tool. First, the G54 command sets the program's origin point. Then, the tool moves rapidly to X=10, Y=20, Z=5 without cutting using G00. Next, G01 moves the tool down to Z=-1 at feed rate 100 to cut. Finally, the tool retracts to Z=5 rapidly. Variables like position and feed rate change step-by-step, helping beginners understand how CNC coordinates control tool movement.