簡易檢索 / 詳目顯示

研究生: 劉冠志
Liu, Guan-Zhi
論文名稱: 利用裴氏圖之鎖死預防策略探討自動化系統之階梯圖編程方法
On generating a ladder diagram for an automatic system based on a Petri net based deadlock prevention policy
指導教授: 王逸琳
Wang, I-Lin
學位類別: 碩士
Master
系所名稱: 管理學院 - 工業與資訊管理學系碩士在職專班
Department of Industrial and Information Management (on the job class)
論文出版年: 2014
畢業學年度: 102
語文別: 中文
論文頁數: 113
中文關鍵詞: 階梯圖裴氏圖鎖死分析區域理論
外文關鍵詞: Ladder Diagram, Petri Net, Deadlock Analysis, Theory of Region
相關次數: 點閱:74下載:7
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 自動化系統常見於日常生活中,可程式邏輯控制器(Programmable Logic Controller, PLC)為其控制手段之一,階梯圖(Ladder Diagram, LD)則為常用的PLC編程方法。一個自動化系統必須歷經規格、驗證、撰碼、測試與偵查五項步驟,然而階梯圖不易系統化建構與偵錯,為加速其開發流程,我們可先以易於描述離散型系統動態行為的裴氏圖(Petri Net, PN)建構,經過分析驗證後再轉換為對應的階梯圖。

    在階梯圖的設計過程中,常會因編程人員的疏失而導致系統中的某個或多個工件彼此佔住資源,互相等待其它工件釋放資源而本身卻不釋放資源的「鎖死」(Deadlock)現象。此時若將階梯圖轉換為裴氏圖即可較易進行「鎖死分析」(Deadlock Analysis),以找出並解決鎖死現象。基於裴氏圖的鎖死分析有裴氏圖的結構分析(基於Siphon的方法)與可達圖(Reachability Graph)分析等兩種手法,本研究擬應用區域理論(Theory of Region)與可達圖來分析鎖死問題,並運用裴氏圖化簡方法,降低產生可達圖時因裴氏圖的規模增加而導致的狀態數爆增問題。最後透過裴氏圖軟體Petri LLD將無鎖死的裴氏圖再轉換回階梯圖,以塑膠射出成型機為例,實現自動化系統建構的程序。

    The Ladder diagram is the most popular programming language for the programmable logic controller (PLC) that is commonly used in controlling an automatic system. The Ladder diagram programmers usually suffer from the problem of deadlocks in which two or more competing processes waiting for each other to finish, and thus none of them continues. The deadlock problem of a ladder diagram is difficult to be detected and resolved, yet it is easier to conduct the deadlock analysis over the Petri net associated with a ladder diagram. We use the theory of region and the reachability graph to analyze deadlocks. By techniques of Petri net reduction, we could avoid the problem of state explosion for large-scale Petri nets. After resolving the deadlocks, we convert a deadlock-free Petri net back to a Ladder diagram. We illustrate how these procedures work by several real-world examples.

    目錄 摘要 1 Abstract 2 誌謝 7 1. 緒論 12 1.1 研究背景與動機 12 1.2 研究目的 15 1.3 研究範圍與架構 16 2. 文獻探討 18 2.1 自動化系統編程的建構方法 18 2.1.1、使用階梯圖進行自動化系統編程的建構程序 19 2.1.2、使用順序流程圖進行自動化系統編程的建構程序 23 2.2 裴氏圖 27 2.2.1 裴氏圖的基本元件 27 2.2.2 裴氏圖的基本性質 28 2.2.3 裴氏圖的鎖死問題分析 33 2.2.4 裴氏圖的化簡 44 3. 研究方法 46 3.1 建構裴氏圖:使用裴氏圖軟體Snoopy 48 3.2 鎖死狀態處理:區域理論與關鍵標記/移轉分離性質(CMTSI)演算法 50 3.3 裴氏圖化簡與可達圖的生成:使用裴氏圖軟體INA 62 3.4 CMTSI方程組求解:使用數學規劃軟體Gurobi 64 3.5 裴氏圖轉換為階梯圖:使用裴氏圖軟體 Petri LLD 74 4. 實例說明 77 4.1 自動搬運車系統 77 4.2 塑膠射出成型機簡介 80 4.3 塑膠射出成型機動作程式 84 5. 結論與後續研究建議 96 5.1 結論 96 5.1.1 裴氏圖鎖死處理 96 5.1.2 裴氏圖轉換為階梯圖 102 5.2 後續研究建議 103 參考文獻 104 附錄 108

    1. Aiken, A., Fahndrich, M., & Su, Z. 1998. Detecting Races in Relay Ladder Logic Programs. Tools and Algorithms for the Construction and Analysis of Systems, 1384.
    2. Aybar, A., & Iftar, A. 2008. Deadlock Avoidance Controller Design for Timed Petri Nets Using Stretching. IEEE Systems Journal, 2.
    3. Brusey, J. 2006. PetriLLD Tutorial.
    4. Chen, S.-H., & Liang, G.-R. 2013. Five Layers Architecture Approach to Eulerian Marked Graph / Ladder Diagram Transformation Problem. Journal of the Mechatronic Industry, 363.
    5. Cohen, Y., Wang, M.-E., & Bidanda, B. 2010. Automatic Translation of a Process Level Petri-Net to a Ladder Diagram. Advanced Techniques in Computing Sciences and Software Engineering.
    6. Dohi, Y., Nomura, E., Shimoda, T., & Murakoshi, H. 1996. Petri Net Controller with Hardware to Avoid Deadlocks.
    7. Ezpeleta, J., Colom, J. M., & Martinez, J. 1995. A Petri Net Based Dedlock Prevention Policy for Flexible Manufacturing Systems. IEEE Transactions on Robotics and Automation, 11: 173-184.
    8. Frey, G., & Wagner, F. 2006. A Toolbox for the Development of Logic Controllers using Petri Nets. Proceesings of the 8th International Workshop on Discrete Event System (WODES 2006).
    9. Gang, X., & Wu, Z. 2004. Deadlock-Free Scheduling Strategy for Automated Production Cell. IEEE Trans actions on Systems, Man, and Cybernetics, 34.
    10. Ghaffari, A., Rezg, N., & Xie, X. 2003. Design of a Live and Maximally Permissive Petri Net Controller Using the Theory of Regions. IEEE Transactions on Robotics and Automation, 19: 137-142.
    11. Han, K.-H. 2010. Object-Oriented Modeling, Simulation and Automatic Generation of PLC Ladder Logic. intech.
    12. Heiner, M., Herajy, M., Liu, F., Rohr, C., & Schwarick, M. 2012. Snoopy – A Unifying Petri Net Tool. In S. Haddad, & L. Pomello (Eds.), Application and Theory of Petri Nets, Vol. 7347: 398-407: Springer Berlin Heidelberg.
    13. Huang, B.-X., & Liang, G.-R. 2010. Three Layers Architecture Approach to Petri Net / Ladder Diagram Transformation Problem. Journal of the Mechatronic Industry, 329.
    14. Huang, Y.-S., Xie, X., & Chung, D.-H. 2006. Siphon-Based Deadlock Prevention Policy for Flexible Manufacturing Systems. IEEE Trans actions on Systems, Man, and Cybernetics, 36.
    15. Lee, J.-S., & Hsu, P.-L. 2004. An Improved Evaluation of Ladder Logic Diagrams and Petri Nets for The Sequence Controller Design in Manufacturing Systems. Intelligent Advanced Manufacture Technology, 24: 279-287.
    16. Lee, S., & Tilbury, D. M. 2007. Deadlock-Free Resource Allocation Control for a Reconfigurable Manufacturing System With Serial and Parallel Configuratio. IEEE Transactions on Systems, Man, and Cybernetics, 37.
    17. Li, L., Liu, H., & Sun, Y. 2007. A Method for the Simulation of Hydraulic System Controlled by PLC Based on LabView and FluidSIM-H. Machine, Tool & Hydraulics, 35.
    18. Li, Z.-W., & Zhou, M.-C. 2004. Elementary Siphons of Petri Nets and Their Application to Deadlock Prevention in Flexible Manufacturing Systems. IEEE Transactions on Systems, Man, and Cybernetics, 34.
    19. Li, Z., Zhou, M., & Wu, N. 2008. A Survey and Comparison of Petri Net-Based Deadlock Prevention Policies for Flexible Manufacturing Systems IEEE Transactions on Robotics and Automation: 173-188.
    20. Mohan, S., Yalcin, A., & Khator, S. 2004. Controller Design and Performance Evaluation for Deadlock Avoidance in Automated Flexible Manufacturing Cells. Robotics and Computer-Integrated Manufacturing.
    21. Moorthy, R. L., Wee, H.-G., Ng, W.-C., & Teo, C.-P. 2003. Cyclic Deadlock Prediction and Avoidance for Zone-Controlled AGV. International Journal of Production Economics.
    22. Optimizer, G. 2013. Gurobi Optimizer.
    23. Ramadge, P. J. G., & Wonham, W. M. 1989. The Control of Discrete Event Systems. Proceedings of IEEE, 77.
    24. Roch, S., & Starke, P. P. H. 1999. INA - Integrated Net Analyzer_ Version 2.2. Humboldt university.
    25. Silberschatz, A., Galvin, P. B., & Gagne, G. 2005. Operating System Concepts (7 ed.).
    26. Uzam, M. 2002. An Optimal Deadlock Prevention Policy for Flexible Manufacturing Systems Using Petri Net Models with Resources and the Theory of Regions. Advanced manufacturing technology, 19: 192-208.
    27. Uzam, M. 2004. The Use of the Petri Net Reduction Approach for an Optimal Deadlock Prevention Policy for Flexible Manufacturing Systems. Advanced manufacturing technology, 23: 204-219.
    28. Uzam, M., & Zhou, M.-C. 2007. An Iterative Synthesis Approach to Petri Net-Based Deadlock Prevention Policy for Flexible Manufacturing Systems. IEEE Trans actions on Systems, Man, and Cybernetics.
    29. Viswandham, N., Narahari, Y., & Johnson, T. L. 1990. Deadlock Prevention and Deadlock Avoidance in Flexible Manufacturing Systems Using Petri Net Models. IEEE Transactions on Robotics and Automation, 6: 713-723.
    30. Xing, K., Jin, X., & Feng, Y. 2005. Deadlock Avoidance Petri Net Controller for Manufacturing Systems with Multiple Resource Service, Proceedings of the 2005 IEEE International Conference on Robotics and Automation.
    31. Yoon, H. J., & Lee, D. Y. 2004. Deadlock-Free Scheduling of Photolithography Equipment in Semiconductor Fabrication. IEEE transactions on Semiconductor Manufacturing 17.
    32. 三菱電機股份有限公司. 民97. 三菱可程式控制器PLC入門篇.
    33. 方本欣, 張弘, & 梁高榮. 民100. 用法則矩陣分解法從選項裴氏圖產生記號圖. 機械工業雜誌, 341: 104-116.
    34. 王元昌. 民98. 活用Omron PLC的技巧: 全華圖書股份有限公司.
    35. 甘清華. 2010. 基於信標選擇的死鎖控制算法研究. 西安電子科技大學.
    36. 吳添財. 民91. 以裴氏網路建構彈性製造系統之動態模擬與線上診斷系統之研究. 國立高雄第一科技大學.
    37. 李志武, & 周孟初. 2009. 自動製造系統建模、分析與死鎖控制: 科學出版社.
    38. 李開南. 2010. 基於區域理論的 Petri 網活性控制器優化設計. 西安電子科技大學.
    39. 李麗娜, 柳洪義, & 孫一藍. 2007. 一種基於 LabView 及 FluidSim-H 的 PLC 控制液壓系統仿真方法. 機床與液壓, 35.
    40. 宓哲民. 民101. 機電整合-可程式應用原理與應用實務: 全華圖書股份有限公司.
    41. 林楊祥. 民101. 可程式控制器程式設計技術的發展與驗證. 遠東科技大學.
    42. 林潔妤. 民97. 裴氏圖軟體撰碼問題中自動規範測試系統的設計與實作. 國立交通大學.
    43. 梁高榮. 民98. 斐氏圖與記號圖:可程式控制器的分析工具. 機械工業雜誌, 319: 119-130.
    44. 梁高榮. 民100. 利用動態擬陣理論設計台性製造系統偵查法則. 機械工業雜誌, 340.
    45. 陳音帆. 民97. 斐氏圖導向控制器開發系統的設計與實作. 國立交通大學.
    46. 陳書皓, 梁. 民102. 五層式架構解歐氏記號圖 / 階梯圖轉換問題. 機械工業雜誌, 361.
    47. 傅振棻. 民97. 氣壓迴路設計經典: 全華圖書股份有限公司.
    48. 曾呂國. 民94. 整合 IDEF 與派翠網路於物件導向至控制系統的分析與設計. 國立雲林科技大學.
    49. 黃柏勳, 梁. 民99. 三層式架構解裴氏圖/階梯圖轉換問題. 機械工業雜誌, 329: 114-126.
    50. 黃泰霖. 民102. 應用派翠網路於資源限制改變之製造系統控制的動態重構. 國立雲林科技大學.
    51. 楊鎮宇, 何佳育, & 朱智煒. 民99. CoDeSys 控制軟體操作說明. 逢甲大學.
    52. 廖扶西. 民89. 派翠網路的基本架構. 國立政治大學.
    53. 廖崧富. 民93. 整合IDEF/CTPN/SFC於間斷事件控制系統PLC分析與設計之研究. 國立雲林科技大學.
    54. 潘彥良. 民100. 以限制理論為基礎之彈性製造系統死鎖預防策略之研究. 國防大學理工學院.
    55. 鄭仲元. 民99. 記號圖到階梯圖的自動物件轉換. 國立交通大學.

    下載圖示 校內:立即公開
    校外:2019-09-05公開
    QR CODE