Skip navigation

DSpace

機構典藏 DSpace 系統致力於保存各式數位資料(如:文字、圖片、PDF)並使其易於取用。

點此認識 DSpace
DSpace logo
English
中文
  • 瀏覽論文
    • 校院系所
    • 出版年
    • 作者
    • 標題
    • 關鍵字
    • 指導教授
  • 搜尋 TDR
  • 授權 Q&A
    • 我的頁面
    • 接受 E-mail 通知
    • 編輯個人資料
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 電機工程學系
請用此 Handle URI 來引用此文件: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/94283
完整後設資料紀錄
DC 欄位值語言
dc.contributor.advisor連豊力zh_TW
dc.contributor.advisorFeng-Li Lianen
dc.contributor.author陳昱彣zh_TW
dc.contributor.authorYu-Wen Chenen
dc.date.accessioned2024-08-15T16:36:45Z-
dc.date.available2024-08-16-
dc.date.copyright2024-08-15-
dc.date.issued2024-
dc.date.submitted2024-08-07-
dc.identifier.citation[1: Rostan, Stubbs, and Dzilno 2010] M. Rostan, J. E. Stubbs, and D. Dzilno, “EtherCAT enabled advanced control architecture,” in IEEE/SEMI Advanced Semiconductor Manufacturing Conference (ASMC), Jul. 2010, pp. 39–44. DOI: 10.1109/ASMC.2010.5551414.
[2: Potra and Sebestyen 2006] S. Potra and G. Sebestyen, “EtherCAT Protocol Implementation Issues on an Embedded Linux Platform,” in IEEE International Conference on Automation, Quality and Testing, Robotics, vol. 1, May 2006, pp. 420–425. DOI: 10.1109/AQTR.2006.254573.
[3: NXP 2022] NXP, EtherCAT Master Solution: 9-axis Robot Arm Control, https://www.nxp.com/video/ethercat-leader-solution-9-axis-robot-arm-control:ETHERCATSOLUTION-9-AXIS-ROBOT-ARM-CONTROL-VID, 2022.
[4: NEXCOM 2014] NEXCOM, EtherCAT CNC Controller NControl20 Helps Developers Flex Design Muscles, https://www.nexcom.com/news/Detail/ethercat-cnccontroller-ncontrol20-helps-developers-flex-design-muscles, 2014.
[5: Axiomtek 2016] Axiomtek, EtherCAT Master Controller in Factory Automation, https://www.axiomtek.com.tw/ArticlePageView.aspx?ItemId=331&t=47, 2016.
[6: NEXCOM 2016] NEXCOM, NEXCOM EtherCAT Master Controllers AccelerateReal-Time Control to Push Production to Full Throttle, https://www.nexcom.com.tw/news/Detail/nexcom-ethercat-master-controllers-accelerate-real-time-control-to-pushproduction-to-full-throttle, 2016.
[7: Moon et al. 2009] Y. S. Moon, N. Y. Ko, K.-S. Lee, Y.-C. Bae, and J.-K. Park, “Real-time EtherCAT Master Implementation on Xenomai for a Robot System,” International Journal of Fuzzy Logic and Intelligent Systems, vol. 9, Sep. 2009. DOI: 10.5391/IJFIS.2009.9.3.244
[8: Wang et al. 2010] L. Wang, J. Qi, H. Jia, and B. Fang, “The construction of soft servo networked motion control system based on EtherCAT,” in 2nd Conference on Environmental Science and Information Application Technology, vol. 3, Jul. 2010, pp. 356–358. DOI: 10.1109/ESIAT.2010.5568340.
[9: Zhou et al. 2015] C.-C. Zhou, J.-M. Xu, X. Jin, J. Mao, and L.-T. Xu, “Design of servo drive slaves based on EtherCAT,” in 27th Chinese Control and Decision Conference (CCDC), May 2015, pp. 5999–6004. DOI: 10.1109/CCDC.2015.7161885.
[10: Delgado and Choi 2017] R. Delgado and B. Choi, “Real-time Servo Control using EtherCAT Master on Realtime Embedded Linux Extensions,” International Journal of Applied Engineering Research, vol. 12, pp. 1179–1185, Nov. 2017.
[11: Zhang et al. 2019] G. Zhang, Z. Li, F. Ni, and H. Liu, “A Real-time Robot Control Framework Using ROS Control for 7-DoF Light-weight Robot,” in IEEE/ASME International Conference on Advanced Intelligent Mechatronics (AIM), Jul. 2019, pp. 1574–1579. DOI: 10.1109/AIM.2019.8868488.
[12: Davis and Burns 2011] R. I. Davis and A. Burns, “A survey of hard real-time scheduling for multiprocessor systems,” ACM Computing Surveys, vol. 43, no. 4, 35:1–35:44, 2011, ISSN: 0360-0300. DOI: 10.1145/1978802.1978814.
[13: Liu and Layland 1973] C. L. Liu and J. W. Layland, “Scheduling Algorithms for Multiprogramming in a Hard-Real-Time Environment,” Journal of the ACM, vol. 20, no. 1, pp. 46–61, 1973, ISSN: 0004-5411. DOI: 10.1145/321738.321743.
[14: Lehoczky, Sha, and Ding 1989] J. Lehoczky, L. Sha, and Y. Ding, “The rate monotonic scheduling algorithm: Exact characterization and average case behavior,” in Real-Time Systems Symposium, Feb. 1989, pp. 166–171. DOI: 10.1109/REAL.1989.63567.
[15: Short 2010] M. Short, “Improved Task Management Techniques for Enforcing EDF Scheduling on Recurring Tasks,” in 16th IEEE Real-Time and Embedded Technology and Applications Symposium, Apr. 2010, pp. 56–65. DOI: 10.1109/RTAS.2010.22.
[16: Burns 1991] A. Burns, “Scheduling hard real-time systems: A review,” Software Engineering Journal, vol. 6, no. 3, pp. 116–128, May 1991, ISSN: 2053-910X. DOI: 10.1049/sej.1991.0015.
[17: Barbalace et al. 2007] A. Barbalace, A. Luchetta, G. Manduchi, M. Moro, A. Soppelsa, and C. Taliercio, “Performance Comparison of VxWorks, Linux, RTAI and Xenomai in a Hard Realtime Application,” in 15th IEEE-NPSS Real-Time Conference, Apr. 2007, pp. 1–5. DOI: 10.1109/RTC.2007.4382787.
[18: Reghenzani, Massari, and Fornaciari 2019] F. Reghenzani, G. Massari, and W. Fornaciari, “The Real-Time Linux Kernel: A Survey on PREEMPT_RT,” ACM Computing Surveys, vol. 52, no. 1, 18:1–18:36, 2019, ISSN: 0360-0300. DOI: 10.1145/3297714.
[19: RTAI home page ] RTAI home page, RTAI, https://www.rtai.org/www.rtai.org/.
[20: Xenomai home page ] Xenomai home page, Xenomai home page, https://www.xenomai.org/.
[21: EtherCAT technology group ] EtherCAT technology group, EtherCAT Technology Group, https://www.ethercat.org/default.htm.
[22: Nguyen and Jeon 2016] V. Q. Nguyen and J. W. Jeon, “EtherCAT network latency analysis,” in International Conference on Computing, Communication and Automation (ICCCA), Apr. 2016, pp. 432–436. DOI: 10.1109/CCAA.2016.7813815.
[23: Shen, Li, and Luo 2020] H. Shen, P. Li, and X. Luo, “Synchronous Multi-axis Motion Control Based on Modified EtherCAT Distributed Clock,” in Chinese Automation Congress (CAC), Jan. 2020, pp. 3674–3678. DOI: 10.1109/CAC51589.2020.9327605.
[24: John and Tiegelkamp 2010] K. H. John and M. Tiegelkamp, IEC 61131-3: Programming Industrial Automation Systems: Concepts and Programming Languages, Requirements for Programming Systems, Decision-Making Aids. Berlin, Heidelberg: Springer, 2010, ISBN: 978-3-642-12014-5 978-3-642-12015-2. DOI: 10.1007/978-3-642-12015-2.
[25: Song et al. 2007] S. Song, X. Lin, Q. Huang, and C. Wang, “An Embedded SoftLogic Control System Based on S3C44BOX and IEC 61131-3 Standard,” in IEEE International Conference on Control and Automation, May 2007, pp. 2060–2064. DOI: 10.1109/ICCA.2007.4376723.
[26: de Sousa and Carvalho 2003] M. de Sousa and A. Carvalho, “An IEC 61131-3 compiler for the MatPLC,” in IEEE Conference on Emerging Technologies and Factory Automation. Proceedings, vol. 1, Sep. 2003, 485–490 vol.1. DOI: 10.1109/ETFA.2003.1247746.
[27: Tisserant, Bessard, and de Sousa 2007] E. Tisserant, L. Bessard, and M. de Sousa, “An Open Source IEC 61131-3 Integrated Development Environment,” in 5th IEEE International Conference on Industrial Informatics, vol. 1, Jun. 2007, pp. 183–187. DOI: 10.1109/INDIN.2007.4384753.
[28: Prahofer et al. 2011] H. Prahofer, R. Schatz, C. Wirth, and H. Mossenbock, “A Comprehensive Solution for Deterministic Replay Debugging of SoftPLC Applications,” IEEE Transactions on Industrial Informatics, vol. 7, no. 4, pp. 641–651, Jan. 2011, ISSN: 1941-0050.DOI: 10.1109/TII.2011.2166768.
[29: Eldijk 2018] V. Eldijk, PLC Motion Control, https://plcopen.org/technical-activities/motion-control, Text, Apr. 2018.
[30: Lin et al. 2018] H.-Y. Lin, I.-W. Cheng, Y.-H. Huang, H.-C. Liu, Y.-H. Lin, C.-Y. Yang, H. Samani, and Y.-J. Chen, “Applying Socket on Connecting EtherCAT and OpenPLC,” in International Conference on System Science and Engineering (ICSSE), Jun. 2018, pp. 1–5. DOI: 10.1109/ICSSE.2018.8520168.
[31: Downey ] A. B. Downey, The Little Book of Semaphores. Createspace Independent Pub, Mar.2009.
[32: Andersson and Tovar 2006] B. Andersson and E. Tovar, “Multiprocessor Scheduling with Few Preemptions,” in 12th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA’06), Aug. 2006, pp. 322–334. DOI: 10.1109/RTCSA.2006.45.
[33: Sha, Rajkumar, and Lehoczky 1990] L. Sha, R. Rajkumar, and J. Lehoczky, “Priority inheritance protocols: An approach to real-time synchronization,” IEEE Transactions on Computers, vol. 39, no. 9, pp. 1175–1185, Sep. 1990, ISSN: 1557-9956. DOI: 10.1109/12.57058.
[34: EIA 2010] EIA, Electronic Industries Alliance (EIA), https://web.archive.org/web/20100301055711/http://www.eia.org/, Mar. 2010.
[35: Organization ] M. Organization, The Modbus Organization, https://www.modbus.org/.
[36: Alliance ] E. Alliance, Ethernet Alliance, https://ethernetalliance.org/.
[37: Delgado et al. 2016] R. Delgado, S.-Y. Kim, B.-J. You, and B.-W. Choi, “An EtherCAT-based real-time motion control system in mobile robot application,” in 13th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI), Aug. 2016, pp. 710–715. DOI: 10.1109/URAI.2016.7734098.
[38: Zhou et al. 2019] Y. Zhou, Z. Li, Y. Zhang, F. Ni, Y. Sun, and H. Liu, “The Real-time Control Framework for a Modular Snake Robot,” in 4th International Conference on Robotics and Automation Engineering (ICRAE), Jan. 2019, pp. 168–172. DOI: 10.1109/ICRAE48301.2019.9043797.
[39: Yoon, Song, and Lee 2009] H. Yoon, J. Song, and J. Lee, “Real-Time Performance Analysis in Linux-Based Robotic Systems,” Jan. 2009.
[40: Delgado and Choi 2017] R. Delgado and B. W. Choi, “On the in-controller performance of an open source EtherCAT master using open platforms,” in 14th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI), Jun. 2017, pp. 744–748. DOI: 10.1109/URAI.2017.7992815.
[41: Hu et al. 2022] F. Hu, F. Qu, J. Li, and H. Zhao, “Real-time research based on ARM-based robot EtherCAT master system,” in International Symposium on Control Engineering and Robotics (ISCER), Feb. 2022, pp. 12–19. DOI: 10 . 1109 / ISCER55570 . 2022 .00009.
[42: Wang and Lin 1999] Y.-C. Wang and K.-J. Lin, “Implementing a general real-time scheduling framework in the RED-Linux real-time kernel,” in 20th IEEE Real-Time Systems Symposium, Feb. 1999, pp. 246–255. DOI: 10.1109/REAL.1999.818850.
[43: Wang and Gombolay 2020] Z. Wang and M. Gombolay, “Learning Scheduling Policies for Multi-Robot Coordination With Graph Attention Networks,” IEEE Robotics and Automation Letters, vol. 5, no. 3, pp. 4509–4516, Jul. 2020, ISSN: 2377-3766. DOI: 10.1109/LRA.2020.3002198.
[44: Zhou and Li 2021] N. Zhou and D. Li, “Cyber–Physical Codesign of Field-Level Reconfigurations in Networked Motion Controllers,” IEEE/ASME Transactions on Mechatronics, vol. 26, no. 4, pp. 2092–2103, Aug. 2021, ISSN: 1941-014X. DOI: 10.1109/TMECH.2020.3032571.
[45: Hamdaoui and Ramanathan 1995] M. Hamdaoui and P. Ramanathan, “A dynamic priority assignment technique for streams with (m, k)-firm deadlines,” IEEE Transactions on Computers, vol. 44, no. 12, pp. 1443–1451, Feb. 1995, ISSN: 1557-9956. DOI: 10.1109/12.477249.
[46: Tran et al. 2013] H.-D. Tran, Z.-H. Guan, X.-K. Dang, X.-M. Cheng, and F.-S. Yuan, “A normalized PID controller in networked control systems with varying time delays,” ISA Transactions, vol. 52, no. 5, pp. 592–599, Sep. 2013, ISSN: 0019-0578. DOI: 10.1016/j.isatra.2013.05.005.
[47: Sung et al. 2011] M. Sung, K. Kim, H.-W. Jin, and T. Kim, “An EtherCAT-based motor drive for high precision motion systems,” in 9th IEEE International Conference on Industrial Informatics, Jul. 2011, pp. 163–168. DOI: 10.1109/INDIN.2011.6034856.
[48: Liang et al. 2019] Z. Liang, Y. Guo, Y. Yang, and G. Chen, “Distribution network control system scheduling strategy,” in IEEE 3rd Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Mar. 2019, pp. 1424–1428. DOI: 10.1109/ITNEC.2019.8729286.
[49: Branicky, Phillips, and Zhang 2002] M. Branicky, S. Phillips, and W. Zhang, “Scheduling and feedback co-design for networked control systems,” in 41st IEEE Conference on Decision and Control, vol. 2, Feb. 2002, 1211–1217 vol.2. DOI: 10.1109/CDC.2002.1184679.
[50: Zhang et al. 2018] X. Zhang, G. Li, P. Wang, z. Yang, J. Lu, and J. Zhang, “Design and Implementation of Real-Time DEVS Event Scheduling Algorithm,” in 3rd International Conference on Mechanical, Control and Computer Engineering (ICMCCE), Sep. 2018, pp. 163–168. DOI: 10.1109/ICMCCE.2018.00041.
[51: Industrial et al. ] W. I. E. C. for Industrial, b. c. c. m. l. n. b. D. a software reference platform with compatible hardware, T. S. I. R.-T. D. Compute, S.-B. Connectivity, and I.-l. management with operational technology–like predictability, Intel®Edge Controls for Industrial, https://www.intel.com/content/www/us/en/internetof-things/industrial-iot/edge-controls-industrial.html.
[52: Trihedral ] Trihedral, VTScada by Trihedral, https://www.vtscada.com/.
-
dc.identifier.urihttp://tdr.lib.ntu.edu.tw/jspui/handle/123456789/94283-
dc.description.abstract由於網路系統的複雜性不斷增加,多個任務必須即時協調對共享資源的存取,延遲、同步和資源爭用的挑戰變得至關重要,但仍須保持精準的運動表現。為了應對這些挑戰,該研究透過即時作業系統 Xenomai 將 EtherCAT 與基於訊號量的即時調度方法整合,使用PID方法控制網絡上的馬達,提出了一種綜合解決方案進行多軸開源控制。這種方法增強了運動控制任務的反應能力,同時管理多任務環境中的資源分配。實驗與模擬結果表明,單軸控制在 30 rev/s 時的最小延遲為 1 微秒,相對速度誤差為 1.47%。在多軸場景中,即使軸數量增加,系統也能以最小的偏移量保持可預測的同步。在 3 個設備時,基於信號量的調度方法使較低的優先級的設備任務執行次數提高32%,使多設備時,較高優先級的設備能夠維持良好的資源實用效率,同時較低的優先級的設備相比傳統排程方式也可以獲得不錯的資源分配。這一研究成果為工業自動化和機器人技術提供了新的解決思路,有助於推動相關領域的進一步發展。zh_TW
dc.description.abstractAs the complexity of networked systems increases, multiple tasks need to coordinate access to shared resources in real time. The challenges of latency, synchronization, and resource contention become critical while still maintaining accurate motion performance. To address these challenges, this research integrates EtherCAT with a semaphore-based real-time scheduling method through the real-time operating system Xenomai, uses the PID control method to control motors on the network, and proposes a comprehensive solution for multi-axis open-source control. This approach enhances responsiveness in motor control tasks while managing resource allocation in a multi-tasking environment. Experimental and simulation results show that the minimum delay of single-axis control is 1 microsecond at 30 rev/s, and the relative speed error is 1.47%. In multi-axis situation, the system maintains predictable synchronization with minimal offset, even as the number of axes increases. When there are 3 devices, the semaphore-based scheduling method increases the number of task executions of lower-priority devices by 32%, so that when there are multiple devices, higher-priority devices can maintain good resource utilization efficiency while lowering the Compared with traditional scheduling methods, devices with higher priority can also obtain better resource allocation. These results provide new solutions for industrial automation and robotics, and helps promote further development in related fields.en
dc.description.provenanceSubmitted by admin ntu (admin@lib.ntu.edu.tw) on 2024-08-15T16:36:45Z
No. of bitstreams: 0
en
dc.description.provenanceMade available in DSpace on 2024-08-15T16:36:45Z (GMT). No. of bitstreams: 0en
dc.description.tableofcontents口試委員會審定書 i
致謝 ii
摘要 iii
ABSTRACT iv
CONTENTS vii
LIST OF FIGURES xi
LIST OF TABLES xiii
Denotation xv
Chapter 1 Introduction 1
1.1 Motivation 1
1.2 Problem Formulation 4
1.3 Contribution 7
1.4 Organization of the Thesis 8
Chapter 2 Background and Literature Survey 9
2.1 Background of Real-time System 9
2.1.1 Concept and Common Types of Real-time Scheduling 10
2.1.2 Utilization and Common Types of Real-time Operating System 14
2.2 Background of Communication Protocol: EtherCAT 17
2.2.1 Functional Principle of EtherCAT 18
2.2.2 Synchronization Mechanism: Distributed Clock 19
2.2.3 Format of EtherCAT Protocol 20
2.2.4 EtherCAT State Machine 21
2.3 Background of Controller: SoftPLC 23
2.3.1 Motion Control Library: PLCopen Motion Control 24
2.4 Literature Survey 25
2.4.1 Application of Semaphore in Scheduling 25
2.4.2 Evolution and Comparison of Communication Protocol 26
2.4.3 Robotics with Real-time System 28
Chapter 3 System Overview 31
3.1 System Architecture 31
3.2 System Model 33
3.2.1 Real-time System Model 33
3.2.2 EtherCAT Model 34
Chapter 4 Semaphore-Based Real-time Scheduling 37
4.1 Delay Effect on Multiple Devices System 37
4.1.1 System Design 37
4.1.2 Multiple Tasks in the Drive for Scheduling 38
4.1.3 Drive-Local Delay for Host Command 39
4.2 System Loop and Discretization 41
4.3 Details of the Scheduling Method 44
Chapter 5 Software and Hardware Platform 49
5.1 Overall of the Environment 49
5.2 Hardware Platform 50
5.2.1 EtherCAT Motors and Drivers 50
5.2.2 Industrial Cpmputer 51
5.3 Software Platform 52
5.3.1 Platform: Intel Edge Controls for Industrial 52
5.3.2 Motion Controller: OpenPLC 53
5.3.3 Monitoring Application 58
Chapter 6 Results and Analysis of Experiment and Simulation 67
6.1 Single Axis Situation with the Real-time Motion Control System 67
6.1.1 Experiment Setup 67
6.1.2 Experiment Results and Analysis 68
6.2 Multiple Axes Situation with the Real-time Motion Control System 76
6.2.1 Experiment Setup 76
6.2.2 Experiment Results and Analysis 76
6.3 Simulation of Semaphore-based Real-time Scheduling 80
6.3.1 Simulation Setup 80
6.3.2 Simulation Results and Analysis 80
Chapter 7 Conclusion and Future Work 83
7.1 Conclusion 83
7.2 Future Works 84
References 85
-
dc.language.isoen-
dc.subject即時排程zh_TW
dc.subject即時控制系統zh_TW
dc.subject信號量zh_TW
dc.subjectPID 控制zh_TW
dc.subject軟硬體整合zh_TW
dc.subjectEtherCATzh_TW
dc.subjectPID controlen
dc.subjectSoftware and hardware integrationen
dc.subjectSemaphoreen
dc.subjectReal-time schedulingen
dc.subjectReal-time systemen
dc.subjectEtherCATen
dc.title藉由乙太網控制自動化技術的即時運動控制與基於信號量的即時排程zh_TW
dc.titleReal-time Motion Control through EtherCAT and Semaphore-based Real-time Schedulingen
dc.typeThesis-
dc.date.schoolyear112-2-
dc.description.degree碩士-
dc.contributor.oralexamcommittee李後燦;黃正民;江明理zh_TW
dc.contributor.oralexamcommitteeHou-Tsan Lee;Cheng-Ming Huang;Ming-Li Chiangen
dc.subject.keywordEtherCAT,即時控制系統,即時排程,信號量,PID 控制,軟硬體整合,zh_TW
dc.subject.keywordEtherCAT,Real-time system,Real-time scheduling,Semaphore,PID control,Software and hardware integration,en
dc.relation.page92-
dc.identifier.doi10.6342/NTU202403297-
dc.rights.note同意授權(全球公開)-
dc.date.accepted2024-08-09-
dc.contributor.author-college電機資訊學院-
dc.contributor.author-dept電機工程學系-
顯示於系所單位:電機工程學系

文件中的檔案:
檔案 大小格式 
ntu-112-2.pdf6.29 MBAdobe PDF檢視/開啟
顯示文件簡單紀錄


系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved