The lathe coordinate system helps you tell the machine where to move the tool. It uses two directions: X for side to side, and Z for front to back.
Lathe coordinate system (X, Z) in CNC Programming
X[number] Z[number]
X moves the tool left or right (diameter direction).
Z moves the tool forward or backward (length direction).
X10 Z0
X0 Z-20
X5 Z10
This program moves the tool to the start (X0 Z0), then cuts straight out to X20 at the start of the length, then moves along the length to Z-30 while keeping X20, and finally returns to the start.
N10 G00 X0 Z0
N20 G01 X20 Z0 F0.2
N30 G01 X20 Z-30
N40 G00 X0 Z0The X axis usually measures diameter, so X10 means the diameter is 10 units (tool is 5 units from the centerline).
The Z axis is along the length of the part; negative Z often means moving away from the chuck.
Always check your machine's coordinate setup before programming.
The lathe coordinate system uses X and Z to control tool movement.
X moves side to side (diameter), Z moves front to back (length).
Understanding this helps you program precise cuts on a lathe.
Practice
Solution
Step 1: Understand lathe axis directions
The lathe coordinate system uses X and Z axes for tool movement.Step 2: Identify axis for side to side movement
X axis controls side to side movement, which affects diameter.Final Answer:
X axis -> Option CQuick Check:
X = side to side (diameter) [OK]
- Confusing X with Z axis
- Thinking Y axis controls diameter
- Assuming Z controls side to side
Solution
Step 1: Identify correct G-code for linear move
G01 is the standard command for linear interpolation (controlled move).Step 2: Check axis and values
X10 and Z5 correctly specify the tool position in X and Z axes.Final Answer:
G01 X10 Z5 -> Option AQuick Check:
G01 + X and Z correct values = D [OK]
- Using Y axis instead of Z
- Using G00 for cutting moves
- Swapping X and Z values
G01 X20 Z0 G01 X20 Z-10 G01 X10 Z-10
Solution
Step 1: Trace each command's effect on position
First command moves tool to X=20, Z=0. Second moves to X=20, Z=-10. Third moves to X=10, Z=-10.Step 2: Identify final position after last command
After last command, tool is at X=10, Z=-10.Final Answer:
X=10, Z=-10 -> Option DQuick Check:
Last command sets X=10, Z=-10 [OK]
- Ignoring last command
- Mixing up X and Z values
- Assuming position resets between commands
G01 X15 Z-5 G01 X-10 Z-5 G01 X15 Z0
Solution
Step 1: Review coordinate system limits
In lathe programming, X values represent diameter and cannot be negative.Step 2: Check commands for invalid values
Second command uses X=-10 which is invalid; Z can be negative for length direction.Final Answer:
Negative X value is invalid in lathe coordinate system -> Option BQuick Check:
X must be positive or zero [OK]
- Thinking Z can't be negative
- Believing repeated G01 is wrong
- Ignoring axis value rules
Solution
Step 1: Understand lathe coordinate directions
X controls diameter (side to side), Z controls length (front to back). Front face is Z=0, back end is Z=50.Step 2: Choose moves to start at front with diameter 20 and move to back with diameter 10
First move sets X=20 (diameter) at Z=0 (front). Second move moves tool to Z=50 (back) while reducing diameter to X=10.Final Answer:
G01 X20 Z0 G01 X10 Z50 -> Option AQuick Check:
Start front (Z0) big diameter, move back (Z50) smaller diameter [OK]
- Swapping X and Z values
- Starting at back end instead of front
- Increasing diameter instead of reducing
Ready to prove it?
Pass the test and this pattern moves unknown
