簡易檢索 / 詳目顯示

研究生: 徐仲緯
Syu, Jhong-Wei
論文名稱: 移植乙太網路控制自動化技術主站開源軟體到嵌入式即時作業系統平台
Porting Open Source EtherCAT Master Software Stack to ZedBoard Running FreeRTOS
指導教授: 蘇銓清
Sue, Chuan-Ching
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 資訊工程學系
Department of Computer Science and Information Engineering
論文出版年: 2017
畢業學年度: 105
語文別: 英文
論文頁數: 72
中文關鍵詞: 即時乙太網路乙太網路控制自動化技術即時控制週期性即時任務即時作業系統
外文關鍵詞: Real-Time Ethernet, EtherCAT, Periodic Real-time Tasks, Real-Time Control, RTOS
相關次數: 點閱:159下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 自1980年以來,工業用通訊協定的趨勢為各個公司依照自己的應用領域而發展出不同的Fieldbus標準,在這些Fieldbus標準中卻存在許多缺點,因此發展出即時乙太網路。在即時乙太網路中,乙太網路控制自動化技術具有最佳的即時性和頻寬的高利用率,因此應用最為廣泛。在乙太網路控制自動化技術網路中,EtherCAT主站為了能對高精度EtherCAT從站馬達進行即時控制,EtherCAT主站需要能夠排程週期性即時任務,但是,常見的開源EtherCAT主站軟體堆疊都是在Linux平台進行開發,如果要提供排程週期性即時任務,則必須搭配即時擴充模組。為了改善EtherCAT主站排程週期性即時任務的精準度問題,本文透過修改SOEM主站開源軟體堆疊與FreeRTOS即時作業系統和FreeRTOS即時作業系統與Zedboard硬體之間的介面來開發出EtherCAT主站,如此一來,EtherCAT主站擁有排程週期性即時任務能力,進而能對高精度EtherCAT從站馬達進行即時同步控制。本文在Zedboard硬體上實現EtherCAT主站,並且針對EtherCAT主站進行任務排程抖動時間量測,最大的排程抖動時間為1.929μs,這足以應付即時控制應用。本文探討EtherCAT主站向高精度EtherCAT從站馬達進行即時同步控制會遇到的問題,並開發出EtherCAT主站能夠以125μs即時週期時間向高精度EtherCAT從站馬達進行即時同步控制;我們也將ZedBoard硬體、FreeRTOS即時作業系統和SOEM軟體堆層共三層進行整合,並降低排程抖動時間。

    Since 1980, the trend in industrial communication protocols has been to develop fieldbus standards in accordance with the applications in use. Real-Time Ethernet was developed to address the numerous shortcomings of conventional fieldbus standards. EtherCAT is the most widely applied Real-Time Ethernet protocol, due to its real-time operability, synchronization performance, and high bandwidth utilization. However, EtherCAT requires the scheduling of periodic real-time tasks to enable the synchronization of multiple high-precision slave motors used for real-time control. Most existing open-source EtherCAT master software stacks are on the Linux platform, and therefore require specific extensions to enable the precision scheduling of periodic real-time tasks. The development of the EtherCAT Master Architecture has opened the door to the scheduling of periodic real-time tasks. Implementation of the EtherCAT embedded master is achieved by modifying interfaces between SOEM software stack and FreeRTOS RTOS and between FreeRTOS RTOS and ZedBoard hardware. These schemes have been shown to reduce maximum scheduling jitter to just 1.929μs. In this thesis, we discuss various issues encountered in the control and synchronization of multiple high-precision EtherCAT slave motors. We developed an EtherCAT embedded master that enables the scheduling of periodic real-time tasks during every 125μs real-time period. The three basic layers (SOEM Software Stack, FreeRTOS RTOS and ZedBoard hardware) are integrated and scheduling jitter is greatly reduced.

    中文摘要 IV Abstract V Contents 1 List of Figures 3 List of Tables 5 Terms and Definitions 7 1 Introduction 9 2 Motivation 12 3 Background 14 3.1 Real-Time Ethernet 14 3.2 The Ethernet Powerlink Protocol 15 3.2.1 Technical aspects 16 3.3 The EtherCAT Protocol 17 3.3.1 Technical aspects 18 3.3.2 Device model 19 3.3.3 EtherCAT slave structure 20 3.3.4 EtherCAT frame structure 22 3.3.5 Addressing 24 3.3.6 Slave classification 27 3.3.7 Master classification 27 3.3.8 Communication services 28 3.3.9 Application layer 33 3.3.10 Open Source EtherCAT Master Stack 38 4 EtherCAT Master Architecture 40 4.1 Embedded Platform 40 4.2 Ethernet NIC Driver 41 4.3 Real-time Operating System 43 4.4 EtherCAT Master Software Stack 44 4.5 Application 45 5 Results 46 5.1 Testing and Verification 46 5.2 Comparison between EtherCAT and EPL 54 6 Related Work 57 6.1 Performance Evaluation of an EtherCAT Master 57 6.2 Implementation of an EtherCAT Master Under Different Platform 61 6.3 Increasing Performance of an EtherCAT Master 65 7 Conclusion and Future Work 68 References 70

    [1] M. Felser, T. Sauter, "The fieldbus war: history or short break between battles?," in Proceedings, IEEE International Workshop Factory Communication Systems, pp. 73-80, 2002.
    [2] J. Kay, R. Entzminger, and D. Mazur, "Industrial ethernet- overview and best practices," in Pulp and Paper Industry Technical Conference, pp. 18-27, Jun. 2014.
    [3] J. Kay, R. Entzminger, D. Mazur, "Industrial ethernet: Overview and application in the forest products industry," IEEE Industry Application Magazine, pp. 54-63, 2015.
    [4] 張崇瑋, "工業控制自動化乙太網路技術發展概況," 機械工業雜誌, no. 392, pp.84-85, Nov. 2015.
    [5] B. Galloway, G. Hancke, "Introduction to industrial control networks," IEEE Communications Surveys and Tutorials, vol. 15, no. 2, pp. 860-880, 2013.
    [6] M. Felser, T. Sauter, "Standardization of industrial Ethernet—The next battlefield?," in Proceedings, IEEE International Workshop Factory Communication Systems, pp. 413-421, Sep. 2004.
    [7] M. Rostan, "Industrial Ethernet Technologies: Overview and Comparison," ETG Industrial Ethernet Seminar Series, Nuremberg, Nov. 2008.
    [8] J.-D. Decotignie, "Ethernet-based real-time and industrial communications," in Proceedings, IEEE International, vol. 93, no. 6, pp. 1102-1118, Jun. 2005.
    [9] M. Felser, "Real-time Ethernet–Industry prospective," in Proceedings, IEEE International, vol. 93, no. 6, pp. 1118-1129, Jun. 2005.
    [10] H. Büttner, D. Janssen and M. Rostan, "EtherCAT - the Ethernet fieldbus," PC Control Magazine, pp. 14-19, March 2003.
    [11] D. Jansen, H. Buttner, "Real-time ethernet the EtherCAT solution," Computing and Control Engineering, vol. 15, pp. 16-21, Feb. 2004.
    [12] S. Potra and G. Sebestyen, "EtherCAT protocol implementation issues on an embedded linux platform," in Proceedings, IEEE International Conference, vol. 1. pp. 420-425, 2006.
    [13] M. Felser, "Real time Ethernet: Standardization and implementations," in Proc. IEEE Int. Symp. Ind. Electron., pp. 3766–3771, 2010.
    [14] IgH EtherCAT master Reference Manual [Online]. Available: http://www.etherlab.org/en/ethercat/
    [15] Open EtherCAT Society [Online]. Available: http://openethercatsociety.github.io/
    [16] FreeRTOS [Online]. Available: http://www.freertos.org/
    [17] Zynq-7000 All Programmable SoC Technical Reference Manual [Online]. Available: https://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
    [18] M. Cereia, I. Cibrario Bertolotti, and S. Scanzio, "Performance evaluation of an EtherCAT master using Linux and the RT Patch," in Proc. IEEE Int. Symp. Ind. Electron., pp. 1748–1753, Jul. 2010.
    [19] M. Cereia, I. Cibrario-Bertolotti, and S. Scanzio, "Performance of a real-time EtherCAT master under Linux," IEEE Transactions on Industrial Informatics, vol. 7, no. 4, pp. 679-687, Nov. 2011.
    [20] Andreas Tågerud, "Implementation of an EtherCAT Master," Master Thesis, pp. 1-76, Sep. 2011.
    [21] EtherCAT Technology Group, 2010, ETG.1000.3 S V1.0.3 EtherCAT Specification - Part 3 Data Link Layer service definition. [PDF] ETG. Available through: ETG Member Area <http://www.ethercat.org/en/publications.html>
    [22] EtherCAT Technology Group, 2010, ETG.1000.4 S V1.0.3 EtherCAT Specification - Part 4 Data Link Layer protocols specification. [PDF] ETG. Available through: ETG Member Area <http://www.ethercat.org/en/publications.html>
    [23] EtherCAT Technology Group, 2010, ETG.1000.5 S V1.0.3 EtherCAT Specification - Part 5 Application Layer service definition. [PDF] ETG. Available through: ETG Member Area <http://www.ethercat.org/en/publications.html>
    [24] EtherCAT Technology Group, 2010, ETG.1000.6 S V1.0.3 EtherCAT Specification - Part 6 Application Layer protocol specification. [PDF] ETG. Available through: ETG Member Area http://www.ethercat.org/en/publications.html
    [25] Hardware Data Sheet ET1815 / ET1817 Slave Controller IP Core for Xilinx FPGAs IP Core Release 1.01b [Online]. Available: http://www.mmto.org/dclark/Reports/EtherCATdocs/EtherCAT_IPCore_Xilinx_V1_01b_Datasheet_all_v1i5.pdf
    [26] EtherCAT Technology Group, "EtherCAT Communication," [Online]. Available: http://lectoraatmechatronica.wikispaces.com/file/view/EtherCAT%20communication.pdf/346392478/EtherCAT%20communication.pdf
    [27] EtherCAT introduction [Online]. Available: https://sir.upc.edu/wikis/roblab/index.php/Development/Ethercat
    [28] CiA DS401 Device Profile for Generic I/O Modules [Online]. Available: https://www.can-cia.org/standardization/specifications
    [29] CiA DS402 Device Profile Drives and Motion Control [Online]. Available: https://www.can-cia.org/standardization/specifications
    [30] AC Servo Drives Σ-V Series USER'S MANUAL EtherCAT (CoE) Network Module Model: SGDV-OCA01A [Online]. Available: http://www.innovativeidm.com/ResourceManager.aspx?FileName=TM.YMOT.SIEPC72082904.pdf&FileType=7
    [31] EPSG DS 301 V1.2.0 - POWERLINK Communication Profile Specification [Online]. Available: http://www.ethernet-powerlink.org/en/downloads/technical-documents/
    [32] EtherCAT Technology Group, 2011, ETG.1500 S V1.0.0 EtherCAT Master Classes. [PDF] ETG. Available: http://www.ethercat.org/en/publications.html
    [33] G. Malaguti, "Design of a New High Bandwidth Network for Agricultural Machines," PhD Thesis, pp. 1-85, 2015.
    [34] openCONFIGURATOR User Manual V1.4.1, Available: https://www.kalycito.com/images/articles/openCONFIGURATOR_UserManual.pdf
    [35] Quick Start - POWERLINK on Raspberry Pi2 [Online]. Available: https://www.kalycito.com/index.php/references/%20119-how-to-powerlink-on-raspberry-pi-2
    [36] B. Choi, R. Delgado, H.-H. Chang, and W.-C. Shin, "Implementation and Performance Analysis of an EtherCAT Master on the Latest Real-time Embedded Linux," International Journal of Applied Engineering Research, vol. 10, no. 24, pp. 44603-44609, Nov. 2015.
    [37] I.-S. Song, Y.-H. Jeon, J.-H. Kim, S.-H. Seo, K.-H. Kwon, J.-H. Chun, and J.-W. Jeon, "Implementation and analysis of the embedded master for EtherCAT," in Control Automation and Systems (ICCAS), 2010 International Conference on, pp. 2418-2422, oct 2010.
    [38] H.-C. Yi1 and J.-Y. Choi, "Performance Analysis of Linux-Based EtherCAT DC Synchronization," IEEE International Conference on Advanced Intelligent Mechatronics (AIM), pp. 549-552, July 2015.
    [39] T. Zhou and J. Hu, "Design and realization of EtherCAT master," in Electronic and Mechanical Engineering and Information Technology, International Conference on, vol. 1, pp. 173 -177, Aug. 2011.
    [40] T. Maruyama and T. Yamada, "Hardware acceleration architecture for ethercat master controller," IEEE International Workshop on Factory Communication Systems, pp. 223-232, May. 2012.
    [41] M. Knezic, B. Dokic, and Z. Ivanovic, "Increasing EtherCAT performance using frame size optimization algorithm," in Processing, IEEE International Conference on Emerging Technologies And Factory Automation, pp. 1-4, 2011.

    無法下載圖示 校內:2022-08-21公開
    校外:不公開
    電子論文尚未授權公開,紙本請查館藏目錄
    QR CODE