🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Manufacturing & Marine › CNC Machining › CAM: Computer-Aided Manufacturing with Mastercam › Lesson 5
MFG-CNC14-05 · Lesson 5 · 15 clock hours · demo

Lathe Toolpaths in Mastercam

Objective. Students will program a multi-operation turned part in Mastercam Lathe—including rough turn, finish turn, face, groove, and thread—and post Haas-compatible lathe G-code.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by a licensed engineer or certified journey-level tradesperson or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Lathe Toolpaths in Mastercam

CNC turning converts a rotating cylindrical workpiece into a finished shaft, bushing, or threaded component by feeding a cutting tool along controlled axes. Mastercam Lathe lets you define every operation—facing, rough turning, finish turning, grooving, and threading—inside the same file, then post all of them to a single Haas-compatible G-code program. Understanding the logic behind each toolpath type, and the relationship between the CAM software and the machine controller, is the foundation of productive CNC turning work.

Safety Before You Begin

Even though you are working at a lab computer during this lesson, the G-code you generate will run a live lathe in a later session. Build safe habits now:

The Lathe Coordinate System

Haas lathes use a two-axis system: Z runs along the spindle centerline (positive away from the chuck), and X runs radially (positive away from the centerline). Because the part rotates, Mastercam displays diameters on the X axis. A programmed X1.0 means a 1.0-inch diameter, not a 0.5-inch radius—this is called diameter mode and is the default for turning G-code.

Chaining a Lathe Profile

A lathe toolpath is driven by a chain—a connected set of geometry lines and arcs that define the part profile. In Mastercam Lathe you typically chain from a solid model or from wireframe geometry created on the Cplane. After importing or opening the provided shaft .MCX file:

1. Set the Machine Group to Lathe and select the Haas Turning post.

2. Define stock as a cylinder slightly larger than the finished part (e.g., 1.063-inch diameter bar for a 1.0-inch shaft).

3. Define chuck jaws with the actual jaw width and grip depth so the simulator can detect collisions with the chuck body.

4. Chain the outer profile by selecting the contour that represents the finished outside diameter, shoulder, and relief features from left (tailstock end) to right (chuck end), or as directed by your drawing.

Rough Turn Operation

The rough-turn toolpath removes most of the excess stock in multiple passes. Key parameters:

After setting parameters, run Verify/Backplot in Mastercam to watch the simulation remove stock. Confirm no red collision indicators appear near the jaw body.

Finish Turn, Groove, and Thread Operations

Finish turn uses the same chained profile as the rough pass but with a smaller DOC (0.005–0.015 inch), a finer feed (0.003–0.006 IPR), and stock to leave set to zero. A sharp, positive-rake finishing insert produces better surface finish than the roughing insert.

Groove toolpaths require you to select the groove centerline or two side walls and specify width and depth. For the 0.125-inch-wide groove on this shaft, select a grooving insert that matches or is slightly narrower than the groove width. Set plunge feed conservatively (roughly 0.002–0.004 IPR) because the insert is cutting on its face.

Thread toolpaths in Mastercam Lathe generate a G76 or G92 threading cycle in the posted code. Critical inputs:

After creating all operations, review them in the Operation Manager from top to bottom: Face → Rough Turn → Finish Turn → Groove → Thread. Sequence matters; Mastercam posts them in the listed order.

Posting to Haas G-Code

Select all operations, then click Post Selected Operations and choose the Haas Turning post processor (.pst file). Mastercam writes an .NC text file. Open it in Notepad or any plain-text editor and locate the threading block. A typical G76 block looks like:

```

G76 P010060 Q0150 R0.002

G76 X0.8978 Z-1.25 P0650 Q0200 F0.0714

```

The F word in the second G76 block is the pitch in inches. Verify it matches the drawing value within 0.0001 inch and record the full block in your lab log with each address code labeled (G, X, Z, P, Q, F).

Operation Sequence Review

Before submitting for instructor review, confirm:

1. Tool change block (T-word + offset) present before each operation.

2. Rough turn precedes finish turn.

3. Groove follows finish turn (so the groove is not removed by finish pass).

4. Thread is last (thread form must be to final diameter before threading).

5. No simulation collisions reported.

Key terms9

ChainingThe process of selecting connected geometry (lines and arcs) in Mastercam to define the tool's path along the part profile.
Diameter modeThe default X-axis convention in CNC turning where programmed X values represent the full diameter of the part, not the radius from centerline.
Stock to leaveA programmed amount of material deliberately left on the part after a roughing pass so a finish pass can remove it cleanly and achieve final dimensions.
PitchThe axial distance between adjacent thread crests, equal to 1 divided by the number of threads per inch; the F-word value in a Haas G76 threading cycle.
G76 threading cycleA Haas (and fanuc-compatible) canned cycle that automatically performs multiple infeed passes to cut a thread to programmed depth and pitch.
Chuck jaw definitionA setup parameter in Mastercam Lathe that inputs actual jaw dimensions so the collision simulator can detect when a tool path would strike the chuck body.
Post processorA software translator in Mastercam that converts internal toolpath data into the specific G-code dialect and formatting required by a particular machine controller, such as the Haas Turning post.
Infeed angleThe angle at which the threading insert advances into the workpiece per pass; 29° or 29.5° flank infeed is common for 60° UN threads to reduce cutting forces.
Operation ManagerThe Mastercam panel that lists all programmed operations in the order they will be posted; used to review, reorder, and edit operations before generating G-code.

Worked examples4

1. Calculate the thread pitch for a 1-14 UNF thread and confirm the F-word value that should appear in the G76 block.
  1. Identify threads per inch (TPI) from the thread callout: 1-14 UNF means 14 TPI.
  2. Apply the pitch formula: Pitch = 1 ÷ TPI = 1 ÷ 14.
  3. Divide: 1 ÷ 14 = 0.071428... inch.
  4. Round to four decimal places as required by Haas controller: 0.0714 inch.
  5. The F-word in the G76 second block should read F0.0714.
Answer: F0.0714 (pitch = 0.0714 inch)
2. A rough-turn pass is programmed with a depth of cut of 0.100 inch and stock to leave of 0.020 inch. The raw bar stock diameter is 1.250 inch and the finished shaft diameter is 1.000 inch. How many rough passes will Mastercam need to reach the stock-to-leave boundary, and what diameter remains before the finish pass?
  1. Find total radial stock to remove to the stock-to-leave boundary: (1.250 − 1.000) ÷ 2 = 0.125 inch total radial allowance.
  2. Subtract the stock-to-leave (radial): 0.125 − 0.020 = 0.105 inch of radial stock for roughing.
  3. Divide by depth of cut per pass: 0.105 ÷ 0.100 = 1.05 passes.
  4. Since a partial pass still requires a full pass, Mastercam will make 2 rough passes (the second pass removes only 0.005 inch radially).
  5. Diameter remaining after roughing = finished diameter + 2 × stock-to-leave = 1.000 + 2(0.020) = 1.040 inch.
Answer: 2 rough passes; 1.040-inch diameter remains for the finish pass.
3. A carbide insert manufacturer specifies a surface footage (SFM) of 450 for roughing 1018 steel. Calculate the required spindle RPM for a 1.250-inch diameter bar stock.
  1. Recall the RPM formula: RPM = (SFM × 3.82) ÷ Diameter.
  2. Substitute values: RPM = (450 × 3.82) ÷ 1.250.
  3. Multiply numerator: 450 × 3.82 = 1719.
  4. Divide: 1719 ÷ 1.250 = 1375.2 RPM.
  5. Round to a practical value: set spindle to 1375 RPM.
Answer: Approximately 1375 RPM
4. The finish-turn feed is 0.004 IPR and the spindle runs at 1375 RPM. What is the equivalent feed rate in inches per minute (IPM) that would appear if the post outputs IPM?
  1. Recall the conversion: Feed (IPM) = Feed (IPR) × RPM.
  2. Substitute: IPM = 0.004 × 1375.
  3. Multiply: 0.004 × 1375 = 5.5 IPM.
Answer: 5.5 IPM

The math in this lesson2

Learners compute thread pitch as 1 ÷ TPI for a 1-14 UNF thread.
6.RP.3A-CED.4
Brush up in the math halls at newSchoolWorks.com:
In class: Instructor demonstrates chaining a lathe profile from a solid model, setting the chuck jaw definition, and creating a rough-turn operation with correct depth-of-cut, feed, and stock-to-leave for a 1018 steel shaft · Students create finish-turn, groove, and thread toolpaths on a provided shaft drawing (1.0 in diameter, 60° thread, groove 0.125 in wide), applying manufacturer recommended speeds for carbide inserts · Students post the lathe file to Haas Turning post, open the .NC file in a text editor, locate the thread cycle block, verify pitch value matches drawing, and record the block in their lab log with annotations identifying each address code
Materials: Mastercam Lathe module, Haas Turning post processor, provided shaft .MCX file, insert manufacturer speed-and-feed chart, lab computers, Haas Lathe operator manual
Check: Posted G-code reviewed by instructor; pass = correct G-code thread cycle with pitch matching drawing within 0.0001 in, rough and finish operations present and in correct sequence, no missing tool change blocks, and annotated G-code block in lab log

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CAM programming / Haas Lathe operation
1. In Mastercam Lathe's diameter mode, a programmed X value of 1.000 represents:
CAM setup / machine safety
2. Which Mastercam Lathe setup parameter protects against simulated collisions between the cutting tool and the workholding device?
CNC turning / thread programming
3. What is the correct thread pitch (F-word value) for a 1-20 UNF thread posted to a Haas lathe?
CAM programming / process planning
4. In the Operation Manager, which sequence of lathe operations is correct for a shaft that requires all five operations?
Machining process / NIMS Machining L1
5. A rough-turn operation is programmed with 0.020-inch stock to leave (radial). What is the purpose of this stock?
CAM programming / Mastercam Associate
6. A grooving insert that is narrower than the programmed groove width will:
CNC program verification / Haas Certification
7. After posting a lathe file to the Haas Turning post, a technician opens the .NC file and finds no T-word before the grooving operation. What is the most likely consequence if this program is run on the machine?
Speeds and feeds / NIMS Machining L1
8. An insert manufacturer's chart recommends 450 SFM for roughing 1018 steel with a carbide insert. For a 1.000-inch finished diameter, the required spindle speed is closest to:
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.