05-18-2018 02:17 AM
Also another hint.
On fresh reboot of the devices (power-off/power-on), checking the device state on both EtherCATs there is an error on both:
On the first device:
Error -2147138442 occurred at an unidentified location
Possible reason(s):
The module cannot be found. If the physical module exists, and the device is in FPGA mode, recompiling and downloading may fix this problem.
On the second device:
Error -2147138467 occurred at an unidentified location
Possible reason(s):
An SDO request sent by the master has been aborted by the slave device.
Incorrect initial commands and incorrect PDO selections may cause this error. Check the configuration of the slave device on the device's property page.
P.S
I have also recompliled and download the FPGA code successfully a couple of times.
05-18-2018 07:59 PM
I guess you can also check for two more pieces of information to understand what can be happening:
The first one is fetching the cRIO-9074's XML for the EtherCAT network you have, and see if you detect inconsistencies, or errors there. Use FTP or SFTP to browse to the following path on your 9074: /ni-rt/config
The second is to do a Wireshark to the network and check the EtherCAT errors: Using Wireshark to Capture EtherCAT Network Packets
All the best!
05-21-2018 02:12 AM
I am attaching the XML files. I do not know what I am supposed to check, though. I will proceed with wireshark and post the results here.
P.S On Friday I formatted the controller and reinstalled software with no results.
05-21-2018 03:34 AM
According wireshark packet capturing: I currently have an unmanaged switch, since this is not going to work (the packets should be broadcasted on all ports, right?) I will try tomorrow using a hub.
My current network configuration is as follows:
Switch port 1: LAN / Internet
Switch port 2: Host PC
Switch Port 3: EtherCAT master (cRIO9074 port1)
EtherCAT slaves 0-1 daisy chained with master through master's port2.
Oscar, is it mandatory to change my topology according the link you posted? I think yes but just confirming
05-22-2018 01:27 AM - edited 05-22-2018 01:42 AM
I captured some packets using Wireshark according the above Oscar's link.
I connect to cRio from the host PC and I can clearly see the packets transferring between HOST and controller without errors.There are no ECAT packets though.Also both devices seem to transmit ECAT packets with no problem
I inspect the packets while browsing the configuration of each EtherCAT also while I run the project VIs as usual.
05-22-2018 02:46 AM - edited 05-22-2018 02:47 AM
Hi Oscar.
First of all I would like to thank you for your support so far. I am glad, thank you!
I have attached a Wireshark log.
This log was created while restarting the devices, connecting to cRIO, trying to switch to active mode (unsuccessfuly) and finally running the controller and host program. Hope it helps.