Next Article in Journal
Study on Hydrogen Direct Injection in RNG Combustion under Various Ignition Timings for Power Generation in a Retrofitted Gas Engine
Previous Article in Journal
Ongoing Multivariate Chemometric Approaches in Bioactive Compounds and Functional Properties of Foods—A Systematic Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptation of Symbolic Discrete Control Synthesis for Energy-Efficient Multi-Pocket Milling

by
Serkan Çaşka
1,*,† and
Mete Özbaltan
2,†
1
Department of Mechanical Engineering, Hasan Ferdi Turgutlu Technology Faculty, Manisa Celal Bayar University, 45400 Manisa, Türkiye
2
Department of Computer Engineering, Faculty of Engineering and Architecture, Erzurum Technical University, 25050 Erzurum, Türkiye
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Processes 2024, 12(3), 584; https://doi.org/10.3390/pr12030584
Submission received: 16 February 2024 / Revised: 7 March 2024 / Accepted: 11 March 2024 / Published: 14 March 2024
(This article belongs to the Section Automation Control Systems)

Abstract

:
In engineering, cost minimization, especially in Computer Numerical Control (CNC) machining like pocket milling, is crucial. Existing tool path definition software often lacks optimization, particularly at critical starting and ending points. This study optimizes CNC machine tool paths for energy-efficient multi-pocket milling, utilizing the Symbolic Discrete Control Synthesis (SDCS) method for formal correctness. In our work, the tool path generation is formulated as a traveling salesman problem. We introduce a modeling framework to adapt SDCS to multi-pocket-milling processes, aiming to enhance precision and efficiency for potential cost savings, including energy and time, in engineering applications. This study reports experimental and comparative results, where comparative evaluations were made using metaheuristic algorithms. Our proposed approach improves CNC machining processes for multi-pocket milling. We experimentally evaluate our control algorithms and demonstrate and validate our approach through case studies.

1. Introduction

Computer Numerical Control (CNC) machining is essential to modern industry and research for the intersection of manufacturing and computer technology [1]. In particular, multi-pocket milling is a procedure that uses tool paths created by Computer-Aided Manufacturing (CAM) software (Tebis 4.0) to allow for the methodical removal of material within a predetermined closed boundary [2]. There is a sizable amount of academic material on multi-pocket milling that has been studied in a variety of research fields [3]. The overall goal of many of these research projects is to improve milling by minimizing processing time while accounting for relevant important factors [4].
One of the greatest challenges in CNC machine multi-pocket operations is the suboptimal tool path definition software. We aim to address these challenges by employing SDCS in this process. This approach targets achieving both optimizations of these paths with formal correctness and saving time and energy. Our proposed approach aims to chart a new and effective path for optimizing tool paths in multi-pocket-milling challenges.
Optimization, which is the methodological search for variable sets to minimize error in problem solving, is important in many different engineering domains [5]. The most used optimization method in recent years has been Metaheuristic (MH) algorithms. Although they do not provide exact solutions, MH algorithms demonstrate the capacity to quickly find near-optimal solutions [6]. While some other MH algorithms have been published in the literature, swarm-based techniques have seen significant advancement in the field of MH algorithms. Figure 1 categorizes well-known MH algorithms.
MH algorithms commonly used in tool path optimization often lack formal correctness. Our research aims to fill this gap by providing a systematic approach to optimizing tool paths in CNC machines with formal correctness. The adaptation of SDCS offers a novel approach for optimization in multi-pocket machining with formal correctness. This adaptation of SDCS to the multi-pocket machining process addresses a critical need for more reliable optimization techniques. MH algorithms are the members of a large family consisting of many branches, including evolutionary, swarm-based and nature-based. Each branch and algorithm has various advantages and disadvantages, such as reaching local minima and having a lower process time. The GA is an evolutionary MH algorithm that is widely known and used in the literature. The BA and ACO are swarm-based algorithms. We combined the advantages of these algorithms to obtain the optimal tool path. However, SDCS has proven its superiority over MH algorithms in optimizing the tool path of the CNC machine.
In the existing body of literature, numerous papers have explored the application of MH methodologies in CNC machine milling. For example, Genetic Algorithms (GAs) have been employed to determine optimal values for cutting parameters, including machining time, cutting forces, metal removal rate and dimensional accuracy during rough pocket milling [7]. Another study utilized GAs to optimize milling parameters, defining the objective function as the machining time in the pocket milling process, with depth of cut and feed rate as independent variables [8]. Additionally, Ant Colony Optimization (ACO) was applied to optimize the multi-pass pocket-milling process, focusing on two objectives: achieving an optimal surface roughness value and minimizing machining time. The independent variables considered in this context were spindle speed, feed rate and depth of cut [9]. Ref. [10] has explored optimal path-planning strategies for pocket milling. Ref. [11] has applied the firefly algorithm to find an optimal solution to the tool path planning for machining processes through the Traveling Salesman Problem (TSP). To conclude, MH algorithms are moderately convenient for CNC operations and widely used to calculate tool paths in such processes [12].
MH algorithms are one of the most effective optimization methods for minimizing cost in the literature; however, they cannot provide formal correctness and the most likely optimal path calculation. Our research aims to optimize CNC machine tool paths for energy-efficient multi-pocket milling by using the Symbolic Discrete Control Synthesis (SDCS) technique. Accordingly, we offer a systematic modeling framework by adapting SDCS for multi-pocket milling. Thus, we achieve energy, time, and cost efficiency with formal correctness by means of our resulting controller.
The term “energy-efficient” in multi-pocket milling refers to less energy usage while maintaining milling quality, with everything remaining constant except for changes in the tool path. This means that as the path shortens, the process is completed faster, resulting in lower energy consumption. Achieving energy efficiency involves minimizing tool paths through strategies employing advanced control techniques. Ultimately, energy-efficient multi-pocket milling balances machining objectives with energy conservation, supporting sustainability and cost-effectiveness in manufacturing.
DCS is a formal framework that synthesizes a controller for desired system behavior by satisfying the given specifications, such as safety constraints or performance requirements. DCS approaches are applied in several disciplines, such as software engineering, robotics, control systems and communication networks, for synthesizing controllers that can effectively handle complex systems. For example, DCS was applied to generate controllers for robotic systems for precise control and steady motion in [13]; Ref. [14] addressed DCS for communication networks that provide dependable and effective data flow; and [15] performed DCS to create controllers that guarantee the safety and correctness of programs. The DCS method is a useful tool for tackling many real-world issues where the creation of controllers that meet particular requirements is essential.
The control theory of discrete event systems (i.e., DCS) was initially approached as a topic in language theory by [16]. In general, the theory revolves around synthesizing a controller for an uncontrolled system, i.e., a plant, to ensure desired system behaviors in line with specified control objectives. Numerous studies have been conducted to develop algorithms, both for finite systems [17,18] and infinite systems [19], to synthesize controllers aiming at objectives such as safety and optimization. Moreover, this method has found extensive application in addressing real-life problems. For instance, recent research, exemplified by [20,21], has successfully achieved energy efficiency in hardware circuits using this approach. Ref. [22] explores coordinating operations in a flexible manufacturing system, including robots, assembly machines, CNC lathes and mills. It emphasizes discrete event systems’ control theory, managed by PLC experts for individual subsystems. The goal is to simultaneously coordinate these subsystems for efficient production while ensuring system integrity and safety.
Ref. [23] presents a case study demonstrating the application of probabilistic model checking in synthesizing a safety controller for a mobile collaborative robot deployed in a manufacturing cell alongside a human operator. This study focuses on the safety controller synthesis for an ICONSYS iAM-R mobile robot engaged in a complex manufacturing process across multiple machine locations. Ref. [24] focuses on discrete controller synthesis for smart manufacturing systems, inheriting advancements from flexible and reconfigurable manufacturing systems. It addresses residual indeterminism in control, emphasizing hierarchical communication between controller layers and operational sequences in manufacturing. In [25], a systematic framework is introduced for an energy-aware configuration manager in reconfigurable manufacturing systems, employing discrete controller synthesis techniques. The approach prioritizes energy consumption reduction and resolving mutual exclusion on shared resources. By dividing control objectives into safety and optimization, resource constraint maintenance and improved system performance, particularly in terms of energy efficiency, are ensured. Ref. [26] introduces regulation control, a method for modeling and controlling complex manufacturing systems using discrete event systems, represented by interpreted Petri nets. It tests this methodology by integrating, communicating and controlling three workstations within a scaled manufacturing cell, demonstrating its practical implementation for safe operation without extensive programming. The manufacturing operations primarily involve CNC machining, turning, milling and handling of metal mechanical tools. Ref. [27] introduces a method rooted in the control theory of discrete event systems to design supervisors achieving optimal throughput in manufacturing systems. By utilizing extended finite automata, it models system activities at two abstraction levels, addressing uncontrollability arising from external inputs and disturbances. Through game-theoretic methods, supervisors are synthesized to optimize throughput, particularly relevant in scenarios such as the milling process within the dice factory, ensuring consistent system performance.
Our research question addressed in this study concerns how to optimize CNC machine tool paths for energy-efficient multi-pocket milling with formal correctness. We propose a novel approach for multi-pocket milling by adapting the SDCS method to achieve energy efficiency. The existing literature has mostly applied metaheuristic algorithms for the optimization of tool path calculations. We offer formal correctness via SDCS for both safety and optimization for multi-pocket milling in CNC machining. When compared with the existing approach, our study provides a unique methodology that brings new knowledge to the field of the optimal generation of trajectories.
The primary contribution of this paper to the existing literature lies in the comparative evaluation of the performance of the SDCS method alongside the MH algorithms. In our research context, the overarching objective is to enhance the efficiency of CNC machine operations by harnessing the advanced optimization capabilities offered by SDCS while concurrently ensuring the attainment of safety objectives stipulated by SDCS. It is noteworthy that this specific research topic has not been previously explored in the literature. Thus, our contribution to the field lies in addressing this gap and providing a comprehensive approach that integrates superior performance and safety objectives through the utilization of SDCS.
Our evaluation process focuses on the optimization of CNC machine tool paths for pocket milling processes, utilizing MH algorithms, specifically ACO, BA, GA, ACO-GA and BA-GA. The hybridized algorithms, ACO-GA and BA-GA, are derived by adjusting the crossover rate and mutation rate parameters of the GA procedure through the incorporation of ACO and the BA. We integrate the starting and ending points of pocket milling into the optimal path generation, with tool paths calculated within the framework of the TSP.
Contributions: We present a framework for integrating SDCS into the Simulink environment, and our contributions within this framework can be outlined as follows:
  • Modeling: This involves specifying abstractions for the behaviors of multi-pocket milling, where control objectives are symbolically encoded as the parallel composition of data flow equations using the reactive synchronous language supported by the DCS tool, ReaX (version 0.17.3).
  • Tooling: This covers adaptation and code generation, serving as a semi-automated management service that encompasses (i) encoding the abstracted behaviors of multi-pocket milling processes derived from the Simulink platform and their control objectives, (ii) ReaX-DCS compilation of constructed synchronous models and (iii) transferring the resulting controllers back to the Simulink environment.
  • Implementation: This involves experimental validation of our approach, ensuring that the specifications of a given multi-pocket processing are met.
The subsequent sections of this work are structured as follows. Section 2 delivers a comprehensive overview of CNC machining, with a specific focus on pocket milling. In Section 3, we provide the necessary background on SDCS. The integration of SDCS into CNC machining for energy-efficient multi-pocket milling is elucidated in Section 4, where we present an illustrative implementation of our modeling framework. Following that, Section 5 conducts an experimental assessment of our framework’s performance. Lastly, Section 6 summarizes key findings, draws conclusions and concludes the paper.

2. Operational Process of Computer Numerical Control

Pocket milling is described as the material removal process within a specified enclosed boundary using Computer-Aided Manufacturing (CAM) software. In the application of any control strategies to pocket milling, 3D models of the workpiece are created through CAD software. The generated CAD file can be imported into CAM software for the simulation of any CNC operation. To simulate a CNC operation in MATLAB software (version 2021a), the design file of the workpiece is exported in XML format and imported into the Simulink environment of MATLAB. Additionally, robot designs such as CNC machines, which are Cartesian robots, are brought into Simulink. The CNC machine is transformed into a Simscape Multibody model, comprising blocks that represent joints, links and interconnections among these components. To achieve the desired movements in the Simscape model of the CNC machine, joint blocks are employed. Output variables such as the position, velocity and acceleration of links can be extracted.
In the case of the tool path not being optimized, it leads to an increase in the milling process time and, consequently, manufacturing costs. To address this issue, the starting and ending points of pocket milling processes were considered instead of the center points. An illustration of non-optimal path planning for pocket milling is provided in Figure 2. The algorithms were implemented to differently shaped pockets such as circle, triangle and hexagon, as shown in Figure 2. The numbers represent the order of the pockets in the non-optimal path. Additionally, Figure 3 depicts a selected pocket and the corresponding tool path generated, taking into account the starting and ending points, particularly in the context of zigzag-type milling.
In our research, we designed the workpiece using Solidworks software (version 2020) and subsequently imported it into Simulink. We applied a MATLAB example featuring a Simscape model of a three-degrees-of-freedom Cartesian robot to implement SDCS in the Simulink environment. To facilitate movement, reference inputs were assigned to the joints of the Cartesian robot, and the current position of the tip point of the robot was obtained from the model. Therefore, no real milling machine, workpiece materials or cutting tools were utilized.
This study focuses on the minimization of the tool path of the CNC machine to reduce the energy consumption during the pocket milling operation. Since energy consumption is directly related to the length of the tool path, minimization of the tool path represents the minimization of the energy consumption as well. However, SDCS can be applied to find the optimal conditions and the parameter values, such as cutting forces, surface quality and material removal rates. To achieve this, a multi-objective cost function model should be derived and then the experiments should be carried out on a real pocket-milling operation. CAM software (Tebis 4.0) includes an optimization section to minimize the tool path. The proposed SDCS method can be integrated into a CAM software easily and can be applied to real milling operations carried out by CNC machines.

3. Symbolic Representation of Discrete Event Systems

In the proposed symbolic system, we consider a set of symbol variables V , where each v V is associated with a data type T . These data types are as follows:
  • Boolean: B ;
  • Integer: Z ;
  • Rational: Q .
Thus, for each symbol variable v V , there exists a corresponding data type T . The grammar rules Γ T that could characterize the symbolic model that we propose are articulated as follows:
  • Γ T = ( Γ B ) ? ( Γ T ) : ( Γ T ) ;
  • Γ B = ¬ Γ B ;
  • Γ B = Γ B Γ B , where the unary operator ◊ is a set of { , , , = } ;
  • Γ B = Γ B Processes 12 00584 i001 Γ B , where the unary operator Processes 12 00584 i001 is a set of { < , , > , } ;
  • Γ Z , Q = Γ B Γ B , where the unary operator is a set of { + , , , / } .
In addition to the above, it should be noted that there is a symbol variable v from the set V for each fixed literal.
Our symbolic system can be conceptualized as a function f with inputs X and outputs Y. In the body of the function, assignments like q : = e q are used, where q belongs to the set of memory-reserved symbolic variables (i.e., the set of state Q), and e q represents a corresponding expression with the same data type for the evaluation of discrete events by means of current states, inputs and outputs. Conversely, the variable v acts as a substitute for the expression e in the given assignment v = Δ e .
Tackling challenges in symbolic control systems bears resemblance to navigating a game-like landscape. Instances involve a sequential interaction between two pivotal players: the environment and the controller. The environment assigns values to a subset of input variables while the controller strategically assigns values to the remaining set. This dynamic interplay propels the progression of the system, shaping its overall state. At the core of these issues lie control objectives, expressed as logical statements involving state and input variables. The central concern is formulating a strategic plan for the controller to effectively meet these objectives. In this interactive dynamic, the environment is tasked with assigning values to non-controllable input variables (U), while the controller manages controllable ones (C). Systems that facilitate the environment in making consistent choices are recognized as deadlock-free. Algorithms designed to tackle control problems must ensure this consistency to foster dynamic progress and the successful achievement of objectives.
The symbolic models that we present aim to identify a sub-state space within the system-state space that characterizes desired system behaviors. This is achieved through binary decision diagrams and the fixed-point calculation method. In the model under consideration, the evaluation of controllable variables (C) is determined in contrast to variables that are not under control (U), where this valuation is denoted by [ T ] . Our optimization algorithm in the form of a recursion function in an iterative structure is given as the following formal equation:
η 1 = def if σ then ζ else η i + 1 = def if σ then M a x U M i n C ( η i ) T + ζ else ,
where the safety objective ( σ ) must be always true in order to minimize the optimization objective. The optimal control objective is min/maximizing a cost function, added ( ζ ) according to the steps (i) specified in the timeline. Therefore, while M i n U makes the worst valuation for uncontrollable variables, M a x C tries to perform the best for controllable variables.

4. Adaptation of Symbolic Discrete Control Synthesis for Multi-Pocket Milling

The DCS method proves to be a valuable approach for various engineering challenges, encompassing tasks ranging from low-level controller design, such as PID, to high-level controller design, such as robot path planning. We consider the seamless transition of states in scenarios involving CNC operations as a discrete control synthesis problem. This perspective is rooted in the control theory of discrete event systems, denoted as DCS, where the concurrent synchronization of two distinct Mealy machines is encapsulated with a signal and a controller to achieve the desired system behaviors. DCS is guided by the principle of obtaining a controller that effectively realizes the desired system behaviors.
To further elaborate on the working principles of control theory in discrete event systems, let us consider two Mealy machines, each having two distinct states denoted as 0 and 1, with transitions between states facilitated by an input variable. Additionally, let us assume the requirement that both Mealy machines cannot be in states 0 and 1 simultaneously. This condition can be met by introducing a third Mealy machine, acting as a controller, which ensures the desired behavior through the synchronous parallel composition of these three Mealy machines by encapsulating a controllable input variable. The DCS method focuses on generating this controller procedure by working in reverse. It systematically aims to produce this controller, emphasizing its adaptability for any system that can be modeled as discrete events. The main advantage of the DCS technique is its operation as a model-checking tool, always ensuring the fulfillment of desired specifications [19]. However, due to testing all possible scenarios, synthesizing the controller incurs high complexity. Nonetheless, once the controller is synthesized, it operates dynamically. Our modeling approach is systematically elucidated and the adaptation of SDCS for pocket milling is explained via the block diagram outlined below. SDCS is a novel method that minimizes defined cost functions to generate the desired output of any system. Therefore, SDCS can be used in many fields, such as the path planning of mobile robots, control applications in mechatronics, increasing the energy efficiency of hardware chips and optimization of the job shop scheduling.

4.1. Overview

In the adaptation of the SDCS to multi-pocket milling within the synchronous parallel language ReaX environment, we construct our model and objectives as data flow equations. The SDCS method’s model is illustrated in Figure 4. The safety objective is then expressed through propositional formulas encapsulating the state variables of the previously discussed models. A symbolic safety control algorithm proves effective in formulating a strategy. The controllable input variables of our model ensure the fulfillment of the safety objective. The resulting safety objective, integrated with our model, serves as a controller. This controller ensures precise conditions that must be satisfied in CNC operations and inherently adheres to the previously mentioned mutual exclusion constraints. As an alternative for further improvement, our approach involves the application of a symbolic optimal control algorithm to achieve an additional optimization objective. In this context, the cost function defining the new strategy primarily focuses on minimizing processing time, i.e., energy consumption. This integrated approach seamlessly addresses both safety and optimization aspects within the management system.

4.2. Models and Objectives

In our specific scenario, as illustrated below, we have defined each shape processed in each CNC as a state and adorned it as a Mealy machine. Each state transition is under control with a controllable variable and, at each transition, a Δ is used to generate the transition distance. Formally, state transitions are encoded as data flow equations as shown below:
S = S i c i , j S j , i , j | S | ,
where S represents each individual shape and | S | indicates the total number of shapes in the system. The c i , j expression denotes the controllable variable that governs the transition from S i to S j . Of course, it is necessary to reinforce the control mechanism that we establish for security purposes with optimization goals to ensure that the CNC processes can be carried out as efficiently as possible within a limited time frame. We will achieve this by minimizing a cost function that represents the total costs. The cost function has been encoded as a data flow equation as shown below:
σ = S i c i , j Δ i , j , i , j | S | ,
where our cost function σ is defined with Δ i , j , which represents the numerical value of the length of the path that could be incurred during the transition from S i to S j .
In our symbolic system, each state has an initial value. In our case, it is the startpoint of the CNC multi-pocket milling process and is specified by the user; the endpoint is determined through the tool SOLIDWORKS CAM. We consider the calculation of the synthesis of a controller that will find the optimal tool path between these two points.
Once we have defined our model as described above, our synthesis algorithms, including safety and optimization algorithms, consistently ensure both safety objectives and minimize our cost function. Subsequently, the obtained controller is transformed into an HDL (Hardware Description Language) code and transferred to the MATLAB environment. This code implements the desired objectives, allowing the CNC to complete its operations as quickly as possible while meeting safety requirements.

4.3. Symbolic Control

In our symbolic model, we have two different control objectives. The first one is the safety objective, which deals with only certain safety goals and mutual constraints that may arise between shared resources. The second one, the optimization objective, works to minimize the cost function generated by tool paths.
In this context, we consider the multi-pocket milling operation on CNC machines as the control of discrete event systems, and we encode it as synchronous parallel data flow equations following our symbolic model approach described above. Subsequently, through the presented safety and optimization algorithms, we obtain a controller that minimizes the tool path while ensuring safety. The obtained controller operates as a power-aware manager, minimizing the tool path and providing time savings simultaneously.
Our approach works systematically in alignment with our research objectives. It enables both concurrent resource sharing and the fulfillment of safety objectives in a systematic manner. Additionally, it guarantees reliability by ensuring the formal correctness of time and energy efficiency while guaranteeing the minimization of the tool path.

4.4. Adaptation Process

Our workflow of the implementation process of SDCS is as shown in Figure 5. As depicted in the block diagram of the system architecture, it consists of four main parts. In the modeling phase, an uncontrolled design is modeled both in the platform to be implemented and in our symbolic model presented in the ReaX environment with the desired system behaviors by a designer. Subsequently, with our safety and optimization algorithms, symbolic control is achieved, resulting in a controller. In the code generation section, this generated controller is transferred to the MATLAB environment with a Verilog or C extension file. Then, simulation can be performed in the MATLAB environment, or MATLAB G code can be obtained and transferred to a physical system, namely a CNC, to execute the desired system behaviors.
The SDCS method does not provide a pre-defined path. The path proposed by SDCS can be seen by implementing it in a simulation environment. Therefore, workpieces, including the pockets that were designed in SOLIDWORKS, are imported to the Simscape environment of MATLAB software. Simscape allows one to import their designs as a multibody. In addition, the links of the machines and robots can be moved and the position of the parts can be obtained as feedback data. The implementation of SDCS using an example Simscape model is as shown in Figure 6.

5. Experimental Evaluation

Our goal in our study is to develop CNC tool paths specifically designed for the energy-efficient multi-pocket-milling process. Our main point was optimizing these tool paths to achieve the most efficient configurations. Notably, in the optimization process, we aimed to consider the starting and ending points of the multi-pocket-milling operation for precision and efficiency. In our work, we focused on obtaining formal correctness for road planning. We employed the SDCS algorithm, a robust tool for addressing optimization challenges, to determine the exact optimal routes for our specific problem. The outcomes derived through the SDCS algorithm offer valuable insights into the efficacy of our approach, particularly in identifying optimal solutions for specific pockets. Consistently producing shorter path lengths, the SDCS algorithm underscores its effectiveness, with these findings holding significant value in comprehending tool path optimization within the context of multi-pocket milling.
In our work, the tool path generation is formulated as a TSP and we applied our symbolic approach to solve the TSP. We evaluated our approach by comparing MH algorithms. Thus, we also applied ACO, BA, GA, ACO-GA and BA-GA to solve the TSP. To ensure equitable comparisons, we maintained a consistent maximum iteration number of 100 across our tests and explored three distinct population sizes of 50, 100 and 150 for the optimization procedure. We illustrate our comparative study of the evaluation in a flow-chart, depicted in Figure 7.
Table 1 shows our experimental comparative evaluations. The table presents detailed information on computed tool path lengths and processing times for the pairs of different pocket quantities (10, 20, 30, 40 and 50) and population sizes (50, 100 and 150).
We employed MH algorithms, including ACO, BA, GA, ACO-GA and BA-GA, to CNC machine tool paths for multi-pocket milling. Tool paths were formulated as a TSP, and the starting and ending points of milling operations for each pocket were determined as Waypoints (WPs) for the TSP. We obtained results about how various population sizes affect tool path length and processing times by taking into account the starting and ending points for the milling process.
Specifically addressing the generation of optimal tool paths for multi-pocket-milling processes, we utilized swarm-based MH algorithms, ACO and the BA, alongside the evolutionary algorithm GA. Analyzing the results, including those from Table 1, revealed consistent performance closeness between ACO and the GA. Furthermore, the GA, ACO and BA produced identical results for scenarios involving 10 and 20 pockets in terms of tool path length. However, for 30, 40 and 50 pockets, the GA and ACO consistently outperformed the BA, emphasizing their superior suitability for multi-pocket-milling operations. In the evaluation of process times, the BA generally outperforms ACO and the GA, with ACO-GA and BA-GA hybrid algorithms excelling in tool path length but significantly underperforming in processing time compared to non-hybrid algorithms. It is crucial to note that the maximum iteration number was uniformly set to 100 for all tests, acknowledging the trade-off between iterations and processing time in non-hybridized MH algorithms. Although ACO-GA provides optimal solutions, its significantly increased processing time as a hybrid algorithm poses challenges for its selection in pocket-milling operations.
MH algorithms inherently exhibit stochastic behavior, offering no assurances of exact solutions but excelling in uncovering near-optimal solutions within limited time frames. To address potential non-optimal outcomes, our study proposes the SDCS method to enhance multi-pocket-milling operations. Results from SDCS for scenarios involving 10, 20, 30, 40 and 50 pockets align with the GA, ACO and BA for 10 and 20 pockets. However, for more complex scenarios of 30, 40 and 50 pockets, SDCS consistently outperforms the GA, ACO and BA, highlighting its preference in multi-pocket-milling operations. Table 1 includes detailed information on computed tool path lengths and processing times for the different pocket quantities (10, 20, 30, 40 and 50) and population sizes of the MH algorithms (50, 100 and 150). For example, the GA found the optimal tool path length of a workpiece with 50 pockets as 770.118 mm within 28.558 s, while the population size was defined as 100.
In the literature, numerous papers have explored the application of MH methodologies in CNC machine milling [7]. Since MH algorithms inherently possess a stochastic structure, previous studies have successfully obtained near-optimal solutions within limited time frames [8]. Our SDCS-based approach provides exact solutions to CNC machine milling operations. We applied SDCS to problems defined in previous literature. SDCS was compared with Particle Swarm Optimization (PSO), the GA and the Grey Wolf Optimizer (GWO) [28]. Our proposed method, SDCS, yielded results that were 8.79%, 16.18% and 13.97% superior to the mean outcomes obtained with PSO, the GA and the GWO, respectively. MH optimization methods, as observed in the literature, generally provide approximate solutions instead of exact ones. The near-optimal results obtained by MH algorithms in this study are compatible with related studies in the literature, which were conducted with 51 and 30 WPs [29,30].
Our objective function (cost function) is determined as stated in Equation (2), and our optimization (optimal) algorithm always guarantees desired system behavior. We validate our approach in various scenarios, and our verification process is based on model checking [19], which is a verification technique that ensures the alignment of a system or software model with specified properties.

6. Conclusions

In this study, the adaptation of the SDCS method to optimize CNC machine tool paths for energy-efficient multi-pocket milling is presented. In our approach, we construct a cost function (object function) based on route lengths, which we then minimize using our optimization algorithm. Ultimately, the controller achieves time savings by obtaining the minimum route length, thereby ensuring energy efficiency as well. Additionally, a comparative evaluation of our approach with optimization algorithms, including ACO, the BA, the GA and various hybridized approaches, is reported. Compared to traditional MH algorithms, which are commonly employed to optimize CNC machine tool paths in multi-pocket milling, our method provides formal correctness and the results show that our approach outperforms the MH algorithms. Our proposed modeling framework explains in detail how SDCS can be systematically adapted to energy-efficient multi-pocket-milling processes and validates it through case studies.
The results show that our approach matches the evidence presented. It effectively addresses how to optimize CNC machine tool paths for energy-efficient multi-pocket milling with formal correctness and precision. Comparing SDCS with traditional MH algorithms, our research shows SDCS’s superiority in energy and time efficiency while maintaining formal correctness in machining. The experimental results support this by demonstrating SDCS’s enhanced performance over existing methods. Additionally, our study discusses practical applications of SDCS in CNC machining and suggests future research avenues. According to Table 1, our study finds that integrating SDCS into CNC machining improves energy efficiency in multi-pocket milling. Through comparisons with traditional MH algorithms, SDCS proves to be more precise and efficient, offering potential cost savings for manufacturers by reducing energy usage and processing time. Overall, the findings highlight the importance of advanced control theory and optimization techniques in enhancing the sustainability of multi-pocket-milling processes.
We plan to integrate SDCS into SOLIDWORKS add-ins and to develop design guidelines for future research. Through this add-in, the start and end points can be easily extracted in SOLIDWORKS CAM; then, optimum tool paths can be created, and therefore the G code containing optimization obtained from the software can be transferred to physical equipment. This avenue holds promise for further enhancing the practical implementation of SDCS in real-world CNC machining applications. Furthermore, the results obtained in this study are promising for the use of our approach in such engineering applications in terms of cost savings.

Author Contributions

Methodology, S.Ç. and M.Ö.; Software, S.Ç. and M.Ö.; Validation, S.Ç. and M.Ö. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Hao, Z. Research on Development and Application of Mechanical Engineering Based on CNC Machining Technology. J. Phys. Conf. Ser. 2020, 1607, 012023. [Google Scholar] [CrossRef]
  2. Bouard, M.; Pateloup, V.; Armand, P. Pocketing toolpath computation using an optimization method. Comput.-Aided Des. 2011, 43, 1099–1109. [Google Scholar] [CrossRef]
  3. Ozcan, A.; Rivière-Lorphèvre, E.; Huynh, H.N.; Ducobu, F.; Verlinden, O.; Filippi, E. Modelling of Pocket Milling Operation Considering Cutting Forces and CNC Control Inputs. Procedia CIRP 2017, 58, 239–244. [Google Scholar] [CrossRef]
  4. Gordeeva, T.; Kugaevskii, S.; Starostin, A. Development of tool selection process for milling of pocket features. In Proceedings of the IOP Conference Series: Materials Science and Engineering; IOP Publishing: Bristol, UK, 2020; Volume 966, p. 012078. [Google Scholar]
  5. Henrichs, E.; Lesch, V.; Straesser, M.; Kounev, S.; Krupitzer, C. A literature review on optimization techniques for adaptation planning in adaptive systems: State of the art and research directions. Inf. Softw. Technol. 2022, 149, 106940. [Google Scholar] [CrossRef]
  6. Hussain, K.; Mohd Salleh, M.N.; Cheng, S.; Shi, Y. Metaheuristic research: A comprehensive survey. Artif. Intell. Rev. 2019, 52, 2191–2233. [Google Scholar] [CrossRef]
  7. Zoghipour, N.; Yaratan, A.F.; Kaynak, Y. Multi objective optimization of rough pocket milling strategies during machining of lead-free brass alloys using Desirability function and Genetic algorithms-based analysis. Procedia CIRP 2021, 99, 145–150. [Google Scholar] [CrossRef]
  8. Zakaria, M.; Abdullah, H. Milling optimization based on genetic algorithm and conventional method. J. Adv. Res. Dyn. Control Syst. 2020, 12, 1179–1186. [Google Scholar]
  9. Ab Rashid, M.F.F.; Harun, W.; Ghani, S.; Nik Mohamed, N.; Mohd Rose, A. Optimization of multi-pass pocket milling parameter using ant colony optimization. Adv. Mater. Res. 2014, 1043, 65–70. [Google Scholar] [CrossRef]
  10. Kariuki, L.W.; Ikua, B.; Nyakoe, G. Generation and optimization of pocket milling tool paths—A review. In Proceedings of the Sustainable Research and Innovation Conference, Pretoria, South Africa, 5–7 October 2022; pp. 129–133. [Google Scholar]
  11. Quiroga, J.; Cáceres, E.; Padilla, C. Optimización de trayectorias de fresado en cavidades utilizando el algoritmo Luciérnaga. Rev. Fac. Ing. Univ. Cent. Venez. 2015, 30, 93–104. [Google Scholar]
  12. Iberahim, F.; Ramli, R.; Narooei, K.D.; Qudeiri, J.A. Tool path optimization for drilling process by CNC milling machine using ant colony optimization (ACO). Aust. J. Basic Appl. Sci. 2014, 8, 385–389. [Google Scholar]
  13. Liu, S.B.; Schürmann, B.; Althoff, M. Guarantees for Real Robotic Systems: Unifying Formal Controller Synthesis and Reachset-Conformant Identification. IEEE Trans. Robot. 2023, 39, 3776–3790. [Google Scholar] [CrossRef]
  14. Cloosterman, M.B.; Hetel, L.; Van de Wouw, N.; Heemels, W.; Daafouz, J.; Nijmeijer, H. Controller synthesis for networked control systems. Automatica 2010, 46, 1584–1594. [Google Scholar] [CrossRef]
  15. Liu, S.; Trivedi, A.; Yin, X.; Zamani, M. Secure-by-construction synthesis of cyber-physical systems. Annu. Rev. Control 2022, 53, 30–50. [Google Scholar] [CrossRef]
  16. Ramadge, P.; Wonham, W. The control of discrete event systems. Proc. IEEE 1989, 77, 81–98. [Google Scholar] [CrossRef]
  17. Marchand, H.; Samaan, M. Incremental Design of a Power Transformer Station Controller Using a Controller Synthesis Methodology. IEEE Trans. Softw. Eng. 2000, 26, 729–741. [Google Scholar] [CrossRef]
  18. Marchand, H.; Borgne, M.L. On the Optimal Control of Polynomial Dynamical Systems over Z/pZ. In Proceedings of the 4th International Workshop on Discrete Event Systems, Sardinia, Italy, 26–28 August 1998; pp. 385–390. [Google Scholar]
  19. Berthier, N.; Marchand, H. Discrete Controller Synthesis for Infinite State Systems with ReaX. IFAC Proc. Vol. 2014, 47, 46–53. [Google Scholar] [CrossRef]
  20. Özbaltan, M.; Berthier, N. A Case for Symbolic Limited Optimal Discrete Control: Energy Management in Reactive Data-flow Circuits. IFAC-PapersOnLine 2020, 53, 10688–10694. [Google Scholar] [CrossRef]
  21. Özbaltan, M.; Berthier, N. Power-aware Scheduling of Data-flow Hardware Circuits with Symbolic Control. Arch. Control Sci. 2021, 31, 431–446. [Google Scholar] [CrossRef]
  22. Vieira, A.D.; Santos, E.A.P.; de Queiroz, M.H.; Leal, A.B.; de Paula Neto, A.D.; Cury, J.E. A method for PLC implementation of supervisory control of discrete event systems. IEEE Trans. Control Syst. Technol. 2016, 25, 175–191. [Google Scholar] [CrossRef]
  23. Stefanakos, I.; Calinescu, R.; Douthwaite, J.; Aitken, J.; Law, J. Safety controller synthesis for a mobile manufacturing cobot. In Proceedings of the International Conference on Software Engineering and Formal Methods, Berlin, Germany, 26–30 September 2022; Springer: Berlin/Heidelberg, Germany, 2022; pp. 271–287. [Google Scholar]
  24. Toguyéni, A. Modeling of discrete controllers for smart manufacturing systems. In Proceedings of the 32nd European Modeling & Simulation Symposium, Online, 16–18 September 2020; pp. 361–370. [Google Scholar]
  25. Özbaltan, M. Energy Management of Reconfigurable Manufacturing Systems by using Symbolic Control. In Proceedings of the 2023 Innovations in Intelligent Systems and Applications Conference (ASYU), Sivas, Turkiye, 11–13 October 2023; pp. 1–5. [Google Scholar]
  26. Contreras Baeza, A. Development and Automation of a Scaled Manufacturing Cell Based on Regulation Control. Master’s Thesis, Instituto Tecnológico y de Estudios Superiores de Monterrey, Monterrey, Mexico, 2023. [Google Scholar]
  27. van Putten, B.J.C.; van der Sanden, B.; Reniers, M.; Voeten, J.; Schiffelers, R. Supervisor synthesis and throughput optimization of partially-controllable manufacturing systems. Discret. Event Dyn. Syst. 2021, 31, 103–135. [Google Scholar] [CrossRef]
  28. Çaşka, S.; Gök, K.; Gök, A. Comparison of the success of meta-heuristic algorithms in tool path planning of computer numerical control machine. Surf. Rev. Lett. 2022, 29, 2250126. [Google Scholar] [CrossRef]
  29. Guerrero Ludueña, R.E. Data Driven Approach to Enhancing Efficiency and Value in Healthcare. In Multidisciplinary Perspectives on Artificial Intelligence and the Law; Law, Governance and Technology Series; Springer: Cham, Switzerland, 2017. [Google Scholar]
  30. Rexhepi, A.; Maxhuni, A.; Dika, A. Analysis of the impact of parameters values on the Genetic Algorithm for TSP. Int. J. Comput. Sci. Issues 2013, 10, 158. [Google Scholar]
Figure 1. Types of metaheuristic algorithms.
Figure 1. Types of metaheuristic algorithms.
Processes 12 00584 g001
Figure 2. Non-optimal path planning for pocket milling (the numbers 1 to 9 show the pockets on the x and y axis).
Figure 2. Non-optimal path planning for pocket milling (the numbers 1 to 9 show the pockets on the x and y axis).
Processes 12 00584 g002
Figure 3. Pocket selection considering starting and end points.
Figure 3. Pocket selection considering starting and end points.
Processes 12 00584 g003
Figure 4. Model of the DCS method (while the solid lines show the transitions between states that appear in the figure, the transition from any state to another state for a system with n-states is shown with dotted lines).
Figure 4. Model of the DCS method (while the solid lines show the transitions between states that appear in the figure, the transition from any state to another state for a system with n-states is shown with dotted lines).
Processes 12 00584 g004
Figure 5. Block diagram of system’s architecture.
Figure 5. Block diagram of system’s architecture.
Processes 12 00584 g005
Figure 6. Simscape implementation of SDCS.
Figure 6. Simscape implementation of SDCS.
Processes 12 00584 g006
Figure 7. Flow-chart of our comparative study of the evaluation.
Figure 7. Flow-chart of our comparative study of the evaluation.
Processes 12 00584 g007
Table 1. Computed tool path lengths and processing times were determined for pocket quantities of 10, 20, 30, 40 and 50, with fixed population sizes of 50, 100 and 150.
Table 1. Computed tool path lengths and processing times were determined for pocket quantities of 10, 20, 30, 40 and 50, with fixed population sizes of 50, 100 and 150.
AlgorithmPopulation SizePockets
10 20 30 40 50
mm s mm s mm s mm s mm s
DCS-352.828-467.372-555.593-654.788-759.189-
GA50352.8283.952467.3725.238555.5939.056667.63411.444842.41814.006
100352.8285.675467.3729.574555.59316.613654.78822.020770.11828.558
150352.8287.554467.37216.450555.59324.228654.78833.332764.44742.206
ACO50352.8283.012467.3725.644555.5938.245667.63411.250842.41814.259
100352.8285.290467.37210.529555.59316.012660.98222.193770.11828.247
150352.8287.637467.37215.654555.59324.173654.78832.926764.44741.974
BA50352.8289.402467.3729.801573.21810.475734.35110.9871074.35411.580
100352.8289.207467.3729.664555.59312.351728.85610.8411053.61112.782
150352.8288.934467.3729.473566.19010.225707.91012.4041032.02614.449
ACO-GA50352.8288.506467.37224.457555.59368.873654.788104.442759.189188.779
100352.82824.455467.37288.525555.593254.115654.788478.193759.189807.708
150352.82848.466467.372253.528555.593584.175654.7881048.583759.1891678.658
BA-GA50352.82832.522467.37245.478555.59389.866654.788115.455842.418152.884
100352.82845.466467.37280.595555.593194.188654.788245.177759.189347.786
150352.82859.457467.372161.528555.593253.435654.788388.178759.189587.792
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Çaşka, S.; Özbaltan, M. Adaptation of Symbolic Discrete Control Synthesis for Energy-Efficient Multi-Pocket Milling. Processes 2024, 12, 584. https://doi.org/10.3390/pr12030584

AMA Style

Çaşka S, Özbaltan M. Adaptation of Symbolic Discrete Control Synthesis for Energy-Efficient Multi-Pocket Milling. Processes. 2024; 12(3):584. https://doi.org/10.3390/pr12030584

Chicago/Turabian Style

Çaşka, Serkan, and Mete Özbaltan. 2024. "Adaptation of Symbolic Discrete Control Synthesis for Energy-Efficient Multi-Pocket Milling" Processes 12, no. 3: 584. https://doi.org/10.3390/pr12030584

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop