Is it possible to add EtherCAT Master to Raspberry Pi Simulink Support Package?

5 ビュー (過去 30 日間)
Artyom
Artyom 2018 年 3 月 6 日
回答済み: Ivo Houtzager 2020 年 7 月 7 日
EtherCAT is a simple way to extend I/O capabilities of Raspberry Pi. Is it possible to add EtherCAT master block to Raspberry Pi Simulink Support package? E.g. in order to give ability for user models to interact with external world using EtherCAT when running on Raspberry PI.
Or is there a way to add this support manually?
  2 件のコメント
Stefano Dalla Gasperina
Stefano Dalla Gasperina 2018 年 12 月 12 日
I believe that built-in NIC of Raspberry Pi is not suitable for Real-Time EtherCAT simulation.
You had better install a SPI-to-EtherCAT shield.
Artyom
Artyom 2020 年 2 月 3 日
Hi Stefano,
NIC of RPi is fully suitable for EtherCAT, as other kernels can use it for EtherCAT already.
For Example please take a look at Codesys RPi Runtime Kernel - it supports Ethercat using standard RPI's NIC.

サインインしてコメントする。

回答 (1 件)

Ivo Houtzager
Ivo Houtzager 2020 年 7 月 7 日
See example on the File Exchange Simple EtherCAT Master Block SFunction for Raspberry Pi which shows basic usage of the Simple Open EtherCAT Master (SOEM) library to create a Simple EtherCAT Slave Driver Block SFunction for Raspberry Pi.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by