Troubleshooting

This chapter details some common issues that can cause the user trouble when using TwinCAT or the examples.

Problem: “EtherCAT network fails to initialize when running TwinCAT” (This can include: “Reload Devices” fails, “Scan” for devices fails, “Restart EtherCAT in config mode” fails) Solutions:

  • Power-cycle the launchpad

  • Confirm that the EtherCAT example is loaded and running

  • Verify that a realtime Ethernet adapter is installed

    1. In Visual Studio, select the TwinCAT menu from the main toolbar and select Show Realtime Ethernet Compatible Devices

    2. In the popup window, under Installed and ready to use devices(realtime capable) category, if no connections are shown, select one from the list of Compatible devices and click Install.

    3. Verify Link Status pin configuration and hardware states: Check that your Link Status pins are configured correctly in the code. When everything is configured properly, you can observe real-time changes in the GPIO data input (DIN) register window by plugging and unplugging the Ethernet cable. For example, when the Ethernet cable is connected to Port 0 (ESC_PHY0_LINKSTATUS on PC8), the register DI08 displays 0 - ZERO, if the cable is not connected to Port 1 (ESC_PHY1_LINKSTATUS on PC9), the register DI09 displays 1 - ONE due to the inverted logic (DL_GPIO_INVERSION_ENABLE) applied to the pins.

../../../../_images/linkstatus.jpg

/Register view when ethernet cable is connected to Port 0 and not connected to Port 1.

Problem: “The EEPROM and SubordinateDevice stack examples are loaded but device won’t go to OP mode” Solutions:

  • Restart TwinCAT in config mode

../../../../_images/twincat_restart.jpg

/TwinCAT Restart in Config Mode Button

  • Power-cycle the launchpad, restart TwinCAT, and re-scan