跳到主要內容

簡易檢索 / 詳目顯示

研究生: 林似鋒
Ssu-feng Lin
論文名稱: 一個基於PLCopen的嵌入式可程式邏輯控制器快速開發平台
A PLCopen-based Rapid Development Platform for Embedded Programmable Logic Controller
指導教授: 陳慶瀚
口試委員:
學位類別: 碩士
Master
系所名稱: 資訊電機學院 - 資訊工程學系在職專班
Executive Master of Computer Science & Information Engineering
論文出版年: 2014
畢業學年度: 102
語文別: 中文
論文頁數: 93
中文關鍵詞: PLCPLCopenIEC61131-3
外文關鍵詞: PLC, PLCopen, IEC61131-3
相關次數: 點閱:14下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • PLC是工業自動化領域一個不可或缺的設備。隨著工業4.0趨勢的出現,傳統的封閉式控制系統已經不能滿足未來智慧製造的需求,新的PLC技術將朝向開放式、標準化,並且具有快速開發和跨硬體平台佈署的能力發展。本研究基於PLCopen的開放性架構,提出一個新的PLC軟硬體開發平台。此一平台使用開放源碼的PLCopen編輯器進行PLC應用系統的編輯,本研究則實現一個XML分析器(parser)和C code產生器。得以將編輯完成的PLC應用系統合成為低階的ANSI C程式。為了實現完整的嵌入式PLC系統開發,我們針對低功耗、低成本的微控制器目標硬體 STM32F207,設計了一個符合IEC61131-3標準的嵌入式中介軟體,作為PLC在微控制器的即時執行引擎。最後我們整合微控制器的各類PLC週邊,包含DIO、RS485通訊、步進馬達驅動,結合上述軟體,完成一個開放性嵌入式PLC快速開發和驗證平台。論文最後,我們以數個應用實例來驗證和演示此開發平台之功能。


    Programmable Logic Controller (PLC) is indispensable automation equipment in industry. While the traditional closed control system cannot meet the needs of future intellectual manufacturing, with the emergence of industrial 4.0 trends, the new PLC technology will make it possible to have an open and standardized hardware platform deployment, capable of having efficient and effective developments and deployments. Based on the open architecture of PLCopen standard, this study is to propose a new PLC hardware and software development platform. This platform uses open source editor for editing PLC application system using SFC language, which is saved as XML file. We design an XML parser and C code generator for converting the XML to low-level ANSI C program. In order to achieve a completely embedded PLC system development, based on low-cost microcontroller solution, we design and implement an embedded PLC middleware in line with the IEC61131-3 standard as PLC run-time engine. Finally, we integrate STM32F207 microcontroller with divers PLC peripherals, including DIO, RS485 communication, and stepper motor drivers to form an evaluation board. In combination with the above software, we have completed an embedded PLC rapid development platform. In conclusion of this paper, we use a number of application examples to validate and demonstrate the functionalities of this development platform.

    摘要 III Abstract IV 目錄 V 圖目錄 VIII 表目錄 XI 第一章、緒論 1 1.1 研究背景與動機 1 1.2 研究目的 3 1.3 論文架構 4 第二章、文獻回顧 5 2.1 SoftPLC 5 2.2 可程式邏輯控制器(PLC) 6 2.3 IEC61131-3標準 7 2.4 PLCopen 13 2.5 PLCopen Editor (Beremiz) 14 第三章、嵌入式PLC開發平台系統架構 15 3.1 系統架構與開發流程 15 3.2 各部硬體 17 3.2.1 微控制器STM32F207開發板 17 3.2.2 數位輸入模組 18 3.2.3 數位輸出模組 19 3.2.4 步進馬達及驅動器模組 21 3.2.5 RS485通訊模組 23 3.2.6 Modbus通訊協定 25 3.3 PLC嵌入式中介軟體(Run-Time Engine) 32 3.4 XML轉C code 33 第四章、系統整合實作 36 4.1開發流程 36 4.2 PLCopen Editor - Beremiz 38 4.3 XML Parser 39 4.3.1 XML介紹 39 4.3.2 XML解析 40 4.4 XML轉C code產生器 43 4.5 程式碼編譯及下載到硬體平台 48 4.5.1 Keil uVersion 4介紹 49 4.5.2 編譯及下載C code 49 第五章、開發平台驗證 51 5.1 硬體平台 51 5.2 應用例一(延時開燈) 51 5.2.1 示意圖 51 5.2.2 動作說明 51 5.2.3 裝置說明 52 5.2.4 驗證流程與結果 52 5.3 應用例二(燈號閃爍) 55 5.3.1 示意圖 55 5.3.2 動作說明 55 5.3.3 裝置說明 56 5.3.4 驗證流程與結果 56 5.4 應用例三(停車場) 61 5.4.1 示意圖 61 5.4.2 動作說明 61 5.4.3 裝置說明 61 5.4.4 驗證流程與結果 62 5.5 應用例四(生產出貨) 67 5.5.1 示意圖 67 5.5.2 動作說明 67 5.5.3 裝置說明 67 5.5.4 驗證流程與結果 68 5.6 與現有PLC比較 72 第六章、結論與未來展望 73 6.1結論 73 6.2未來展望 73 參考文獻 74 附錄A 76

    [1]PLC, “Programmable logic controller”, [Online].Avaliable: http://en.wikipedia.org/wiki/Programmable_logic_controller
    [2]Dong Yulin, Zheng Chunjiao, “Design and Research of Embedded PLC Development System”, Computer Research and Development (ICCRD), Volume: 3 pp. 226-228, 11-13 March 2011.
    [3]R. W. Lewis, “Programming Industrial Control System using IEC1131-3”, 1995.
    [4]S.J. Song, X.F. Lin, Q.B. Huang, C.H. Wang, “An Embedded SoftLogic Control System Based on S3C44BOX and IEC 61131-3 Standard”, Control and Automation, pp. 2060-2064, May 30 2007-June 1 2007.
    [5]Eelco van der Wal, “Introduction into IEC 1131-3 and PLCopen”, The Application of IEC 61131 to Industrial Control: Improve Your Bottom Line Through High Value Industrial Control Systems (Ref. No. 1999/076), pp. 2/1-2/8, 1999.
    [6]PLCopen Technical Committee 6, “XML Formats for IEC 61131-3,Ver 1.0”, April 2005.
    [7]浯陽科技, “MIAT-STM32嵌入式ARM Cortex M3開發平台”, [Online].Avaliable: http://www.wu-yang.com.tw/p_info.php?p_type=1
    [8]PLCopen Editor, “PLCopen Editor”, [Online].Avaliable: http://www.beremiz.org/
    [9]TC6-XML, “PLCopen TC6-XML”, [Online].Avaliable: http://www.plcopen.org/
    [10]E.Estevez, M.Marcos, E.Irisarri, “Analysis of IEC 61131-3 Compliance through PLCopen XML Interface”, 7th IEEE International Conference on Industrial Informatics, pp. 757-762, 23-26 June 2009.
    [11]R.J.Mayer, “IDEF0 Function Modeling”, Air Force Systems Command, May 1992.
    [12]匯誠科技, “四路光電隔離模塊”, [Online].Avaliable: http://item.taobao.com/item.htm?spm=a1z10.3.w4002-2585687092.46.apOuAJ&id=14944629600/
    [13]宏遠電子, “8路繼電器模塊”, [Online].Avaliable: http://item.taobao.com/item.htm?id=16208263577/
    [14]宏遠電子, “步進電機驅動板+步進電機”, [Online].Avaliable: http://item.taobao.com/item.htm?spm=a1z10.3.w4002-2910568053.19.aawa54&id=35464431412/
    [15]柏毅電子, “MAX485模組”, [Online].Avaliable: http://goods.ruten.com.tw/item/show?21303030169468/
    [16]Modbus-IDA, “Modbus Application Protocol Specification Version 1.1b”, 2006.
    [17]Ching-Han Chen,Chia-Ming Kuo,Chen-Yuan Chen and Jia-Hong Dai, “The design and synthesis using hierarchical robotic discrete-event modeling”, Journal of Vibration and Control, 2012.
    [18]Keil Corporation, “Keil uVersion4 IDE”, [Online].Avaliable: http://www.keil.com/uvision/uv4.asp/

    QR CODE
    :::