APEM jowatal Advances in Production Engineering & Management Volume 10 | Number 1 | March 2015 | pp 18-26 http://dx.doi.Org/10.14743/apem2015.1.189 ISSN 1854-6250 Journal home: apem-journal.org Original scientific paper Tool selection for rough and finish CNC milling operations based on tool-path generation and machining optimisation Mwinuka, T.E.a*, Mgwatu, M.I.a aUniversity of Dar es Salaam, Department of Mechanical and Industrial Engineering, Dar es Salaam, Tanzania A B S T R A C T A R T I C L E I N F O Most of CAD/CAM systems lack fully-automated process planning capabilities and depend on semi-automatic capabilities that necessitate the traditional selection of tools and cutting parameters. This paper attempts to determine proper combinations of cutting tools through the generation of tool paths and optimisation of machining parameters using an example of the CNC milling process. Several machining simulations with different combinations of tool sizes were performed using MasterCAM software. Based on these simulations, substantial variations in tool paths were observed for different tool combinations and as such the optimum tool combination could only be obtained arbitrarily. The tool paths derived from machining simulations were used to optimise machining parameters, that is, cutting speed, feed rate and depth of cut with the objective of minimising production time. In this case, an optimisation model was developed as a nonlinear programming problem and solved using extended LINGO nonlinear software. The results show that the subjectivity when selecting cutting tools can be avoided when appropriate tools are chosen alongside with the generation of a tool path within a CAD/CAM system using optimised machining parameters. As a consequence, CNC machine tools could be effectively utilised and the productivity significantly improved at shorter production time and cost. © 2015 PEI, University of Maribor. All rights reserved. Keywords: CAD/CAM Milling operations Machining optimisation Nonlinear programming Tool-path generation Tool selection Corresponding author: tmwinuka@udsm.ac.tz (Mwinuka, T.E.) Article history: Received 30 December 2013 Revised 26 December 2014 Accepted 25 January 2015 1. Introduction Numerical Control (NC) technology has mainly contributed towards the automation of manufacturing processes specifically in metal cutting processes. In NC technology, numerical data are used to control operations of machine tools, material handling systems and inspection equipment in manufacturing of different products. The control is achieved through feeding the part program into the machine control unit (MCU). The accuracy and precision of components produced on NC machine tools is less dependent on skills of the operator but on the instructions contained in the part program. Actually, a computer numerical control (CNC) machine tool is accompanied with a computer where a part program can be prepared, stored and edited. MCU reads the instructions in the part program and interprets to allow the required movement of the worktable and spindle of the machine tools. Part programming can be done manually or with the aid of the computer. Manual part programming is time consuming, error prone and limited to simple geometry. In computer-assisted part programming, much of tedious computation tasks inherent in manual part programming are performed using high-level programming languages. Automatically Programmed Tools (APT) was one of the common languages employed to describe part geometry and specify tool 18 Tool selection for rough and finish CNC milling operations based on tool-path generation and machining optimisation motions. However, such programming systems are no longer common due to emerging of CAD/CAM systems which are more convenient in defining part geometries and specifying tool paths. A CAD/CAM system has a platform where a component can be modelled in CAD and its geometric data is accessed by a CAM system to generate tool paths achieving the requirements of NC programming. Several CAD/CAM systems are available in the market such as MasterCAM, Bob CADCAM, KELLER SYMPlus and EDGECAM. In order to accomplish a complete NC part program for application in a CNC machine tool, process planning activities should be integrated in the CAD/CAM system. Activities of process planning includes: (1) interpretation of product design data, (2) selection of machining operations, (3) sequencing of machining operations, (4) planning of work-holding, (5) selection of machine tools, (6) selection of cutting tools, (7) determination of optimal cutting parameters, and (8) determination of product routing. However, the literature shows that many of CAD/CAM systems lack fully-automated process planning capabilities but depend on semi-automatic applications which need several inputs from the user for feature identification, tool selection and determination of optimal cutting parameters. In other words, most of decisions in process planning are done manually with the assistance of a computer [1-4]. For example, most of the available CADCAM systems often do not generate optimum toolpath in CNC machining operations [5]. As a result, a full CAD/CAM integration has not yet been achieved. A number of researchers have worked on process planning for metal cutting operations in different details. An algorithm was developed in [6] for determining the biggest possible cutter for 2D milling operation for achieving highest production rate. The algorithm is centred on the tools ability to cover target region. For any point on a target region, there must be a permissible location for a cutter such that an area covered by a cutter is fully contained in a target region. The algorithm however did not deal with minimising production cost. The study by [7] addressed the problem of selecting a sequence of end milling cutters to machine a 2.5D pocket with the goal of incurring the minimum combined cost of tool wear and machining time. A two-dimensional contour offset approach was used to find accessible areas for various tools. The accessible areas were defined as the region within the 2D contour in that the tool can reach without gouging the boundary. The decomposition of the pocket into sub-pockets was carried out based on the accessible areas of various tools. All possible sequences can be represented as a directed graph. In the graph, the nodes represented the state of the stock after the tool named in the node has accomplished the machining operation. Upstream nodes in the graph have tools of larger diameter compared to downstream nodes. Edges were weighted with the cost of machining starting from one state of the stock to another. The research reported in [8] described a method for determining the optimal combination of cutting tool for 3D volumes or 2D profiles. Optimal tools were selected by considering residual materials that are inaccessible to oversized cutters and the relative clearance rates of cutters that can access these regions of the selected machining features. They used machining features and set of tool diameters to calculate tool access volumes and ultimately determine residual volumes. Researchers of [9] presented a method of selecting optimal tools from a set of feasible tools, considered global residual (due to presence of neck or island) and local residue (due to smallest concave radius in the pocket). They argued that the high number of tools is associated with pockets with global residue and is less than four. It was pointed out that the key factor in determining the number of tools in the optimal combinations is the ratio of the pocket area to the local residue area. When the pocket area is much larger than the local residue area, a roughing tool must be used to remove the main area of the pocket first. Some types of uncut area can occur in pocket milling but are not related to the two categories referred to by [9]. These may be caused by using large radial depth of cut, up to the size of tool diameter. The solution around this problem can be to reduce radial depth of cut or using tool paths with compensation for uncut regions as described in [10]. The tool compensation can allow radial depth of cut up to the size of tool diameter. In another attempt to avoid uncut areas especially at corners of the part, the tool may be offset by tool radius to create the first tool path, and then the remaining tool paths can be obtained by offsetting the previous tool paths by a distance of 0.85 multiplied by the diameter of the tool [11]. Researchers in [12] developed an optimised cutting tool selection model Advances in Production Engineering & Management 10(1) 2015 19 Mwinuka, Mgwatu as an input to CADCAM system to automatically machine recognised features based on ISO STEP format that enables information exchange within CADCAM software. In their work, a Rule-Based Knowledge and Decision System generates the cutter and inserts; then selects the cutting conditions from Sandvic Coromant database for each manufacturing feature. The optimisation of tool selection proposed by [13] used Artificial Intelligence whereby tool paths were considered alongside with tool selection method. In this work, tool paths were determined within Matlab environment and the optimisation problem was solved using Genetic Algorithm. However, the effect of machining strategy was not addressed. Previous work [14] showed that Genetic Algorithm has been the most widely used optimisation procedure for various objectives including reduction of cost, tool changing time and tool travel path, and minimising machining time. Other methods are Particle Swarm optimization (PSO), Artificial Neural Networks (ANN), Ant Colony Optimization (ACO) and Artificial Immune System (AIS). Although nowadays process planning can be achieved by using computer-aided process planning (CAPP) systems, the linkage of CAPP to CAD/CAM systems is still not well established. Much of the research work is yet to contribute into efficient commercial CAD/CAPP/CAM system with a reason that CADCAM systems (or NC generating software) still require a lot of user input especially in process planning. The optimum set of tools is specific for a particular geometry of a machining feature. Bigger tools can remove material from the work-part much faster but leave larger residual material and operate at higher production cost or time. The use of more than one tool may or may not necessarily lead to reduction in production cost or time. In such as situation, the use of optimisation procedure that is not implemented within CADCAM systems is inevitable. The major contribution of this study is based on the selection of cutting tools for CNC milling operations through tool-path generation and machining parameter optimisation. Specifically, the study is intended to create a geometric feature and perform extensive machining simulations on different sets of cutting tools to reveal the economics of CNC milling process in terms of production time. 2. Methodology Trial machining simulations for CNC milling operations were conducted on MasterCAM system. This system is commonly used in industries and has the capability of creating part geometries as well as generating tool paths and associated NC codes. Before simulations were done on MasterCAM, a test component was selected. The selected component was a side plate of a sugar-cane crusher. This component is geometrically complex with intricate pockets and islands as shown in Fig. 1(a) and Fig 1(b). 20 Fig. 1(a) A side plate of sugar-cane crusher in orthographic view Advances in Production Engineering & Management 10(1) 2015 Tool selection for rough and finish CNC milling operations based on tool-path generation and machining optimisation Tool combinations were selected in such a manner that bigger sets of tools can at least gouge the pocket of the work-piece and smaller sets of tools can pass through the smaller constrictions within the pockets. The following tool combinations were tried out: Single tools, two-tool combinations and three-tool combinations. For each simulation trial, the total length of the tool path for each tool was recorded. A radial width of cut equal to 0.85 of tool diameter was selected to avoid the existence of uncut regions. Since it is known that the length of the tool path and the corresponding machining time depends on the tool path strategy, e.g. spiral, zigzag, one way etc. [5, 15], the zigzag strategy was used throughout the machining tests. Previous works [16] shows that zigzag tool path is more favourable than any other strategy in terms of cycle time in rough machining of pockets. From simulations, it can be clearly noted whether or not there is any residual materials left on the work-piece. In order to obtain a comprehensive process plan, tool paths derived from machining simulations were used to optimise the machining parameters such as cutting speed, feed rate and depth of cut for CNC milling operations. The optimisation of machining parameters is conducted to achieve the best performance of the machine tool in terms of production time. The optimisation model for minimising production time needed for both rough and finish CNC milling operations can be formulated as follows: Fig. 1(b) A side plate of sugar-cane crusher in 3D view Minimise tp = nD¿L¿ | nD^~WTLiW^Zii lOOOVifiZi 1000Et + ô^ ryXj" — 1 .,aT-lfßT-l,YTt uí Jí uí Lr (1) Subject to: vj;