| 研究生: |
洪偉哲 Hung, Wei-Je |
|---|---|
| 論文名稱: |
基於IEC61131-10格式的可程式邏輯控制器之梯形圖編譯成結構式文本語言 Compiling PLC Ladder Diagram to Structured Text Based on IEC61131-10 Standard |
| 指導教授: |
廖德祿
Liao, Teh-Lu |
| 學位類別: |
碩士 Master |
| 系所名稱: |
工學院 - 工程科學系 Department of Engineering Science |
| 論文出版年: | 2020 |
| 畢業學年度: | 108 |
| 語文別: | 中文 |
| 論文頁數: | 51 |
| 中文關鍵詞: | 頂點活動圖 、IEC61131-10規範 、梯形圖 、功能塊 、結構化文本 |
| 外文關鍵詞: | AOV, IEC61131-10, Ladder Diagram, Function Block, Structured Text |
| 相關次數: | 點閱:55 下載:0 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
IEC61131-10為IEC61131項目的導出和導入指定了一種基於XML的交換格式,可以在不同的開發環境之間轉移,由於IEC61131-10規範的問世,既有的編譯軟體無法編譯符合IEC61131-10的XML,換句話說即無法編譯PLC以圖形表示並儲存於XML檔之程式。本篇論文基於IEC61131-10所指定的XML格式,將PLC梯形圖(ladder diagram)經由一系列的步驟轉換為結構化文本(structured text),包括將梯形圖映射為頂點活動圖(Activity on Vertex, AOV),將AOV圖以鄰接矩陣儲存,並以連結串列依序將結構化文本程式輸出。本論文利用串聯-並聯化簡,直接將化簡得出的布林邏輯式儲存在AOV上的節點位置,再將最終的結果輸出為結構化文本。有別於以往論文只討論梯形圖的轉換,本論文將加入功能塊一同討論,並將功能塊(function block)接腳引進原始AOV圖,再以遞迴搜尋的方式找出每個對應接腳的AOV子圖,分部拆解AOV圖並逐一解析其中布林邏輯式,再將邏輯式重組為結構化文本的樣貌,進而完成含有功能塊梯形圖與結構化文本的轉換。
The purpose of this thesis is to compile PLC ladder diagram into structured text. This thesis uses the methodology of converting ladder diagram into activity on vertex (AOV) digraph and series parallel merging method to realize an algorithm for compiling a ladder diagram into structured text. It is an algorithm specified for the XML based on IEC61131-10, which is released in April 2019. The research methodology of the thesis is to generate an AOV digraph by the output pin id provided by the XML to realize the topology of the ladder diagram including function blocks. As we have this AOV digraph, we use a double iterative method to divide this AOV digraph into several AOV subgraphs by the notation of coils and function blocks. In the end, we can get the structured text by using series parallel merging method to solve each AOV subgraph.
參考文獻
[1] International Electrotechnical Commision“Programmable controllers - Part 10: PLC open XML exchange format,” Technical Report, International Electro technical Commission, 2019.
[2] G. Fen and W. Ning, “A Transformation Algorithm of Ladder Diagram into Instruction List Based on AOV Digraph and Binary Tree,” TENCON 2006 - 2006 IEEE Region 10 Conference, pp. 1-4, 2006.
[3] F. Hu, L. Fu, L. Liu and G. Zhang, “ An Algorithm about Transforming PLC Ladder Diagram to Instruction List Based on Series-Parallel Merging Method,” 2008 IEEE Pacific-Asia Workshop on Computational Intelligence and Industrial Application, pp. 812-816, 2008.
[4] J. Karl-Heinz, M. Tiegelkamp, IEC61131-3: programming industrial automation systems, Springer-Verlag Berlin Haidelberg, 2010.
[5] Y. Bao, X. Ding and Y. Song, “Conversion from PLC Ladder Diagram to the Assembly Language Based on AOV Graph,”2012 Fifth International Conference on Intelligent Networks and Intelligent Systems, pp. 69-72, 2012.
[6] Bollobas, Bela,“Modern Graph Theory,”Springer-Verlag, 1998.
[7] Diestel, Reinhard,“Graph Theory,”Springer-Verlag, 2016.
[8] R. Somkunwar and V. M. Vaze, R. Somkunwar and V. M. Vaze, “A novel approach for graph isomorphism: Handling large graphs,” 2017 2nd IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology, 2017.
[9] F. Harary and R. Z. Norman, Structural Models: An Introduction to the Theory of Directed Graphs, John Wiley & Sons Inc; 1st edition , 1965.
[10] M. Schürenberg, “Transformation of GRAFCET-Based Control Specifications Into an IEC 61131-3 Implementation”Technische Universität Hamburg-Harburg Institute for Software Systems, 2015.
[11] 魏良縈, “可加註語言樹轉換法的分析:從記號階梯圖到記號圖,”國立交通大學工業工程與管理研究所碩士論文, 2010.
[12] K.H. Jhon, M. Tiegelkamp, “IEC61131-3 Programming Industrial Automation Systems,”Springer, 1995
[13] Yan Yi and Chen Haidan, “An optimizing compiler method to avoid partial invalid PLC instruction,” 2010 IEEE International Symposium on Industrial Electronics, 2010.
[14] D. Li, Q. Cai and F. Pei, “The new interconversion algorithm between ladder diagram and instruction list,” 2010 IEEE International Conference on Intelligent Computing and Intelligent Systems, pp. 820-823, 2010.
[15] J. Zhang, B. Lang and Y. Duan, “An XML Data Placement Strategy for Distributed XML Storage and Parallel Query,” 2011 12th International Conference on Parallel and Distributed Computing, Applications and Technologies, pp. 433-439, 2011.
[16] A. Dekhtyar and I. E. Iacob, “Processing XML documents with overlapping hierarchies,” Proceedings of the 5th ACM/IEEE-CS Joint Conference on Digital Libraries (JCDL '05), pp. 409-409, 2005.
[17] PLCopen, “IEC 61131-10”.https://plcopen.org/iec-61131-10.
[18] Q. Ye, “IFN Application in DFS of Artificial Intelligence,” 2008 International Conference on MultiMedia and Information Technology, 2008.
[19] Beckhoff, “Beckhoff Information System”, https://infosys.beckhoff.com
[20] R. Somkunwar and V. M. Vaze,“A novel approach for graph isomorphism: Handling large graphs,” IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology, pp. 1242-1247, 2017.
[21] L. Huang, W. Liu and Z. Liu, “Algorithm of transformation from PLC ladder diagram to structured text,” International Conference on Electronic Measurement & Instruments, pp. 4-778-4-782, 2009.
校內:2025-08-05公開