Next Article in Journal
Advanced Machine Learning for Preschooler Magnetic Resonance Imaging Analysis in Classification of Anxiety Disorders
Previous Article in Journal
Deepening Mathematical Understanding Using Visualization and Interactive Learning for Deaf Students
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Design of Maximally Permissive Controllers for Solving Deadlock Problems in Flexible Manufacturing Systems †

1
Department of Aeronautical Engineering, Chaoyang University of Technology, Taichung 413310, Taiwan
2
Department of Electrical and Electronic Engineering, Chung Cheng Institute of Technology, National Defense University, Taoyuan 335009, Taiwan
3
Mathematics and Physics Division, General Education Center, R.O.C. Air Force Academy, Kaohsiung City 820009, Taiwan
*
Author to whom correspondence should be addressed.
Presented at the 2024 IEEE 7th International Conference on Knowledge Innovation and Invention, Nagoya, Japan, 16–18 August 2024.
Eng. Proc. 2025, 89(1), 10; https://doi.org/10.3390/engproc2025089010
Published: 24 February 2025

Abstract

:
Industry 5.0 aims to integrate humans and machines to achieve greater productivity, personalization, and sustainable development in the production process. Built on the foundation of Industry 4.0 which emphasizes automation, digitalization, and intelligent production processes, Industry 5.0 highlights the importance of human resources in modern manufacturing. Robotic arms have replaced traditional manpower, particularly in flexible manufacturing systems. However, integrating advanced machinery into workflows has increased competition in terms of securing resources, resulting in frequent deadlocks. Various deadlock prevention policies have been proposed to address this issue. Despite these efforts, resolving system deadlocks while achieving the optimal number of reachable states remains challenging. Based on existing research, we have developed a novel deadlock recovery method applicable to various flexible manufacturing systems. We designed an adaptable system and a controller that can restore the system to its fully operational state.

1. Introduction

System deadlocks are caused repeatedly in flexible manufacturing systems (FMSs) [1,2], resource allocation systems (RASs) [3,4], and automated manufacturing systems (AMSs) [5,6,7], so solving problems related to these deadlocks is a significant and urgent task. The Petri Net (PN) theory is the one most widely utilized for dealing with deadlock problems. In this study, we adopted reachability graph analysis as our main technique, which with structural analysis are the two main analyzing techniques in PN theory. Our deadlock recovery strategy has demonstrated permissiveness and an optimal performance. Unlike the traditional deadlock prevention strategy, our deadlock recovery strategy improves the system liveness of deadlock states rather than forbidding them. Lu et al. [8] developed a resource flow graph (RFG)-based deadlock recovery method to mitigate resource competition. This method features a low computation cost and an intuitive application, with no need to calculate the whole reachability graph. Tseng et al. [9] improved the RFG-based method to reduce the number of controllers and maintain the same performance.
We have developed an optimal deadlock recovery method to solve system deadlock problems. The existing RFG-based methods [8,9] built transition-based controllers that release the resources from all operations of the RFG and return them to idle and resource places. However, this method requires a lot of reallocating of whole resources. We rearranged the partial resources in the RFG to maintain permissiveness and reachability. An example of a system of simple sequential processes with resources(S3PR) net, modeled on the PN theory, was introduced for demonstration.
The rest of this article is laid out as follows: Section 2 provides an overview of the basic PN theory. Section 3 clarifies the central concept and the definition of an HRC. Section 4 introduces a classic PN model of S3PR net to demonstrate the proposed method and compare it with existing works. The final section gives a summary and our conclusions.

2. Preliminaries

According to basic PN theory [10], the PN model of S3PR net is a four-tuple N = ( P , T , F , W ) . A PN is illustrated as a directed bipartite graph, which is also called a Place/Transition net. P and T are two nonempty disjoint finite sets of places and transitions, respectively, where P T = and P T . F denotes the set of arcs connecting places and transitions, such that F P × T ( T × P ) . W : F N + is the weighted value of each arc in F . Each place of N is marked with one or more tokens at the current time to represent its property. A marking (or state) is a one-dimensional array mapping M : P Z and M 0 is the initial marking of N . M ( p ) denotes the marking of any place p P within M .
Identical to graph theory, x and x indicate the pre- and post-set of the node x of a PN model, no matter whether x is a place or transition. Given a transition t T for firing at marking M , p t : M p W ( p , t ) , which is also denoted as M [ t . ¬ M [ t means t is disabled for the firing at marking M . An S3PR net contains idle, operation, and resource places, which are denoted as P 0 , P A , and P R . Each sequential process of an S3PR consists of one idle place and certain operation places, and different processes are connected by various shared resources.
Definition 1.
Let  N = ( P 0 P A P R ,   T ,   F ,   W ,   M 0 )  be an S3PR net which holds the following:
(1) 
P A  is the set of operation places,  p a P A ,  M 0 p a = 0 .
(2) 
P R  is the set of resource places,  p r P R ,   p r   p r   = ;  p a P A ,   t i p a   ,   t j p a     ,   p r P R ,   t i   P R = t j   P R = { p r } ;  p r P R ,   p r   P A = p r   P A .
(3) 
P 0  is the set of idle places and each sequential process contains one idle place  p 0 .
Using reachability graph analysis, all markings that were reachable from the initial one were found for further study. A reachability graph consists of nodes, which are labeled as markings, and arrows, labeled with transitions. R ( N , M 0 ) denotes the reachability graph of the PN model N with the initial marking M 0 . M indicates the set of all markings, including M 0 . A reachable marking M can be reached by firing a sequence of transitions σ = t 1 t 2 t 3 t n 1 t n , where M 0 [ σ M . A deadlock marking M D does not reach any other ones due to all transitions being disabled. To develop an optimal deadlock recovery solution, we used a control transition instead of a control place to deal with the deadlock problem. A control transition is a generated transition that is enabled at certain deadlock markings.

3. Hold and Request Circuit-Based Deadlock Recovery Policy

In this study, we built an optimal deadlock recovery method to provide maximum permissiveness and system liveness. A structure named a hold and request circuit (HRC) was used to enhance efficiency.

3.1. HRC

In S3PR systems, multiple production processes usually request shared resources to follow the steps of production. When any resource is held by one of the relevant processes while it waits for other resources, the others cannot obtain this resource again. System deadlocks caused by a lack of shared resources are undesirable and require full recovery. Via the specific subnet HRC, the flow between the resources and operation is checked, and then a set of well-designed control transitions is added to the system to reallocate those held resources.
An HRC contains operation and resource places, with connecting arrows between them used to present the flow relationships of the competing resources. As aforementioned, a deadlock occurs when resources are held by certain processes and these processes are waiting for other resources to carry out their next operation. When partial operation places and resource places are at a standstill and keep waiting, circular holding and waiting occur, which is one of the conditions of a deadlock. It is necessary to check all HRCs and build corresponding control transitions.
Definition 2.
Given an S3PR net  N = ( P 0 P A P R ,   T ,   F ,   W ,   M 0 ) , a valid HRC  G H R C ( V , U )  holds:
(1) 
V  is the set of nodes in the HRC, including operation places  V A P A  and resource places  V R P R , such that  V = V A V R .
(2) 
U  is the set of edges in the HRC, implying a flow of circular holding and waiting. There are two types of resource flow: requesting resources and releasing them from operation, where  U = v a v r     t T ,   v r ,   t t ,   v a F } { v a v r   |   t T ,   v r ,   t v a ,   t F } .
(3) 
Given an HRC with  V A = i N + n v a i  and  V R = i N + n v r i ,  v a V A ,   v r V R ,   v a   v a   V R ,   v r   v r   V A .
(4) 
It is noteworthy that there is no repetition of any node in each HRC.

3.2. Control Transition

Each valid HRC can form one corresponding control transition by reallocating resources. According to the concept of circular holding and waiting, the products and resources from idle and resource places are held in operation places. Therefore, control transitions are designed to solve these standstill conditions, release the products and the resources from operation places, and send them to idle places and resource places.
Definition 3.
Given an HRC  G H R C ( V , U ) , its corresponding control transition  t c  has input arcs from all  v a   V A , output arcs into all of  v r V R , and an idle place  p 0 P 0  belonging to the same process as  v a .

3.3. Efficiency Enhancement

In the HRC-based deadlock recovery method, all valid HRCs of the system are found, and related control transitions are generated. All the operation places and resource places of the HRCs are considered within obtaining solutions, but they also bring the requirement of higher consumption for the rearrangement of resources. We assume that not all nodes of the HRCs are necessary for developing solutions. An S3PR net contains two or more sequential processes with shared resources, with each process being a circuit of one idle place and one operation place. Each pair of operation places from the same HRC belongs to the same process, i.e., they share the same idle place p 0 . In a deadlock marking, all operation places in the HRC cannot progress any further. Given two operation places v a 1 and v a 2 belong to the same HRC and share the same idle place p 0 , the resources in v a 1 and v a 2 are not sent to the next operation place in this production circuit. As v a 1 is closer to the end of this process than v a 2 , it releases its resources to partially recover the processing sequence. That is to say, in any sequential process, only one operation place needs to be considered when generating a control transition.

4. Experimental Results

A classic example of S3PR net was used for the demonstration of our proposed HRC-based method.
Example 1.
Considering the PN model in Figure 1, there are 19 places and 14 transitions in total, where  P 0 = { p 1 , p 8 } ,  P A = p 2 , p 3 , p 4 , p 5 , p 6 , p 7 , p 9 , p 10 , p 11 , p 12 , p 13 ,  and  P R = { p 14 , p 15 , p 16 , p 17 , p 18 , p 19 } . The initial marking  M 0 = 6 p 1 + 6 p 8 + p 14 + p 15 + p 16 + p 17 + p 18 + p 19 .
According to HRC-based deadlock recovery policies [8,9], there are four HRCs in Example 1. Their contents are shown in Table 1.
There are two sequential processes in the net in Figure 1, including p 1 t 1 p 2 t 2 p 3 t 5 ( t 3 p 4 t 4 ) p 5 t 6 p 6 t 7 p 7 t 8 and p 8 t 9 p 9 t 10 p 10 t 11 p 11 t 12 p 12 t 13 p 13 t 14 . Only G H R C 4 has more than one operation place belonging to each sequential process; the other HRCs have one operation place each. According to Section III-C, G H R C 4 can be replaced by G H R C 4 = ( V 4 , U 4 ) when V 4 = { p 6 , p 10 , p 16 , p 17 } . The newly generated control transitions are shown in Table 2.
After four control transitions t c 1 , t c 2 , t c 3 , t c 4 are added to the original net in Figure 1, the controlled net is checked with no any reachable deadlock marking by simulation software. The comparative results of the HRC-based methods are shown in Table 3, where the proposed method provides a better performance.

5. Conclusions

We developed an HRC-based deadlock recovery policy that led to an improvement in performance and efficiency. The experimental and comparative results showed that the proposed method is better than other HRC-based ones. In future research, it will be necessary to consider a more complicated system and enhance that system’s performance.

Author Contributions

Conceptualization, Y.-L.P. and C.-Y.T.; methodology, W.-Y.C.; software, W.-Y.C. and K.-H.T.; validation, W.-Y.C. and C.-Y.T.; formal analysis, Y.-L.P. and W.-Y.C.; investigation, Y.-L.P.; resources, K.-H.T.; data curation, W.-Y.C.; writing—original draft preparation, W.-Y.C. and C.-Y.T.; writing—review and editing, Y.-L.P. and K.-H.T.; visualization, C.-Y.T.; supervision, Y.-L.P.; project administration, Y.-L.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Košťál, P.; Sobrino, D.R.D. Flexible Manufacturing System for Drawingless Manufacturing. Key Eng. Mater. 2013, 581, 527–532. [Google Scholar] [CrossRef]
  2. Liu, D.; Li, Z.; Zhou, M. Hybrid Liveness-Enforcing Policy for Generalized Petri Net Models of Flexible Manufacturing Systems. IEEE Trans. Syst. Man Cybern. Syst. 2013, 43, 85–97. [Google Scholar] [CrossRef]
  3. Lee, S.; Tilbury, D.M. Deadlock-Free Resource Allocation Control for a Reconfigurable Manufacturing System With Serial and Parallel Configuration. IEEE Trans. Syst. Man Cybern. C 2007, 37, 1373–1381. [Google Scholar] [CrossRef]
  4. Reveliotis, S.; Fei, Z. Robust Deadlock Avoidance for Sequential Resource Allocation Systems With Resource Outages. IEEE Trans. Automat. Sci. Eng. 2017, 14, 1695–1711. [Google Scholar] [CrossRef]
  5. Chen, C.; Hu, H. Extended Place-Invariant Control in Automated Manufacturing Systems Using Petri Nets. IEEE Trans. Syst. Man Cybern. Syst. 2022, 52, 1807–1822. [Google Scholar] [CrossRef]
  6. Alzalab, E.A.; El-Sherbeeny, A.M.; El-Meligy, M.A.; Rauf, H.T. Trust-Based Petri Net Model for Fault Detection and Treatment in Automated Manufacturing Systems. IEEE Access 2021, 9, 157997–158009. [Google Scholar] [CrossRef]
  7. Feng, Y.; Xing, K.; Zhou, M.; Wang, X.; Liu, H. Robust Deadlock Prevention for Automated Manufacturing Systems With Unreliable Resources by Using General Petri Nets. IEEE Trans. Syst. Man Cybern. Syst. 2020, 50, 3515–3527. [Google Scholar] [CrossRef]
  8. Lu, Y.; Chen, Y.; Li, Z.; Wu, N. An Efficient Method of Deadlock Detection and Recovery for Flexible Manufacturing Systems by Resource Flow Graphs. IEEE Trans. Automat. Sci. Eng. 2022, 19, 1707–1718. [Google Scholar] [CrossRef]
  9. Tseng, C.-Y.; Chen, J.-C.; Pan, Y.-L. An Improved Deadlock Recovery Policy of Flexible Manufacturing Systems Based on Resource Flow Graphs. IEEE Access 2024, 12, 65202–65212. [Google Scholar] [CrossRef]
  10. Murata, T. Petri Nets: Properties, Analysis and Applications. Proc. IEEE 1989, 77, 541–580. [Google Scholar] [CrossRef]
Figure 1. Example of S3PR net.
Figure 1. Example of S3PR net.
Engproc 89 00010 g001
Table 1. Contents of all HRCs.
Table 1. Contents of all HRCs.
HRC V A V R U
G H R C 1 p 2 , p 4 p 14 , p 18 p 2 p 14 , p 14 p 4 , p 4 p 18 , p 18 p 2
G H R C 2 p 3 , p 11 p 15 , p 18 p 11 p 15 , p 15 p 3 , p 3 p 18 , p 18 p 11
G H R C 3 p 11 , p 12 p 15 , p 18 p 11 p 15 , p 15 p 12 , p 12 p 18 , p 18 p 11
G H R C 4 p 5 , p 6 , p 9 , p 10 p 16 , p 17 , p 18 , p 19 p 18 p 5 , p 5 p 16 , p 16 p 6 , p 6 p 19 ,
p 19 p 9 , p 9 p 17 , p 17 p 10 , p 10 p 18
Table 2. Generated control transitions.
Table 2. Generated control transitions.
t c i t c i t c i P R t c i P 0
t c 1 p 2 , p 4 p 14 , p 18 2 p 1
t c 2 p 3 , p 11 p 15 , p 18 p 1 , p 8
t c 3 p 11 , p 12 p 15 , p 18 2 p 8
t c 4 p 6 , p 10 p 16 , p 17 p 1 , p 8
Table 3. Comparison of all RFG-based methods.
Table 3. Comparison of all RFG-based methods.
Methods | M | | T c | | T c T c | Liveness
[8]282642Deadlock-free
[9]282430Deadlock-free
Proposed282424Deadlock-free
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

Pan, Y.-L.; Chuang, W.-Y.; Tan, K.-H.; Tseng, C.-Y. Design of Maximally Permissive Controllers for Solving Deadlock Problems in Flexible Manufacturing Systems. Eng. Proc. 2025, 89, 10. https://doi.org/10.3390/engproc2025089010

AMA Style

Pan Y-L, Chuang W-Y, Tan K-H, Tseng C-Y. Design of Maximally Permissive Controllers for Solving Deadlock Problems in Flexible Manufacturing Systems. Engineering Proceedings. 2025; 89(1):10. https://doi.org/10.3390/engproc2025089010

Chicago/Turabian Style

Pan, Yen-Liang, Wen-Yi Chuang, Kuang-Hsiung Tan, and Ching-Yun Tseng. 2025. "Design of Maximally Permissive Controllers for Solving Deadlock Problems in Flexible Manufacturing Systems" Engineering Proceedings 89, no. 1: 10. https://doi.org/10.3390/engproc2025089010

APA Style

Pan, Y.-L., Chuang, W.-Y., Tan, K.-H., & Tseng, C.-Y. (2025). Design of Maximally Permissive Controllers for Solving Deadlock Problems in Flexible Manufacturing Systems. Engineering Proceedings, 89(1), 10. https://doi.org/10.3390/engproc2025089010

Article Metrics

Back to TopTop