🚧 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 3
MFG-CNC14-05 · Lesson 3 · 17 clock hours · demo

2-Axis Milling: Contour and Pocket Toolpaths

Objective. Students will create 2D contour and pocket toolpaths on a provided part drawing, applying correct entry/exit moves, compensation type, depth stepping, and finish pass parameters.

⚠ 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.

2-Axis Milling: Contour and Pocket Toolpaths

What 2-Axis Toolpaths Do

In Mastercam, a 2-axis (2D) toolpath controls the cutter in the X and Y plane while depth steps are applied in the Z axis at fixed levels. No simultaneous 3-axis motion is needed. Two toolpaths dominate everyday 2D work: the contour toolpath, which follows an open or closed chain along a profile, and the pocket toolpath, which removes all material inside a closed boundary while respecting any islands inside that boundary.

Geometry Selection: Chaining

Before Mastercam can generate any toolpath, you must tell it which geometry to follow. This is called chaining. Click the chain icon and select connected line/arc entities in the order you want the tool to travel. Mastercam highlights the chain direction with an arrow. For a contour, direction controls which side of the line the tool cuts on. For a pocket, the outer boundary chains counterclockwise and islands chain clockwise by default, though Mastercam adjusts this automatically.

Verify the chain arrow before clicking OK. A reversed chain puts compensation on the wrong side and can gouge the part.

Cutter Compensation

Compensation shifts the tool centerline away from the programmed path so the cutter edge — not the center — follows the true part line. Mastercam offers two compensation types:

Compensation direction is either Left or Right relative to cutter travel direction. For a conventional outside contour machined climb-cut, compensation is typically set to Left. Always verify by checking the Backplot — the tool center line should be offset away from finished stock.

Entry and Exit Moves: Lead-In / Lead-Out

Plunging straight down to depth and immediately engaging the profile creates a witness mark and can chip an end mill. Use lead-in and lead-out arcs to ramp the tool tangentially onto and off the profile:

A common starting value is an arc radius equal to 50–100% of the tool diameter. The arc must clear any islands or walls. In Mastercam, set radius, sweep angle (90° is typical), and linear length in the Lead In/Out tab.

Depth Cuts and Z Stepping

Removing full depth in one pass overloads the tool. Use depth cuts to step down in increments:

Enable depth cuts in the Depth Cuts tab, enter the Maximum Rough Step value, and Mastercam calculates the number of passes automatically. Enable Keep Tool Down if you want the cutter to stay in the pocket between Z steps rather than retracting.

Pocket Toolpath: Type and Cut Pattern

For a standard pocket with one or more bosses (islands), select Pocket type: Standard. Mastercam computes a series of offset passes that spiral or zigzag inward until the pocket is cleared.

Key parameters:

Stock-to-Leave and Finish Allowance

Stock-to-leave is the amount of extra material left on walls and/or floor after a roughing pass, to be removed by the finish pass. For the pocket finish pass, keep stock-to-leave at 0.015 in or less for typical precision work. Leaving too much requires excessive finish-pass cutting force; leaving too little removes the benefit of a separate finish pass.

Backplot and Verify

Before posting G-code, always Backplot the toolpath. Backplot animates the tool center movement so you can confirm:

If Backplot shows a gouge, do not post. Return to parameters, identify the conflict — often a lead-in arc too large for a tight corner — and correct it.

Safety in the CAM Lab

CAM lab work is programming, not live machining, but safety habits start at the computer:

Key terms10

ChainingThe process of selecting connected geometry entities in Mastercam to define the path the tool will follow; direction of the chain arrow determines compensation side.
Cutter CompensationAn offset applied to shift the tool centerline away from the programmed path so the cutter edge, not the center, follows the finished part geometry; applied by the CAM software (computer) or the machine controller (control/wear).
Lead-In / Lead-Out ArcA tangential arc motion that brings the tool onto or away from the part profile smoothly, preventing dwell marks and reducing the risk of a witness line at the entry or exit point.
Depth CutsIncremental Z steps that divide total cutting depth into multiple passes to limit cutting force; maximum per pass is typically 1× cutter diameter for steel and 2× for aluminum.
Climb MillingA cut direction in which the cutter engages the workpiece so chip thickness decreases as the tooth exits; preferred for carbide tooling on CNC machines because it produces better surface finish and reduces heat at the cutting edge.
StepoverThe radial distance between successive passes in a pocket toolpath; commonly set to 50% of tool diameter for roughing to balance material removal and tool load.
Stock-to-LeaveMaterial intentionally left on walls or floor after roughing passes, to be removed by a dedicated finish pass; typically 0.015 in or less for precision 2D work.
BackplotA Mastercam simulation that animates the tool center path so the programmer can verify compensation direction, entry/exit arcs, depth steps, and detect gouges before posting G-code.
Island (Boss)A raised feature inside a pocket boundary that the pocket toolpath must avoid; chained separately so Mastercam routes passes around it rather than through it.
GougeAn unintended intersection of the tool path with finished part geometry; flagged in red during Backplot and must be corrected before the program is run on the machine.

Worked examples4

1. A programmer is pocketing a feature 0.750 in deep in 6061 aluminum using a 0.500 in diameter end mill. How many depth-cut passes are needed, and what is the depth per pass?
  1. Identify the maximum depth per pass for aluminum: 2 × cutter diameter = 2 × 0.500 in = 1.000 in per pass.
  2. Compare to total depth: 0.750 in total depth is less than 1.000 in maximum.
  3. Because 0.750 in ≤ 1.000 in, the full depth can be taken in one roughing pass. Number of passes = 1.
Answer: 1 pass at 0.750 in depth (within the 2× diameter limit for aluminum).
2. The same programmer switches to cutting mild steel with the same 0.500 in end mill at 0.750 in total depth. How many passes are required, and what is the actual depth per pass if Mastercam divides evenly?
  1. Maximum depth per pass for steel: 1 × cutter diameter = 1 × 0.500 in = 0.500 in.
  2. Number of passes needed: 0.750 in ÷ 0.500 in = 1.5, which rounds up to 2 passes.
  3. Mastercam divides total depth evenly: 0.750 in ÷ 2 passes = 0.375 in per pass.
  4. Confirm 0.375 in ≤ 0.500 in limit — acceptable.
Answer: 2 passes at 0.375 in each (both within the 1× diameter limit for steel).
3. A contour is programmed with a lead-in arc. The tool is a 0.750 in diameter end mill. The programmer wants the lead-in arc radius to equal 75% of the tool diameter. What arc radius should be entered in Mastercam?
  1. Calculate 75% of tool diameter: 0.750 in × 0.75 = 0.5625 in.
  2. Round to a practical shop value if desired: 0.563 in (three decimal places is typical for inch programming).
  3. Enter 0.563 in in the Lead-In arc radius field in Mastercam.
Answer: Lead-in arc radius = 0.563 in.
4. A pocket finish pass is set up with 0.020 in stock-to-leave on the walls. The pass limit is 0.015 in. By how much does this exceed the limit, and what value should the programmer enter to just meet the limit?
  1. Calculate overage: 0.020 in − 0.015 in = 0.005 in over the limit.
  2. To meet the limit exactly, enter 0.015 in stock-to-leave.
  3. Any value from 0.001 in up to 0.015 in is acceptable; 0.010 in is a common production setting.
Answer: Current setting exceeds the limit by 0.005 in; correct value is 0.015 in or less (e.g., 0.010 in).

The math in this lesson1

Learners divide pocket depth by allowed step-down to count passes and set lead-in radius as 75% of diameter.
6.RP.3
In class: Instructor live-demonstration of a full 2D contour toolpath on a simple bracket profile: chain selection, compensation direction, lead-in/lead-out arc, depth cuts, and stock-to-leave settings; students follow along on their own machines · Students independently create a 2D pocket toolpath (island with a boss) on a provided .MCX file, selecting pocket type (standard), cut direction (climb), stepover at 50% diameter, and a 0.010 in finish pass, then Backplot to verify · Students swap files with a partner and perform a peer review checklist covering: compensation side, entry arc radius, depth-of-cut per pass vs. tool diameter rule, and finish allowance; findings recorded in lab log
Materials: Mastercam (current release), provided .MCX practice file (bracket with island), Mastercam Associate exam domain checklist, lab computers, printed peer-review checklist
Check: Instructor reviews Backplot output; pass = correct compensation direction, entry/exit arcs present, depth per pass ≤ 1× cutter diameter for steel or ≤ 2× for aluminum, finish pass ≤ 0.015 in stock-to-leave, and zero tool-path gouges in Backplot

Practice check8

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

CAM Toolpath Setup
1. During chaining for a 2D contour toolpath, what does the direction of the chain arrow primarily control?
CAM Programming and G-code
2. A CNC programmer selects 'Computer' compensation in Mastercam (Wear OFF). What does this mean for the posted G-code?
CAM Toolpath Setup
3. What is the primary purpose of a lead-in arc at the start of a contour toolpath?
Cutting Parameters and Tool Selection
4. A machinist is roughing a steel pocket with a 0.625 in end mill. What is the maximum depth per pass allowed by the standard depth-cut rule?
CAM Toolpath Setup
5. When programming a standard pocket with an island in Mastercam, which cut direction is generally preferred for carbide tooling on a CNC machining center?
CAM Toolpath Setup
6. A pocket toolpath is set up with a 0.500 in end mill and a 50% stepover. What is the radial distance between successive passes?
Quality and Inspection
7. During a peer review, a student finds that the finish pass stock-to-leave is set to 0.022 in. According to the lesson pass/fail criteria, what action should be taken?
CAM Verification and Safety
8. Backplot in Mastercam highlights a section of the toolpath in red. What does this indicate, and what must the programmer do before posting?
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.