2,427
Views
1
CrossRef citations to date
0
Altmetric
Articles

Automated process planning for turning: a feature-free approach

ORCID Icon, , &
Pages 415-432 | Received 11 May 2019, Accepted 14 Jun 2019, Published online: 11 Jul 2019

ABSTRACT

Turning is the most commonly available and least expensive machining operation, in terms of both machine-hour rates and tool insert prices. A practical CNC process planner has to maximize the utilization of turning, not only to attain precision requirements for turnable surfaces, but also to minimize the machining cost, while non-turnable features can be left for other processes such as milling. Most existing methods rely on separation of surface features and lack guarantees when analyzing complex parts with interacting features. In a previous study, we demonstrated successful implementation of a feature-free milling process planner based on configuration space methods used for spatial reasoning and AI search for planning. This paper extends the feature-free method to include turning process planning. It opens up the opportunity for seamless integration of turning actions into a mill-turn process planner that can handle arbitrarily complex shapes with or without a priori knowledge of feature semantics.

1. Introduction

The manufacturing technology has diversified dramatically over the past several decades with the increasing popularity of additive processes. Nevertheless, subtractive processes (i.e., machining) remain central to many industrial-scale, mission-critical, and high-precision mechanical parts.

Computer-aided process planning (CAPP) is the systematic determination of a set of steps by which a product can be manufactured in a cost-effective, competitive manner (Alting & Zhang, Citation1989). The most common approaches to CAPP are based on automated feature recognition (Babic, Nesic, & Miljkovic, Citation2008; Shah, Sreevalsan, & Mathew, Citation1991; Weill, Spur, & Eversheim, Citation1982; Xu, Wang, & Newman, Citation2011). These methods include convex volume decomposition (Eftekharian & Campbell, Citation2012; Kim, Citation1992; Perng, Chen, & Li, Citation1990), graph-based heuristics (Fu, Eftekharian, Radhakrishnan, Campbell, & Fritz, Citation2012; Joshi & Chang, Citation1988; Wu & Lit, Citation1996), rule-based pattern recognition (Babic et al., Citation2008; Vandenbrande & Requicha, Citation1993), among others. Their main challenge is that the notion of a ‘feature’ is typically defined in an application-specific context (Hoffmann & Shapiro, Citation2017). There is no consensus on a single unified definition across the various design and manufacturing applications, which limits the usability or success of CAPP tools that commit to a specific taxonomy. Most process planners are rule-based systems that map individual features (e.g., holes, pockets, slots, and so forth) to specialized manufacturing tools and parameters. These methods are a lot more effective when features are clearly separable, but they rarely extend to complex interacting features (Tseng & Joshi, Citation1994, Citation1998).

1.1. A feature-free approach

Recently, our group developed a novel feature-free approach to CAPP – with a particular focus on 3-axis milling – based on maximal removable volumes (MRV) at accessible configurations (Nelaturi, Burton, Fritz, & Kurtoglu, Citation2015) (). The approach applies to arbitrarily complex part and tool geometries, using group-theoretic configuration space modeling (Lysenko, Nelaturi, & Shapiro, Citation2010). The MRVs are computed based on spatial interactions of part and tool in relative motion, conceptualized using morphological operations. This conceptualization facilitates rapid parallel computations by treating 3D shapes as signals and extending basic techniques of digital signal processing to fields in 3D. The morphological operations on sampled/voxelized shapes are mapped to convolutions of their indicator (i.e., characteristic) functions (Haralick, Sternberg, & Zhuang, Citation1987; Serra, Citation1983). Convolutions in the 3D physical domain are, in turn, mapped to pairwise multiplications in the 3D frequency domain via Fourier transforms (Kavraki, Citation1995), enabling rapid computations via GPU-accelerated fast Fourier transform (FFT) algorithms. As a result, process plans can be computed using commodity hardware in less than a minute even for arbitrarily complex parts. The algorithm does not rely on semantics of (possibly interacting) features – although having such information can help using specialized tools. This technology has powered a cloud-based quoting platform for machine shops, called uFab (https://ufab.io).

Figure 1. Feature-free process planning for milling (Nelaturi et al., Citation2015). At every fixturing orientation, the maximal removable volume (MRV) is computed. Different plans (two of them shown here) remove the same MRVs in different fixturing orders. The top plans with the minimum cost are found.

Figure 1. Feature-free process planning for milling (Nelaturi et al., Citation2015). At every fixturing orientation, the maximal removable volume (MRV) is computed. Different plans (two of them shown here) remove the same MRVs in different fixturing orders. The top plans with the minimum cost are found.

The underlying theoretical concepts (Lysenko et al., Citation2010) are general enough to model spatial planning with translations and rotations for high-axis CNC machines. However, there are computational challenges in extending FFT-based convolutions to rapidly generate MRVs with rotational degrees of freedom. In this paper, we extend the earlier implementation for 3axis machining to uni-axial turning with translations along or normal to the (unchanging) rotation axis. The goal is to develop the necessary ingredients for combined mill-turn CAPP. However, we do not consider general translations and rotations in this paper.

1.2. Contributions & outline

This paper describes the key ingredients to extend our feature-free approach to turning process planning (alongside milling) with the end goal of enabling mill-turn CAPP. illustrates the four components of an end-to-end turning process planner, which we elaborate in Section 3:

Figure 2. There are 4 main components in our end-to-end process planner for turning: 1) identifying turning axes; 2) fixturing considerations; 3) turning action generation; and 4) turning process planning; discussed in Sections 3.1, 3.2, 3.3, and 3.4, respectively. The 3D models in this and following figures are imaginary parts created in Onshape (https://www.onshape.com/).

Figure 2. There are 4 main components in our end-to-end process planner for turning: 1) identifying turning axes; 2) fixturing considerations; 3) turning action generation; and 4) turning process planning; discussed in Sections 3.1, 3.2, 3.3, and 3.4, respectively. The 3D models in this and following figures are imaginary parts created in Onshape (https://www.onshape.com/).

  • Section 3.1 presents a generic method to identify one or more candidate axes for turning for a given solid model using the notion of a turnable closure (TC).

  • Section 3.2 discusses fixturing of partially turnable parts via multi-jaw chucks.

  • Section 3.3 uses the above results to define a collection of turning “actions” based the notion of maximal turnable volumes (MTV).

  • Section 3.4 explains how turnability analysis is performed for predefined sets of turning actions by comparing the complement of the union of all MTVs with the TC, and how the actions are ordered by a planner to minimize the cost.

We review some of the earlier work in Section 2 on volumetric feature-based turnability analysis (Section 2.1) and turning process planning (Section 2.2).

2. Related work

Over the past few decades, extensive research has been done on feature recognition and process planning for turning. Here we restrict ourselves to a brief overview that is by no means comprehensive. See Al-Wswasi, Ivanov, and Makatsoris (Citation2018); Babic et al. (Citation2008); ElMaraghy (Citation1993); Shah et al. (Citation1991); Weill et al. (Citation1982); Xu et al. (Citation2011) for thorough reviews of feature-based CAPP methods.

2.1. Characterizing turnability

Srinivasan, Liu, and Fu (Citation1985) and Li (Citation1988); Li and Hwang (Citation1989) developed methods for recognition of rotational features (i.e., revolved 2D profiles) and proposed methods to identify non-turning features. The goal was to map CAD data into data structures suitable for integration with CAPP/CAM. Starting from the observation that most feature identifiers treat rotational and prismatic features Tseng and Joshi (Citation1994, Citation1998) developed a ‘machining volume generation’ method to analyze parts with both features. The machining volumes were generated by sweeping part boundaries and classified into machining features/zones by face adjacency relationships.

Dutta, Kim, Kim, Wang, and Yip-Hoi (Citation1997) also presented a volumetric method for feature extraction for mill-turn machining. Yip-Hoi and Dutta (Citation1997) introduced the notions of maximum turnable state (MTS) and maximum turnable volume (MTV), allowing extraction of both isolated and interacting turning features, and introduced algorithms for computing them. Later, Wilharms, Dutta, Murty, and Still (Citation1999) expanded upon computing and applying the concept of maximum turnability. More recently, Liu, Huang, Liu, and Wu (Citation2017) proposed to add additional feature-based semantics to MTS to handle extreme faces or concave interiors. The MTS and MTV are closely related to our notions of turnable closures and turnable volumes presented in subsequent sections. Importantly, we present a stronger notion of turnability that reaches beyond merely testing for axisymmetry around a given axis and considers the specific (and arbitrary) shape of the available tool inserts, their external/internal accessibility, and collision avoidance between all stationary and moving components on a lathe machine, using configuration space analysis (Lozano-Perez, Citation1983).

Recognizing the difficulties arising from topological alterations caused by feature interaction, Li and Shah (Citation2007) argued for the importance of user-defined features incorporated using a neutral feature representation language called ‘N-rep.’ Their method extracted the profiles of the revolved faces and detected the remaining non-turnable features. It used a combination of graph-based representation of interactions and rule-based recognition of user-defined features. In a related work, Gaines and Hayes (Citation1999) presented an extendable representation to allow users to add their custom tool descriptions to the knowledge base of a resource-adaptive feature recognizer.

2.2. Turning process planning

The economic impact of optimal parallel mill-turn process planning has been recognized for years. Levin, Dutta, and Bean (Citation1996) developed an early prototype CAPP system called PMPS for parallel machining. Chiu, Fang, and Lee (Citation1999) formulated the problem as mixed integer programming (MIP) and proposed a genetic algorithm (GA) to optimize operation sequencing. Norman and Bean (Citation2000) addressed a similar sequencing problem for multiple spindle machines as a scheduling problem with a fixed operation sequence. Zhang, Saravanan, and Fuh (Citation2003) also addressed scheduling optimization and applied iterative modifications to process plans until the predefined optimization objective was obtained. Zhang and Yan (Citation2005) formulated process planning as a nonlinear MIP problem and solved it using a hybrid GA, starting from rule-based heuristics such as min/max processing times. Chung and Suh (Citation2008) developed a branch-and-bound based heuristic algorithm to generate nonlinear process plans – i.e., plans that account for alternative manufacturing resources (Kruth & Detand, Citation1992). More recently, Mohammadi, Karampourhaghghi, and Samaei (Citation2012) used a hybrid simulated annealing (SA) algorithm for multi-objective optimization of process plans, viewed as a linear MIP problem. Su, Chu, Zhang, and Chen (Citation2015) considered turning process planning as a multi-objective optimization problem with precedence constraints. They applied a graph-based hybrid GA to avoid infeasible solutions and find process plans with minimal machining cost and maximal utilization. See the review article by Shen, Wang, and Hao (Citation2006) for more details about CAPP research on planning and scheduling. A recent survey of various artificial intelligence (AI) techniques ranging from GA and fuzzy logic to neural networks and knowledge-based systems over the period 1985–2010 can be found in (Deivanathan, Citation2019).

Our approach to process planning is to map the problem to use combinatorial search techniques such as the A  algorithm and iterative deepening (Russell & Norvig, Citation2016) to find several near-optimal, qualitatively distinct process plans. The results are presented to the user (e.g., manufacturing engineer or machinist) as alternatives, so that they can select the best plan while considering additional criteria that might not have been accounted for by the planner. The planning strategies that we use for turning are similar to the ones used in earlier work on milling (Nelaturi et al., Citation2015), hence will not be repeated in this paper.

3. Methodology

Our method does not make any assumptions on the representation or the availability of CAD semantics to facilitate process planning. It can be applied to parts of arbitrarily complex shape in any geometric representation or file format, including polyhedral meshes (e.g., STL) or voxelized models (e.g., VDB) with no feature semantics. However, it does not preclude one from using CAD semantics whenever available; for instance, to look for the rotation axis among the axes of cylindrical and conical surfaces and curves in boundary representations (B-reps) or revolution features in feature-trees to rapidly shortlist the viable options. Below, we described the four components of turning CAPP for arbitrary representation schemes.

3.1. Identifying turning axes

For exactly axisymmetric parts () the obvious choice for a turning axis is the axis of rotational symmetry, obtained by solving an eigen-value/eigen-vector problem. Axisymmetric parts have a unique principal axis that coincides with the axis of rotational symmetry, and a class of nonunique pairs of orthogonal principal axes in the plane of cross-section. Although eigen-analysis is a generic and representation-agnostic method of finding the axis, a simpler and faster investigation may suffice when a part – known a priori to be axysimmetric – is given in a representation scheme with explicit information about revolute surfaces (e.g., B-reps or feature-trees).

Figure 3. Converting a given target part in (a) to its TC in (b), by sweeping the part for a full rotation around a given axis a (dash-dot red line). The resulting superset (i.e, larger part) can be potentially manufactured by pure turning with the right combinations of tools, and leaves as little volume as possible for other pre-/post-processing machining operations. The same part is shown from two views (top and bottom).

Figure 3. Converting a given target part in (a) to its TC in (b), by sweeping the part for a full rotation around a given axis a (dash-dot red line). The resulting superset (i.e, larger part) can be potentially manufactured by pure turning with the right combinations of tools, and leaves as little volume as possible for other pre-/post-processing machining operations. The same part is shown from two views (top and bottom).

The challenge is that functional parts are not always axisymmetric ((a)), although they might have some degree of axisymmetry that makes them suitable for turning before/after other (more expensive) machining processes. Hence, we need a precise measure of approximate axisymmetry for a part of arbitrary shape around a given axis, which can be determined uniquely and unambiguously regardless of its representation (i.e., data structures) or feature semantics. Our goal is to identify the ‘best’ choice of rotation axis when there is no such thing as an axis of symmetry. Eigen-vectors do not necessarily constitute the best choice; however, they do provide a good starting point to gradient-descent search for ‘better’ options.

Intuitively, one axis is better than another if it enables producing a solid that is closer to the target by turning alone. In other words, if one removes as much material as possible from a bar stock that is being turned around a given axis of rotation on a lathe machine, the remaining volume is the closest possible axisymmetric superset of the part. Here, the ‘closest’ means the set difference between the turned solid and the target solid has minimal volume among all possible choices of the rotation axis. This would ensure that turning is exploited as much as possible for minimal cost – assuming that turning is one of the cheapest operations and its cost is proportional to the removed volume. The difference can be machined by other means (e.g., milling) in pre-/post-processing. We call this axisymmetric solid the turnable closure (TC) of the part with respect to a given turning axis.

For a given target part Ptarg, we denote its TC with respect to an axis ɑ by Ptarg:=Θ(Ptarg;a), where Θ(;a) is the revolution operator (i.e., sweep for uni-axial rotation) around a, which is a well-defined solid modeling operator, defined irrespective of the representation scheme (Requicha, Citation1980). Note that the TC is a superset of the original part (PtargPtarg). One should choose the axis ɑ in such a way that the volume of the set difference, denoted by vol[PtargPtarg] is minimized for pre-/post-processing (e.g., milling, drilling, wire-cutting, etc.). This is justified because:

  1. for a fixed toolset, the machining cost per tooling is approximately proportional to a given tool’s total removed volume; and

  2. turning is often the least expensive of all machining operations, thus it makes sense to leave as little volume as possible for subsequent processes.

The turnability ratio (TR) of the part is defined by γ(Ptarg):=vol[Ptarg]/vol[Ptarg]. In general, 0<γ1. The closer this ratio is to unity, the more turnable the target part is, leaving a smaller volume fraction (1γ)/γ for the non-turnable features to other machining processes.

The goal is to find one or more axes ɑ that maximize the TR and get it as close as possible to unity. This is an optimization problem that can be solved using any number of gradient-descent techniques. Computing the objective function (i.e., TR) at every iteration requires computing a 3D sweep of the part (), which is computationally expensive. However, computing rotational sweeps can be reduced to 2D unions over longitudinal sections or solid-circle intersection tests, which lead to the following dual approaches, respectively:

Figure 4. An investigation of the CAD model leads to a set of candidate axes, e.g., of cylindrical faces in this example. One clearly stands out as it results in the smallest TC.

Figure 4. An investigation of the CAD model leads to a set of candidate axes, e.g., of cylindrical faces in this example. One clearly stands out as it results in the smallest TC.

  • Explicit Approach: The part is sliced into a collection of longitudinal sections. The sections are projected onto the same 2D plane, and their union is computed using planar Boolean operations. These operations can be computed rapidly on polygonal approximations of the sections sliced from polyhedral mesh B-reps (e.g., STL) or on bitmap images sliced from voxel-maps (e.g., VTK or VDB). The TC is obtained explicitly by repeating the same longitudinal section around the given axis of revolution ().

    Figure 5. The explicit approach to determining the TC requires projecting a large number of longitudinal sections onto the same 2D plan and computing their union.

    Figure 5. The explicit approach to determining the TC requires projecting a large number of longitudinal sections onto the same 2D plan and computing their union.

  • Implicit Approach: The TC is never explicitly computed in this approach. Rather, it is implicitly characterized by point membership classification (PMC) devised by intersecting orbits of every query point with the target part. As such, every longitudinal section is rasterized into a 2D image by deciding each point’s in/out classification depending on whether its orbit intersects the target part. This can be interpreted as the 3D voxelization of the axisymmetric TC in a polar-cylindrical frame ().

    Figure 6. The implicit approach to determining the TC requires a PMC test against it, which is obtained by performing intersection tests between orbits and the solid.

    Figure 6. The implicit approach to determining the TC requires a PMC test against it, which is obtained by performing intersection tests between orbits and the solid.

The implicit approach does not rely on computing an explicit representation of the actual revolution volume to obtain the volume fraction, which is all we need to compute the TR for this step. This computation has a perfectly (i.e., embarrassingly) parallel nature, well-suited for a multi-core CPU or many-core GPU.

To find one or more axes that lead to maximum turnability ratios, various sampling techniques can be used. If CAD semantics for the target part Ptarg are available, the CAD model can be mined to find a reasonable collection of axis with high likelihood of being the turning axes (e.g., axes of circular sketches or revolved surfaces). Otherwise, uniform or random sampling can be used followed by standard iterative optimization. As an additional heuristic, the principal axes (of volume or surface) of the target part Ptarg can be used to initially rank the sampled axes based on their closeness to one the principal axis, and shortlist the candidate axes before evaluating their turnability ratios. This is motivated by the fact that for perfectly axisymmetric parts (i.e., γ=1) the turning axis is identical with the unique principal axis; therefore, for parts with a high degree of axisymmetry (i.e., γ1) the two must be close to each other.

and illustrate the mechanics of explicit and implicit approaches, respectively, to computing the turnable closures and turnability ratios. The same dual theme will emerge in the subsequent sections for other computations, most notably in Section 3.3 in which a stronger notion of turnability is presented by considering the precise fixturing constraints, tool geometry, and tool setup.

To simplify the following steps, the world coordinate system (WCS) is chosen to have one of its axes aligned with the spindle’s turning axis, and its origin at an arbitrary point on the spindle (e.g., chuck center). The initial configurations (denoted by Tinit) are the rigid transformations that map the target part Ptarg and its turnable closure Ptarg from the arbitrary local coordinate system (i.e., input representation) to the WCS by aligning a given candidate turning axis with the spindle axis. The transformed parts are denoted by Pinit=TinitPtarg and Pinit=TinitPtarg as illustrated in .

Figure 7. The first transformation positions and orients the part’s TC to align with the machine axis in (a). The different grip configurations are obtained by a discrete set of subsequent rigid transformations (b–d) which are screw motions (top) with or without an additional flip of axis direction (bottom).

Figure 7. The first transformation positions and orients the part’s TC to align with the machine axis in (a). The different grip configurations are obtained by a discrete set of subsequent rigid transformations (b–d) which are screw motions (top) with or without an additional flip of axis direction (bottom).

3.2. Fixturing considerations

To simplify the discussion, we restrict our attention to simple two-jaw vises or multi- jaw chucks that require adequate grip at two or more contact points arranged evenly around the spindle. This restriction simplifies automated reasoning for picking the proper grip configuration, i.e., positions and orientations of the workpiece on the lathe machine. Nonetheless, the idea can be generalized to collets, mandrels, face plates, and more complex special-purpose fixtures whose contact geometry requires considering their particular geometric shape and contact properties. See the earlier work by Nelaturi et al. (Citation2015) on automated techniques for modular fixture reconfiguration for milling, using fast hashing algorithms to generate form/force closure grips. These techniques can in principle be extended from milling to turning, but are beyond the scope of this paper.

illustrates a simple fixturing scenario in which a bar stock is gripped at one of the two ends to turn most of the features without opening the chuck, leaving only the final cutting and finishing to be performed after flipping the workpiece around, re-fixturing, and adjusting the runout with the aid of dial indicators. Every grip configuration has to satisfy an additional condition; namely, at every fraction of a full turn (e.g., one-half, one-third, one-fourth, etc. depending on the chuck), there must exist a cylindrical surface patch of sufficient surface area along the chuck jaws, i.e., a subset of the target part’s boundary has a constant distance from the turning axis and extends along a sufficient length in both longitudinal and circumferential directions.

As illustrated in , the contact surfaces need not be connected. If we assume the contact between the jaws and the cylindrical surface of the part to happen along line segments, multiple such segments can exist at each jaw. Each segment needs to be lower-bounded in length for proper grip and positioned carefully against the jaw profile to prevent damaging the finished surfaced. In addition, if the part has pre-existing non-axisymmetric features (e.g., milled in a previous machining step), each jaw may have a different contact profile, all of which must satisfy the proper grip conditions at some initial rotation of the workpiece relative to the spindle.

The grip configurations (denoted by Tgrip) are the rigid transformations that map the target part Pinit and its TC Pinit from the initial configuration on the WCS to an adjusted position along and orientation around the spindle axis. The transformed parts are denoted by Pfix=TgripPinit and Pfix=TgripPinit.

The fixture configurations (denoted by Tfix) are the composite maps Tfix=TgripTinit. Therefore, we obtain Pfix=TfixPtarg and Pfix=TfixPtarg.

3.3. Turning action generation

For every candidate grip configuration along/around the axis, a turning action is used to as close as possible to the TC with a given tool. Several such actions (with different tools) may be needed before opening the chuck and re-fixturing. Each tool provides a different specialized functionality such as face-, side-, and form-milling, external vs. internal milling, and sawing, different tool insert profiles, hardness properties, surface qualities, and so on.

For a given grip configuration and a particular toolset, the turning actions are defined in terms of the maximal turnable volumes (MTV) by each tool at different tool configurations. Each MTV depends on:

  1. tool insert profile, which determines the smallest removable features;

  2. tool configuration, which determines reachability (e.g., for internal turning);

  3. collision avoidance between the inactive parts of the moving tool assembly (e.g., tool stem, tool holder, cross/compound slides, and carriage) and the turning chuck/spindle at any relative configuration; and

  4. geometric forming, which requires the to avoid penetrating the target part’s geometry at any relative configuration.

The MTV is the largest subset of the target part’s complement that can be turned by a given tool at a given setting on the tool holder without penetrating into the target shape or collision between stationary, rotating, and sliding machine components.

The first step to formalize the MTV is to consider the degrees of freedom (DOF) of the machine, and all possible modes of relative motion between the part and tool assembly that are constrained due to accessibility and collision avoidance. shows a schematic of a conventional lathe machine to illustrate its DOF.

Figure 8. A simplified sketch of the stationary, rotating, and sliding components in the workspace of a simple lathe machine. The planar motion of the sliding components is measure from their 0-position, arbitrarily chosen to be at the world coordinate system’s origin (i.e., spindle center).

Figure 8. A simplified sketch of the stationary, rotating, and sliding components in the workspace of a simple lathe machine. The planar motion of the sliding components is measure from their 0-position, arbitrarily chosen to be at the world coordinate system’s origin (i.e., spindle center).

We use the common notion of a configuration space obstacle (Cobstacle for short) (Lozano-Perez, Citation1983) to formally define the MTV. The Cobstacle defines the transformations of the sliding components (i.e., the entire tool assembly) that would result in an undesirable collision event with the stationary and/or rotating parts of the machine (e.g., head and tail stocks, spindle, and chuck’s revolving closure) or with the interior of the target part itself. The undesirable collisions include:

  • collisions that result in damaging the machine or safety hazards, e.g., the tool assembly collides with the rotating chuck; and

  • collisions that lead to extra material removal, i.e., the tool insert penetrates into the target shape, cutting more than it should.

Note that the tool insert can still interfere with the rotating bar stock to remove the regions outside the target TC.

Given the TC Pfix in its fixtured configuration, let Pfix denote the union of the TC with the revolution (i.e., rotational sweep) of the chuck K along the turning axis. Recalling from earlier sections that Pfix=TfixΘ(Ptarg;a), we can account for the chuck by letting Pfix=TfixΘ(PtargK;a), where Tfix=TgripTinit. Consider a tool assembly T=(HC) where C is the cutter (i.e., tool insert) and H is the remaining moving parts. The Cobstacle is defined by O(Pfix,T).

Let us assume that the tool orientation remains fixed during every turning, i.e., every time the tool is re-oriented on the tool holder, whatever it removes afterwards counts as a new action. We use a fundamental result in spatial reasoning that the Cobstacle for translations can be computed as the (interior of) Minkowski sum of the stationary and reflection of moving components (Lysenko et al., Citation2010):

(1) O(Pfix,T)=(PfixT1)=(TgripTinitΘ(PtargK;a))(HC)1(1)

where ()1 stands for reflection with respect to the WCS origin. If W represents the set of all translations accessible to the tool, bounded by the motion range of the carriage and cross/compound slides, the maximal set of translations the result in no undesirable collisions is F(Pfix,T):=WO(Pfix,T)=(PfixT1)c, where ()c stands for set complement (i.e., ‘negative’ space) in W.

The 3D sweep of the tool insert along this maximal set of motions yields the maximal volume in the 3D space that does not result in undesirable collisions. This is obtained as a Minkowski sum of the maximal set of motions with the tool insert (Nelaturi et al., Citation2015), followed by an additional revolution (i.e., rotational sweep). The latter converts the maximal volume swept by the tool to the maximal volume removed from the bar stock due to rapid turning:

(2) Q(Pfix,H,C)=Θ(F(Pfix,T)C;a)=Θ((PfixT1)cC;a)(2)

The tool geometry is commonly such that the MTV can be computed by sweeping only the largest horizontal cross-section (i.e., top face) of the tool insert in two steps: first along the maximal accessible configurations (i.e., 2D translations); then around the turning axis. With these assumptions, the problem reduces to computing Minkowski operations in 2D, between longitudinal section of the target part’s TC and the tool insert cross-section. Once again, the two alternative approaches are:

  • Explicit Approach: The longitudinal section of the target part’s TC in its fixtured configuration obtained earlier is used to compute the longitudinal section of the MTV by Minkowski operations in 2D. These operations can be implemented rapidly on polygonal approximations of the sections sliced from polyhedral mesh B-reps (e.g., STL) or on bitmap images sliced from voxel-reps (e.g., VTK or VDB). The MTV is obtained explicitly by repeating the longitudinal section around the given axis of revolution.

  • Implicit Approach: Earlier, we devised a PMC test for the target part’s TC in its fixtured configuration, which led to a 2D image representation of its longitudinal section. The PMC test against the MTV can be conceptualized as a convolution applied to this image (Kavraki, Citation1995), using the tool’s cross-section image as a filter. The resulting 2D image is the longitudinal section of the MTV. This can be interpreted as the 3D voxelization of the axisymmetric MTV in a polar-cylindrical frame.

Once again, the implicit approach has several computational advantages. Most importantly, convolutions on 3D images can be computed rapidly via FFTs (Kavraki, Citation1995) for which optimal parallel implementations exist on both CPU and GPU.

It is also worthwhile emphasizing that the commonly used notions of ‘accessibility’ or ‘reachability’ are implicitly encoded into the MTVs, whose rapid computation does not rely on any simplifying assumption on the part or tool geometry, or that of any other component in the lathe machine’s workspace.

illustrates the MTVs for a few tools at different tool setup. The same tool can generate different MTVs for each choice of turning axis, grip configuration, and tool setup configuration. Each choice and its corresponding MTV define a separate turning ‘action’ generated independently (and in parallel).

Figure 9. The MTVs for different tool profiles and setup configurations with the same grip/fixturing configuration. The computations are reduced to Minkowski operations on the longitudinal sections.

Figure 9. The MTVs for different tool profiles and setup configurations with the same grip/fixturing configuration. The computations are reduced to Minkowski operations on the longitudinal sections.

3.4. Turning process planning

Once a collection of actions and their effects in terms of the MTVs are precomputed, the combinatorial space of all possible sequences of actions (i.e., process plans) is a partially ordered set of state transitions for the workpiece as it evolves from being a bar stock to the complement of the union of all MTVs. Every action’s cost is assumed to be proportional to the total volume removed, which is computed as the intersection of that action’s MTV with the action’s input (i.e., intermediate state) at each step.

Importantly, an early manufacturability test can be defined by simply computing the union of all MTVs for any subset of actions, removing the union from the bar stock, and comparing it with the part’s TC (). Given several tools T1=(HC1), T2=(HC2), , Tn=(HCn), each represented in the properly oriented cofiguration on the tool holder, the as-turned shape is obtained by:

(3) Pfix=S(Q(Pfix;H,C1)Q(Pfix;H,C2)Q(Pfix;H,Cn))(3)

i.e., Pfix=S1i<nQi, where S stands for the bar stock. In general, the as-turned shape is a superset of the target shape (PfixPfix) due to small non-removable features (e.g., due to high-curvature fillets) or inaccessible tool configurations (e.g., due to tool stem and part collision). The turnability test for the given set of tools is to check whether the set difference (PfixPfix) is small enough (e.g., within tolerance). This is a stronger test for turnability than axisymmetry used to obtain the TC, taking into account the precise shape and orientation of the tool assembly, the smallest features it can remove, and the regions it can reach in the part. If the test fails, the part is not manufacturable with the given set of actions created from the sampled turning axes, grip configurations, setup configurations, and tool insert profiles. For turnability test, the union operation can be done in any order, regardless of the actual order in which the actions are called in a given process plan. Hence, the manufacturability test can be done prior to process planning.

If the TC passes the test, a standard AI search algorithm (e.g., the A* algorithm) (Russell & Norvig, Citation2016) can be used to find cost-optimal plan(s) (). The cost is typically defined in terms of the lathe hour-rate, modified to account for the tool wear-and-tear (e.g., cost per time of operation) denoted by ci>0 and tool feed rate (e.g., volume removal per time) denoted by fi>0. If the ith action removes a volume of vi0, the expected cost of the action is cost[vi]=civi/fi. The removed volume can be obtained as the volume of the set difference between action’s MTV Qi=Q(Pinit;H,Ci) and the workpiece in its intermediate state, which depends on the previous actions. If a plan is specified by the permutation of the indices such that i=1,2,,n represent the order in which the actions are applied, the total cost is:

(4) cost=1incost[vi]=1incifivolQiS1j<iQj(4)

Figure 10. An example turning process plan. The intersection of the MTV with the workpiece at each intermediate state is the actual turned volume, which is used to estimate the cost of that step.

Figure 10. An example turning process plan. The intersection of the MTV with the workpiece at each intermediate state is the actual turned volume, which is used to estimate the cost of that step.

Noting that S1j<iQj represents the workpiece in its intermediate state after applying the first (i1) actions, i.e., removing the first (i1) MTVs from the bar stock. illustrates one possible plan and the longitudinal cross-section of the actual removed volumes for the MTVs shown in .

4. Conclusion

With the wide availability of high-axis CNC machines with mill-turn functionalities, it is paramount for a practical CAPP solution to be able to reason about both milling and turning for complex designs with interacting features. Parts produced via turning are generally cheaper due to higher availability of lathe machines and lower machine-hour rates and tool inserts compared to milling. In addition, the surface quality and precision obtained by turning is usually unattainable by other means, even if machining the nominal geometry is feasible (e.g., via milling).

In this paper, we reported on extending a powerful feature-free approach for CAPP (Nelaturi et al., Citation2015) based on configuration space modeling (Lozano-Perez, Citation1983) from milling to turning. For parts of arbitrarily complex shape – with possibly missing or complicated feature semantics – our framework is capable of automatically determining manufacturability for a given set of tools and grip/setup configurations in terms of maximal removable volumes. It further generates a sequence of high-level turning actions by rapidly searching through the space of possible process plans for the most cost-effective solutions.

Acknowledgments

This research was funded by Sandvik Coromant. The responsibility for any errors or omissions lies solely with the authors.

Additional information

Funding

This work was supported by Sandvik Coromant, Sweden.

References

  • Alting, L., & Zhang, H. (1989). Computer aided process planning: The state-of-the-art survey. The International Journal of Production Research, 270(4), 553–585.
  • Al-Wswasi, M., Ivanov, A., & Makatsoris, H. (2018). A survey on smart automated computer-aided process planning (ACAPP) techniques. The International Journal of Advanced Manufacturing Technology, 970(1–4), 809–832.
  • Babic, B., Nesic, N., & Miljkovic, Z. (2008). A review of automated feature recognition with rule-based pattern recognition. Computers in Industry, 590(4), 321–337.
  • Chiu, N. C., Fang, S. C., & Lee, Y. S. (1999). Sequencing parallel machining operations by genetic algorithms. Computers & Industrial Engineering, 360(2), 259–280.
  • Chung, D. H., & Suh, S. H. (2008). ISO 14649-based nonlinear process planning implementation for complex machining. Computer-Aided Design, 400(5), 521–536.
  • Deivanathan, R. (2019). A review of artificial intelligence technologies to achieve machining objectives. In A. Haldorai & A. Ramu (Eds.), Cognitive social mining applications in data analytics and forensics (pp. 138–159). Hershey, PA: IGI Global.
  • Dutta, D., Kim, Y. S., Kim, Y., Wang, E., & Yip-Hoi, D. (1997). Feature extraction and operation sequencing for machining on mill-turns. In Proceedings of the 1997 ASME Design Technical Conferences (DETC’1997) (pp. 46–56), Sacramento, CA. DETC97/CIE-4276.
  • Eftekharian, A. A., & Campbell, M. I. (2012). Convex decomposition of 3D solid models for automated manufacturing process planning applications. In Proceedings of the 2012 ASME IDETC/CIE’2012 (pp. 727–735). Chicago, IL: American Society of Mechanical Engineers (ASME).
  • ElMaraghy, H. A. (1993). Evolution and future perspectives of CAPP. CIRP Annals, 420(2), 739–751.
  • Fu, W., Eftekharian, A. A., Radhakrishnan, P., Campbell, M. I., & Fritz, C. (2012). A graph grammar based approach to automated manufacturing planning. In Proceedings of the 2012 ASME IDETC/CIE’2012 (pp. 77–88). Chicago, IL: American Society of Mechanical Engineers (ASME).
  • Gaines, D. M., & Hayes, C. C. (1999). CUSTOM-CUT: A customizable feature recognizer. Computer-Aided Design, 310(2), 85–100.
  • Haralick, R. M., Sternberg, S. R., & Zhuang, X. (1987). Image analysis using mathematical morphology. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI–90(4), 532–550. ISSN 0162-8828.
  • Hoffmann, C., & Shapiro, V. (2017). Chapter Solid Modeling. In J. E. Goodman, J. O'Rourke, and C. D. Tóth (Eds.), Handbook of discrete and computational geometry (3rd ed.). Boca Raton, FL: CRC Press.
  • Joshi, S. B., & Chang, T. C. (1988). Graph-based heuristics for recognition of machined features from a 3D solid model. Computer-Aided Design, 200(2), 58–66.
  • Kavraki, L. E. (1995). Computation of configuration-space obstacles using the fast Fourier transform. IEEE Transactions on Robotics and Automation, 110(3), 408–413. ISSN 1042-296X.
  • Kim, Y. S. (1992). Recognition of form features using convex decomposition. Computer-Aided Design, 240(9), 461–476.
  • Kruth, J. P., & Detand, J. (1992). A CAPP system for nonlinear process plans. CIRP Annals-Manufacturing Technology, 410(1), 489–492.
  • Levin, J. B., Dutta, D., & Bean, J. C. (1996). PMPS: A prototype CAPP system for parallel machining. Transactions-American Society of Mechanical Engineers Journal of Manufacturing Science and Engineering, 118, 406–414.
  • Li, R. K. (1988). A part-feature recognition system for rotational parts. The International Journal Of Production Research, 260(9), 1451–1475.
  • Li, R. K., & Hwang, T. Z. (1989). A part-feature recognition system for rotational parts—Non-turning features. International Journal of Computer Integrated Manufacturing, 20(5), 257–267.
  • Li, S., & Shah, J. J. (2007). Recognition of user-defined turning features for mill/turn parts. Journal of Computing and Information Science in Engineering, 70(3), 0225–235.
  • Liu, L., Huang, Z., Liu, W., & Wu, W. (2017). Extracting the turning volume and features for a mill/turn part with multiple extreme faces. The International Journal of Advanced Manufacturing Technology. ISSN 1433-3015. doi:10.1007/s00170-017-0862-4.
  • Lozano-Perez, T. (1983). Spatial planning: A configuration space approach. IEEE Transactions on Computers, C–320(2), 108–120. ISSN 0018-9340.
  • Lysenko, M., Nelaturi, S., & Shapiro, V. (2010). Group morphology with convolution algebras. Proceedings of the 14th ACM Symposium on Solid and Physical Modeling (SPM’2010) (pp. 11–22), Haifa, Israel. ACM. ISBN 978-1-60558-984-8.
  • Mohammadi, G., Karampourhaghghi, A., & Samaei, F. (2012). A multi-objective optimisation model to integrating flexible process planning and scheduling bsed on hybrid multi-objective simulated annealing. International Journal of Production Research, 500(18), 5063–5076.
  • Nelaturi, S., Burton, G., Fritz, C., & Kurtoglu, T. (2015). Automatic spatial planning for machining operations. In 2015 IEEE International Conference on Automation Science and Engineering (CASE) (pp. 677–682). doi: 10.1109/CoASE.2015.7294158.
  • Norman, B. A., & Bean, J. C. (2000). Scheduling operations on parallel machine tools. IIE Transactions, 320(5), 449–459.
  • Perng, D. B., Chen, Z., & Li, R. K. (1990). Automatic 3D machining feature extraction from 3D CSG solid input. Computer-Aided Design, 220(5), 285–295.
  • Requicha, A. A. G. (1980). Representations for rigid solids: Theory, methods, and systems. ACM Computing Surveys (CSUR), 120(4), 437–464.
  • Russell, S. J., & Norvig, P. (2016). Artificial intelligence: A modern approach (3rd ed.). London, UK: Pearson.
  • Serra, J. (1983). Image analysis and mathematical morphology. Cambridge, MA: Academic Press, Inc. ISBN 0126372403.
  • Shah, J., Sreevalsan, P., & Mathew, A. (1991). Survey of CAD/feature-based process planning and NC programming techniques. Computer-Aided Engineering Journal, 80(1), 25–33.
  • Shen, W., Wang, L., & Hao, Q. (2006). Agent-based distributed manufacturing process planning and scheduling: A state-of-the-art survey. IEEE Transactions on Systems, Man, and Cybernetics, Part C (applications and Reviews), 360(4), 563–577. ISSN 1094-6977.
  • Srinivasan, R., Liu, C. R., & Fu, K. S. (1985). Extraction of manufacturing details from geometric models. Computers & Industrial Engineering, 90(2), 125–133. ISSN 0360-8352.
  • Su, Y., Chu, X., Zhang, Z., & Chen, D. (2015). Process planning optimization on turning machine tool using a hybrid genetic algorithm with local search approach. Advances in Mechanical Engineering, 70(4), 1687814015581241.
  • Tseng, Y. J., & Joshi, S. B. (1994). Recognizing multiple interpretations of interacting machining features. Computer-Aided Design, 260(9), 667–688.
  • Tseng, Y. J., & Joshi, S. B. (1998). Recognition of interacting rotational and prismatic machining features from 3-D mill-turn parts. International Journal of Production Research, 360(11), 3147–3165.
  • Vandenbrande, J. H., & Requicha, A. A. G. (1993). Spatial reasoning for the automatic recognition of machinable features in solid models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 150(12), 1269–1285. ISSN 0162-8828.
  • Weill, R., Spur, G., & Eversheim, W. (1982). Survey of computer-aided process planning systems. CIRP Annals, 310(2), 539–551.
  • Wilharms, J., Dutta, D., Murty, K., & Still, G. (1999). On the determination of the maximum turnable state of a part. In H. Kals & F. van Houten (Eds.), Integration of process knowledge into design support systems: Proceedings of the 1999 CIRP international design seminar, University of Twente, Enschede, Netherlands, 24–26 March, 1999 (pp. 109–118). Dordrecht: Springer.
  • Wu, M. C., & Lit, C. R. (1996). Analysis on machined feature recognition techniques based on B-rep. Computer-Aided Design, 280(8), 603–616.
  • Xu, X., Wang, L., & Newman, S. T. (2011). Computer-aided process planning–A critical review of recent developments and future trends. International Journal of Computer Integrated Manufacturing, 240(1), 1–31.
  • Yip-Hoi, D., & Dutta, D. (1997). Finding the maximum turnable state for mill/turn parts. Computer-Aided Design, 290(12), 879–894.
  • Zhang, X. D., & Yan, H. S. (2005). Integrated optimization of production planning and scheduling for a kind of job-shop. The International Journal of Advanced Manufacturing Technology, 260(7), 876–886.
  • Zhang, Y. F., Saravanan, A. N., & Fuh, J. Y. H. (2003). Integration of process planning and scheduling by exploring the flexibility of process planning. International Journal of Production Research, 410(3), 611–628.