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:
- Computer compensation (Wear OFF): Mastercam offsets the coordinates in the NCI/NC file. The machine runs the offset path directly, no controller offset register is used. Most common for CAM-generated programs.
- Control compensation (Wear ON): The posted G-code contains G41/G42 commands. The machine controller reads a tool radius offset register and applies the shift at runtime. This allows small adjustments for tool wear without regenerating the toolpath.
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 lead-in arc approaches the chain tangentially, so the cutter is already moving in the cut direction when it contacts the part surface.
- A lead-out arc exits tangentially, preventing a dwell mark at the endpoint.
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:
- Steel: maximum depth per pass ≤ 1× cutter diameter.
- Aluminum: maximum depth per pass ≤ 2× cutter diameter.
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:
- Cut direction — Climb: The cutter engages material so chip thickness decreases through the cut. Climb milling produces a better surface finish and is preferred for carbide tooling on CNC machines. (Conventional cut is an alternative when backlash is a concern on older manual-style machines.)
- Stepover: The radial distance between successive passes. Set to 50% of tool diameter for roughing — this balances material removal rate and tool load.
- Finish pass: Enable one finishing pass with 0.010 in stock-to-leave to clean up the pocket walls after roughing. The finish pass uses the same tool; Mastercam adds a final pass at the full depth.
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:
- Compensation offset is on the correct side.
- Lead-in/lead-out arcs are present and tangent.
- Z depth steps are visible.
- No gouges (red highlights in Mastercam) exist.
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:
- Never post and run unverified code. A gouge in Backplot becomes a crash on the machine.
- When you later run a program at the machine, follow lockout/tagout (LOTO) procedures for any tool change or setup adjustment with power off.
- Wear safety glasses any time you are on the shop floor near running machines, even if you are only observing.
- Keep chip hooks and brushes available; never use bare hands to clear chips from a running or recently stopped spindle.
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?
- Identify the maximum depth per pass for aluminum: 2 × cutter diameter = 2 × 0.500 in = 1.000 in per pass.
- Compare to total depth: 0.750 in total depth is less than 1.000 in maximum.
- 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?
- Maximum depth per pass for steel: 1 × cutter diameter = 1 × 0.500 in = 0.500 in.
- Number of passes needed: 0.750 in ÷ 0.500 in = 1.5, which rounds up to 2 passes.
- Mastercam divides total depth evenly: 0.750 in ÷ 2 passes = 0.375 in per pass.
- 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?
- Calculate 75% of tool diameter: 0.750 in × 0.75 = 0.5625 in.
- Round to a practical shop value if desired: 0.563 in (three decimal places is typical for inch programming).
- 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?
- Calculate overage: 0.020 in − 0.015 in = 0.005 in over the limit.
- To meet the limit exactly, enter 0.015 in stock-to-leave.
- 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.
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.