Effacer les filtres
Effacer les filtres

Simulink Real-Time non-Speedgoat Machine EtherCAT PCIbus selection

10 vues (au cours des 30 derniers jours)
TaeHo Yun
TaeHo Yun le 15 Sep 2022
Réponse apportée : Stefano le 18 Juil 2023
Hi, i'm trying to control a motor through EtherCAT communication.
I'm using Matlab2020a and I think I successfully setup my target PC(IMB-155b motherboard) which is non-speedgoat machine (as it passed slrttest)
But the problem is that it cannot find the ethernet controller for etherCAT communication.
Using getPCIInfo, I checked the list of ethernet controllers, and results are as follows:
>> tg.getPCIInfo('ethernet')
List of installed PCI devices:
Realtek RTL8168B
Bus 2, Slot 0, Function 0, IRQ 3
Ethernet controller
VendorID 0x10ec, DeviceID 0x8168, SubVendorID 0x1849, SubDeviceID 0x8168
Released in: R2011b
Notes: Realtek Gigabit Ethernet series
Realtek RTL8168B
Bus 3, Slot 0, Function 0, IRQ 16
Ethernet controller
VendorID 0x10ec, DeviceID 0x8168, SubVendorID 0x1849, SubDeviceID 0x8168
Released in: R2011b
Notes: Realtek Gigabit Ethernet series
The second ethernet controller(3,0,0) is used for host-target communication.
I want to use the first ethernetcontroller(2,0,0) for etherCAT communication, so I set my etherCAT init block like below and built simple block diagram.
But it gives error message:
Execution started (sample time: 0.010000)
Error: No valid Ethernet board found at bus 2 slot 0 function 0
Error: Execution cannot be started
Initializing application...
Error: EtherCAT Init: Ethernet port at [2,0,0] in use by raw Ethernet.
Error: Execution cannot be started
Since I'm new to using simulink real-time, I must be missing something.
Can I get help?
Thanks.
  4 commentaires
TaeHo Yun
TaeHo Yun le 24 Nov 2022
Modifié(e) : TaeHo Yun le 24 Nov 2022
For my case, the ethernet chipset's compatibility was the problem as Gobiha explained below.
Your target PC should contain appropriate EtherCAT compatible chip set.
You can check the EtherCAT compatible ethernet chip set lists from below link
Su Zhiyi
Su Zhiyi le 24 Nov 2022
thanks, I will check it out!

Connectez-vous pour commenter.

Réponse acceptée

Gobiha Duraisamy
Gobiha Duraisamy le 18 Oct 2022
Starting from R2018a, Simulink Real-Time only supports Speedgoat target machines. Besides Realtek Ethernet series are not supported for EtherCAT communication even prior to R2017b. Refer to the following documentation to see the list of compatible Ethernet chip with EtherCAT:

Plus de réponses (1)

Stefano
Stefano le 18 Juil 2023
Hi,
you might have two main problems:
  • Downgrade your Matlab to R2017b
  • EtherCAT is only compatible with Intel chipsets. You have two NIC with Realtek chipsets. Try to install some Intel I8254X chips.

Community Treasure Hunt

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

Start Hunting!

Translated by