Why Can’t I Switch My EtherCAT Chassis' I/O Scan Mode from Configuration Mode to Active Mode?
Primary Software: Driver Software>>NI-Industrial Communications for EtherCAT
Primary Software Version: 1.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Modules>>LabVIEW FPGA Module
I have an EtherCAT System I am trying to switch between Configuration Mode to Active Mode in the LabVIEW Project Explorer Window. When doing this, LabVIEW returns a message saying:
An error occurred while attempting to switch the I/O scan mode. The distributed clock could not be enabled because the master could not read the network topology. This could be caused by the slave device having an improper connection to the network (See Figure 1).
When I attempt to change the EtherCAT mode programmatically in LabVIEW using code similar to the snippet in Figure 2, I get the LabVIEW error -2147138509 seen in Figure 3.
Why am I getting these errors and how can I successfully switch my EtherCAT Chassis form Configuration Mode to Active Mode?
This error is typically seen when multiple EtherCAT Chassis are daisy chained. When setting up these systems, you will need to connect the Ethernet port labeled “Out” on one slave to the Ethernet port labeled “In” on the next slave for it to work correctly. LabVIEW will display this error if these ports are wired incorrectly. Therefore, in order to successfully switch modes of your EtherCAT system, ensure your chassis are properly connected together.
Note: This error can also be seen when the firewall settings on the computer interfere with communication to the EtherCAT slaves. If you have checked that the ports are connected as outlined above and are still seeing the error, try turning off all firewalls on the computer and connect again.
White Paper: Setting Up EtherCAT on NI Programmable Automation Controllers
Report Date: 05/09/2011
Last Updated: 09/29/2017
Document ID: 5L8849SK