This section presents advanced five-axis toolpath planning and programming techniques for machining complex pump body components using UG software.
It covers the systematic machining of the base shell, bottom housing, and upper cover, addressing challenges such as deep cavities, irregular surfaces, thin walls, and multi-feature geometries.
By combining fixed and variable contour milling, five-axis drilling, helical and spiral toolpaths, and precise tool axis control, the workflow ensures high efficiency, positional accuracy, and surface quality.
The methods outlined provide a comprehensive reference for achieving smooth, collision-free toolpaths, minimizing deformation, and optimizing programming and clamping strategies for high-precision CNC manufacturing.
Five-Axis Toolpath Planning and Programming Techniques Using UG
In five-axis machining, toolpath planning and programming play a crucial role in achieving high precision, surface quality, and machining efficiency.
By utilizing UG (Unigraphics NX) software, complex machining operations can be effectively planned through accurate definition of machining features, tool orientations, and cutting strategies.
Proper toolpath design enables full use of the five-axis machine’s flexibility, allowing simultaneous control of multiple axes to handle inclined surfaces, deep cavities, and intricate contours with fewer setups.
This chapter focuses on practical five-axis programming methods using UG, introducing step-by-step toolpath strategies for different machining stages.
For example, the backside machining of the base shell part is presented first to illustrate the workflow from roughing to finishing, highlighting key parameter settings and toolpath generation techniques.
Back Side Machining of the Base Shell Part
- Select the D12 flat-bottom milling cutter for roughing.
Select “Cavity Milling” with 51 mm depth, “Follow Perimeter” mode, 60% step size, and 3 mm max cutting distance.
- Switch to the “Profile Milling” toolpath, specify the “Wall,” and automatically generate an auxiliary bottom surface at -1 mm.
Select “Profile Milling” as the drive method and ‘Auto’ for the spindle orientation.
Utilize toolpath conversion to rotate and replicate the path, completing the fixed-axis machining of the remaining four 45° bevels.
Duplicate the toolpath, set geometry to “Wall,” add a 0 mm auxiliary bottom, and finish the 34° bevel contour.
- Select the 5-axis drilling toolpath. Specify the feature geometry as 4 x 45° helical holes. Use a 5.5 mm drill bit.
Set the toolpath cycle to “Deep Hole Chip Breaking” mode to complete 4 x 5-axis fixed-angle deep drilling operations.
Subsequently, complete 2 x cavity deep drilling and reaming operations.
- Use “Bottom Wall Milling” (Figure 1) with perpendicular tool axis and “Follow Perimeter,” duplicating for other surfaces.

- Use “Deep Contour Milling” (Figure 2), adjust allowances and tool axis vectors, replicate for outer contour finishing, then chamfer edges.

Front Face Machining of Bottom Housing Part
- Machine the ϕ68 blade slot taper (Figure 3) with an R3 ball-nose cutter using fixed contour milling and a 0.1 mm step.

- Blade slot wall finishing, as shown in Figure 4. Select a custom ball-nose cutter.
Select the 5-axis “Contour Milling” toolpath. In parameter settings, specify the wall by selecting the blade slot wall.
Choose “Contour Milling” as the drive method, select ‘Auto’ for the tool axis, and configure other debugging parameters.
Note: Set non-cutting movement parameters, set the feed type to “Linear,” and configure the rapid traverse distance to 200% of the tool diameter.
Set the part safety distance to 3 mm. For safety settings, select the Envelope Block option with a safety distance of 3.
Simulate the toolpath to verify the safe tool approach route and prevent collisions.

Upper Cover Part Machining
- Rough the upper cover interior with fixed contour milling in spiral mode, 50 points, 0.2 mm offset.
Select tool axis for projection vector, with feed type set to arc (parallel to tool axis) at 50% radius.
Start 1 mm above the surface and use a top-to-bottom helical path for smooth, efficient machining (see Figure 5).

- To avoid deformation, the six non-standard holes in the upper cover are left unmachined.
Apply a 0.5 mm chamfer using five-axis contour milling with a tangential axis and unidirectional cutting.
Set the tool axis at 0° front and -45° side tilt; use plunge feed and 200% tool length for non-cutting moves.
Under Transfer Common Safety Settings, select “Sphere” and specify point radius as 40, as shown in Figure 6.

- Assemble the upper cover, set height, and helical mill with a D12 end mill, 0.2 mm allowance, 50 steps.
Use “Tool Axis” and rough in a bottom-up spiral to remove the end cover allowance (Figure 7).

- Rough the six holes with a D6 end mill using five-axis helical contour milling, 0.2 mm offset, and 0° tilt.
Rotate the toolpath 360° and duplicate six times to rough the other holes (Figure 8).

- Finish the six holes (Figure 9) using a D6 end mill, duplicating the roughing path with 0.2 mm offset.
Set “Feed Rate” to 50% and “First Cut Feed” to 20% to minimize impact and deformation.
Rotate 360° and replicate six times to finish the other holes.

- Finish end cap curves with a D10R1 end mill, skip M6 bolts, then machine bolt areas and chamfer ϕ8 holes (Figure 10).

Conclusion
This paper tackles five-axis pump body machining via process design, fixtures, toolpaths, and programming, achieving:
Five-axis machining with a unified coordinate system ensures positioning accuracy of ≤0.01 mm and tolerance of ≤0.02 mm in a single-setup, multi-directional process.
UG12.0 modular toolpaths with transformations cut programming time for similar complex parts by over 40%.
“3+2” and five-axis finishing reduced upper cover machining time to 35 min—a 35% cut—optimizing efficiency and cost while keeping precision.
Flexible five-axis toolpaths with ≤0.5° vector error and 5°–15° tilt enable deep-cavity machining with Ra < 0.8 μm and ≤0.05 mm deformation.
Layered allowances ≤0.1 mm, 30% corner feed slowdown, and 20% spindle speed reduction at curves improve stability and surface quality.
This paper presents a five-axis workflow optimizing process, programming, and toolpaths for multi-feature parts.
It highlights AI and digital twin verification to replace manual path design, guiding intelligent CNC machining.
FAQ:
Five-axis toolpath planning in UG (Unigraphics NX) allows simultaneous control of multiple axes, enabling efficient machining of complex geometries like deep cavities, thin walls, and irregular surfaces. It improves surface quality, reduces setup times, and ensures high positional accuracy for pump body components.
UG software provides fixed and variable contour milling, helical and spiral toolpaths, and precise tool axis control. These features allow smooth material removal, collision-free machining, and reduced deformation, optimizing both roughing and finishing stages.
For the back side of the base shell, strategies include D12 flat-bottom milling for roughing, cavity milling with “Follow Perimeter,” profile milling with auxiliary bottom surfaces, and five-axis drilling for helical holes, combined with toolpath rotation and replication for bevels and contours.
Deep cavities and thin walls are managed using controlled tool axis vectors, layered allowances (≤0.1 mm), reduced feed rates, and spiral or helical toolpaths. This minimizes deformation, ensures smooth cutting, and maintains surface accuracy below Ra 0.8 μm.
Helical and spiral toolpaths enable smooth top-to-bottom material removal, reduce tool impact, and maintain consistent surface quality. They are particularly effective for roughing interior surfaces and finishing holes in the upper cover with minimal deformation.
Proper tool axis orientation (e.g., 0° front, -45° side tilt) ensures efficient cutting, reduces collisions, and maintains surface finish quality. Safety features like envelope blocks, sphere points, and plunge feed for non-cutting moves prevent damage and optimize toolpaths.
UG allows unified coordinate systems, modular toolpaths, and transformations. This reduces programming time by over 40% for similar complex parts and allows single-setup multi-directional machining with ≤0.01 mm positioning accuracy and ≤0.02 mm tolerance.
Blade slots and curves are finished using ball-nose cutters, five-axis contour milling, and variable profile milling with controlled stepovers, feed rate adjustments, and surface-area drive. Simulation verifies collision-free toolpaths and precise contour following.
Reducing feed rate during first cuts (e.g., 20%) and lowering spindle speed at curves, combined with corner feed slowdowns (e.g., 30%), minimizes impact forces, reduces deformation, and maintains high surface quality during finishing.
Advanced five-axis workflows leverage AI and digital twin simulations to verify toolpaths before machining. This reduces manual programming errors, ensures collision-free paths, and guides intelligent CNC machining for complex, multi-feature components efficiently.



