Simulink Real-Time non-Speedgoat Machine EtherCAT PCIbus selection
Show older comments
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 Comments
Dimitri MANKOV
on 15 Sep 2022
Hi TaeHo,
In my exprience, this often points to an issue in the ENI file used by your driver blocks. I would suggest reaching out to the MathWorks support to sort this out.
Best,
Dimitri
Su Zhiyi
on 22 Nov 2022
Hello, I have the same error as yours.
have you solved it? could you help me?
Su Zhiyi
on 24 Nov 2022
thanks, I will check it out!
Accepted Answer
More Answers (1)
Stefano
on 18 Jul 2023
0 votes
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.
Categories
Find more on EtherCAT Protocol Blocks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!