Bird
0
0
CNC Programmingscripting~5 mins

CNC machine coordinate system in CNC Programming

Choose your learning style9 modes available
Introduction
The CNC machine coordinate system helps the machine know exactly where to move and cut. It is like a map for the machine to follow.
When setting up a new part to be cut on the CNC machine.
When programming the machine to move to specific points.
When checking if the machine is aligned correctly before starting work.
When adjusting the machine to work on different sizes or shapes of material.
Syntax
CNC Programming
G54
G55
...
G59
G54 to G59 are common coordinate system codes used to select work offsets.
X, Y, and Z represent positions along the three axes.
Examples
Selects the origin point (zero) for the first work coordinate system.
CNC Programming
G54
Selects a second coordinate system offset (usually set by the operator).
CNC Programming
G55
Uses the G54 coordinate system and moves the tool to X=50, Y=50, Z=0 at feed rate 100.
CNC Programming
G54
G01 X50 Y50 Z0 F100
Sample Program
This program uses the G54 coordinate system to cut a square 50mm by 50mm on the part. It moves the tool safely above the part, cuts the square, then lifts the tool up.
CNC Programming
G21 ; Set units to millimeters
G90 ; Use absolute positioning
G54 ; Select first coordinate system
G00 X0 Y0 Z5 ; Move quickly to start position above part
G01 Z-1 F50 ; Move down to cut depth at feed rate 50
G01 X50 Y0 F100 ; Cut straight line in X direction
G01 X50 Y50 ; Cut line in Y direction
G01 X0 Y50 ; Cut line back in X
G01 X0 Y0 ; Complete square
G00 Z5 ; Lift tool up
M30 ; End program
OutputSuccess
Important Notes
Always set the correct coordinate system before starting the program to avoid cutting in the wrong place.
G54 is the most commonly used coordinate system, but others (G55-G59) can be used for multiple setups.
Coordinate systems help you work on different parts or areas without changing the main program.
Summary
The CNC coordinate system tells the machine where to move and cut.
G54 to G59 codes set different work origins on the machine.
Using coordinate systems helps keep your work accurate and organized.