Unable to scan slots with local mode in TwinCAT

760 Views Asked by At

I'm currently facing an issue with slot scanning on my PC using TwinCAT. Here's the setup:

  • I have a CX2030 PLC with several slots for Beckhoff modules.
  • I have another PC connected to one of the CX2030's ports through an RJ45 connection.
  • I have set the TwinCAT runtime to local mode as the target system(on my PC).

The problem is that when I try to scan the slots in TwinCAT, it shows no slots detected. However, I can see all the slots when I change the connection by connect through the RJ45 port of an EK1100 module.

I have ensured that my network card supports EtherCAT requirements, and I can see and activate it in the "Show Realtime EtherCAT Compatible Devices" option.

I'm wondering if there's any additional configuration or setup required to enable slot scanning in local mode or on the CX2030. Is there a specific setting or parameter that I might be missing? Any insights or suggestions would be greatly appreciated.

1

There are 1 best solutions below

6
Jakob On

You have to be connected to the remote target (the PLC) when you scan your devices. When your running in local mode as you're doing now the XAE will try to scan all the devices/EtherCAT masters that are installed on your local computer which is not what you want. Do this:

  1. Create an AMS-route to the PLC (CX2030)
  2. Put it into config mode
  3. Scan I/O

If it doesn't work, make sure that the realtime driver for the NIC that you want your EtherCAT master to run from is installed. If you have your modules installed to the right of the PLC (the E-bus), this should normally have been done. If you use a EK1100 or alike, make sure the NIC that the EK1100 is connected to has the realtime driver installed.