Initialization error with two etherCAT networks on xPC Target (R2013a)

4 views (last 30 days)
I can't initialize two ethercat networks on the same xpc target PC.
Executing the command getxpcpci('all') I receive the following:
List of installed PCI devices:
Intel *** Bus 0, Slot 0, IRQ 0 Host Bridge VendorID 0x8086, DeviceID 0x3580, SubVendorID 0x0000, SubDeviceID 0x0000
Intel *** Bus 0, Slot 2, IRQ 7 VGA Controller VendorID 0x8086, DeviceID 0x3582, SubVendorID 0x8086, SubDeviceID 0x3582
Intel *** Bus 0, Slot 29, IRQ 7 Serial Bus Contoller VendorID 0x8086, DeviceID 0x24c2, SubVendorID 0x8086, SubDeviceID 0x24c0
Intel *** Bus 0, Slot 30, IRQ 0 PCI-to-PCI Bridge VendorID 0x8086, DeviceID 0x244e, SubVendorID 0x0000, SubDeviceID 0x0000
Intel *** Bus 0, Slot 31, IRQ 0 ISA Bridge VendorID 0x8086, DeviceID 0x24c0, SubVendorID 0x0000, SubDeviceID 0x0000
*** *** Bus 1, Slot 0, IRQ 255 PCI-to-PCI Bridge VendorID 0x3388, DeviceID 0x0021, SubVendorID 0x0000, SubDeviceID 0x0000
*** *** Bus 1, Slot 6, IRQ 0 ISA Bridge VendorID 0x1283, DeviceID 0x8888, SubVendorID 0x0000, SubDeviceID 0x0000
Intel *** Bus 1, Slot 8, IRQ 7 Ethernet Controller VendorID 0x8086, DeviceID 0x103e, SubVendorID 0x8086, SubDeviceID 0x0000
Intel *** Bus 2, Slot 0, IRQ 7 Ethernet Controller VendorID 0x8086, DeviceID 0x1209, SubVendorID 0x0000, SubDeviceID 0x0000
Intel *** Bus 2, Slot 1, IRQ 7 Ethernet Controller VendorID 0x8086, DeviceID 0x1209, SubVendorID 0x0000, SubDeviceID 0x0000
I am using the Ethernet Controller with DeviceID 0x103e for connecting with the target PC and I am trying to use the other two Ethernet Controller with DeviceID 0x1209 for communicating with two different ethercat networks.
If I execute on the target PC a model with only one ethercat network installed (i.e. with only the block xpcethercatinit with device index = 0, PCI bus = 2 and PCI slot = 0), the communication works fine. This happens also with the second network (i.e. with only the block xpcethercatinit with device index = 0, PCI bus = 2 and PCI slot = 1). If I try to execute a model with both the ethercat networks installed (i.e. with two blocks xpcethercatinit, with two different device index (0 and 1)), the model does not start and I receive the following message on the target screen:
Called configuration, status is 2551250955
By changing the file xpcethercatinit.tlc, I found that the first device (PCI bus = 2 and PCI slot = 0) is correctly initialized (the xpcEtherCATinitialize function return the value 0x00000000). For the second device, the system found the device but the xpcEtherCATinitialize function prints the above message and returns the value 0xFFFFFFFF.
Thank you in advance for your help Best regards Simone Marcheschi
  1 Comment
Suneesh
Suneesh on 13 Mar 2014
The error message indicates one of the internal functions being called with an incorrect argument. This calls for further debugging of the model and the generated code. Please create a help request using one of the following methods:
The following would be required for troubleshooting:
  1. The model that you are using
  2. The config XML file required by the model
  3. The generated code to verify that MathWorks is able to reproduce the issue. This is available in a folder whose name starts with the model name and is appended with "_xpc_rtw". Please ZIP this folder and provide it.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!