{"title":"The DLR EtherCAT Library - A template based code-generation scheme for accessing real-time hardware from Modelica","authors":"Tobias Bellmann, Fabian Buse","doi":"10.3384/ECP18148130","DOIUrl":null,"url":null,"abstract":"In this paper, a new concept to access real-time hardware from within Modelica via the EtherCAT bus is introduced and the implementation of a prototype library is \ndemonstrated. The DLR EtherCAT library uses the open \nsource EtherCAT library EtherLab to gather information \nabout the connected bus slaves. Thereupon, the slave information is used in a code generation process to build \nnative Modelica blocks providing the interfaces to their \nhardware counterparts. These blocks subsequently can be \nused to build real-time models, running on a Linux based \nreal-time system and therefore controlling the hardware \ndirectly from the model. The application of the library \nis shown in a robotic testbed where a motor drive is controlled via EtherCAT","PeriodicalId":378465,"journal":{"name":"Proceedings of the 2nd Japanese Modelica Conference Tokyo, Japan, May 17-18, 2018","volume":"24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-02-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2nd Japanese Modelica Conference Tokyo, Japan, May 17-18, 2018","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3384/ECP18148130","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
In this paper, a new concept to access real-time hardware from within Modelica via the EtherCAT bus is introduced and the implementation of a prototype library is
demonstrated. The DLR EtherCAT library uses the open
source EtherCAT library EtherLab to gather information
about the connected bus slaves. Thereupon, the slave information is used in a code generation process to build
native Modelica blocks providing the interfaces to their
hardware counterparts. These blocks subsequently can be
used to build real-time models, running on a Linux based
real-time system and therefore controlling the hardware
directly from the model. The application of the library
is shown in a robotic testbed where a motor drive is controlled via EtherCAT