Bird
Raised Fist0
CNC Programmingscripting~10 mins

Lathe coordinate system (X, Z) in CNC Programming - Step-by-Step Execution

Choose your learning style10 modes available
Concept Flow - Lathe coordinate system (X, Z)
Start at Origin (0,0)
↓
Move along Z-axis (lengthwise)
↓
Move along X-axis (diameter)
↓
Position tool at (X, Z)
↓
Perform machining operation
↓
Update coordinates as needed
↓
Repeat or End
The lathe coordinate system uses X for diameter direction and Z for length direction, moving the tool from the origin to the desired position step-by-step.
Execution Sample
CNC Programming
G00 X10 Z5
G01 X5 Z0 F0.2
G00 X0 Z0
Moves the tool quickly to X=10, Z=5; then cuts linearly to X=5, Z=0; then moves quickly back to origin.
Execution Table
StepCommandX PositionZ PositionFeed RateAction
1G00 X10 Z5105RapidMove tool quickly to X=10, Z=5
2G01 X5 Z0 F0.2500.2Cut linearly to X=5, Z=0 at feed 0.2
3G00 X0 Z000RapidMove tool quickly back to origin
💡 All commands executed; tool returned to origin.
Variable Tracker
VariableStartAfter Step 1After Step 2After Step 3
X01050
Z0500
Feed RateN/ARapid0.2Rapid
Key Moments - 2 Insights
Why does the tool move quickly in steps 1 and 3 but slowly in step 2?
Steps 1 and 3 use G00 which is rapid positioning (fast move without cutting), while step 2 uses G01 which is linear interpolation for cutting at feed rate 0.2, as shown in the execution_table rows 1, 2, and 3.
What do the X and Z coordinates represent in the lathe coordinate system?
X represents the diameter direction (tool moves left-right), and Z represents the length direction (tool moves front-back), as shown by the position changes in the execution_table.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the tool's position after step 2?
AX=5, Z=0
BX=10, Z=5
CX=0, Z=0
DX=5, Z=5
💡 Hint
Check the 'X Position' and 'Z Position' columns in row 2 of the execution_table.
At which step does the tool move at feed rate 0.2?
AStep 1
BStep 3
CStep 2
DNone
💡 Hint
Look at the 'Feed Rate' column in the execution_table for each step.
If the command in step 3 changed to G00 X5 Z5, what would be the tool's final position?
AX=0, Z=0
BX=5, Z=5
CX=10, Z=5
DX=5, Z=0
💡 Hint
Refer to the 'X Position' and 'Z Position' columns and imagine the last command moving the tool.
Concept Snapshot
Lathe coordinate system uses X for diameter (left-right) and Z for length (front-back).
G00 moves tool rapidly without cutting.
G01 moves tool linearly at set feed rate for cutting.
Commands specify target X and Z positions.
Tool starts at origin (0,0) and moves stepwise.
Feed rate controls cutting speed.
Full Transcript
The lathe coordinate system uses two axes: X for diameter direction and Z for length direction. The tool starts at the origin (0,0). Commands like G00 move the tool quickly to a position without cutting, while G01 moves the tool linearly at a set feed rate to cut material. In the example, the tool moves rapidly to X=10, Z=5, then cuts to X=5, Z=0 at feed 0.2, and finally moves rapidly back to origin. Tracking X, Z, and feed rate helps understand tool movement and machining steps.

Practice

(1/5)
1. In the lathe coordinate system, which axis controls the tool movement side to side (diameter)?
easy
A. Y axis
B. Z axis
C. X axis
D. W axis

Solution

  1. Step 1: Understand lathe axis directions

    The lathe coordinate system uses X and Z axes for tool movement.
  2. Step 2: Identify axis for side to side movement

    X axis controls side to side movement, which affects diameter.
  3. Final Answer:

    X axis -> Option C
  4. Quick Check:

    X = side to side (diameter) [OK]
Hint: Remember X moves side to side, Z moves front to back [OK]
Common Mistakes:
  • Confusing X with Z axis
  • Thinking Y axis controls diameter
  • Assuming Z controls side to side
2. Which of the following is the correct syntax to move the lathe tool to X=10 and Z=5 in a CNC program?
easy
A. G01 X10 Z5
B. G01 Y10 Z5
C. G00 X5 Z10
D. G02 X10 Y5

Solution

  1. Step 1: Identify correct G-code for linear move

    G01 is the standard command for linear interpolation (controlled move).
  2. Step 2: Check axis and values

    X10 and Z5 correctly specify the tool position in X and Z axes.
  3. Final Answer:

    G01 X10 Z5 -> Option A
  4. Quick Check:

    G01 + X and Z correct values = D [OK]
Hint: Use G01 for linear moves with X and Z axes [OK]
Common Mistakes:
  • Using Y axis instead of Z
  • Using G00 for cutting moves
  • Swapping X and Z values
3. What will be the tool position after executing the following commands?
G01 X20 Z0
G01 X20 Z-10
G01 X10 Z-10
medium
A. X=20, Z=0
B. X=20, Z=-10
C. X=10, Z=0
D. X=10, Z=-10

Solution

  1. 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.
  2. Step 2: Identify final position after last command

    After last command, tool is at X=10, Z=-10.
  3. Final Answer:

    X=10, Z=-10 -> Option D
  4. Quick Check:

    Last command sets X=10, Z=-10 [OK]
Hint: Last move command sets final position [OK]
Common Mistakes:
  • Ignoring last command
  • Mixing up X and Z values
  • Assuming position resets between commands
4. Identify the error in this lathe program snippet:
G01 X15 Z-5
G01 X-10 Z-5
G01 X15 Z0
medium
A. Z values cannot be negative
B. Negative X value is invalid in lathe coordinate system
C. G01 command cannot be repeated consecutively
D. No error, program is correct

Solution

  1. Step 1: Review coordinate system limits

    In lathe programming, X values represent diameter and cannot be negative.
  2. Step 2: Check commands for invalid values

    Second command uses X=-10 which is invalid; Z can be negative for length direction.
  3. Final Answer:

    Negative X value is invalid in lathe coordinate system -> Option B
  4. Quick Check:

    X must be positive or zero [OK]
Hint: X axis values represent diameter, so no negatives [OK]
Common Mistakes:
  • Thinking Z can't be negative
  • Believing repeated G01 is wrong
  • Ignoring axis value rules
5. You want to program a lathe to cut a cylindrical part 50 mm long and 20 mm diameter. Which sequence of moves correctly uses the lathe coordinate system to start at the front face and move to the back end while reducing diameter from 20 mm to 10 mm?
hard
A. G01 X20 Z0 G01 X10 Z50
B. G01 X10 Z0 G01 X20 Z50
C. G01 X20 Z50 G01 X10 Z0
D. G01 X10 Z50 G01 X20 Z0

Solution

  1. 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.
  2. 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.
  3. Final Answer:

    G01 X20 Z0 G01 X10 Z50 -> Option A
  4. Quick Check:

    Start front (Z0) big diameter, move back (Z50) smaller diameter [OK]
Hint: Start at Z0 with big X, move to Z50 with smaller X [OK]
Common Mistakes:
  • Swapping X and Z values
  • Starting at back end instead of front
  • Increasing diameter instead of reducing
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard