Dagear (Customer) asked a question.

EtherCat Connection Status

I have a project working based on the LS example programs. Basically toggle bits to connect ethercat drives then servo on.

 

I would like to have the PLC perform this action on powerup, saving the operator the task of having to click buttons. I would like to look at a status bit that tells me if a particular ethercat axis is connected


  • ADC_LSElectricPLC_PE (AutomationDirect)

    There is a global variable that can be used to tell the status of the link on the XBF-PN0xB modules. It is called _00x_LINKUP_INFO. It is true when a network cable is plugged in to the EtherCAT module and SubDevices are active on the network. Let me know if you are using the XMC instead. There is a similar variable for it.

     

    Screenshot 2026-08-13 133444image

    Expand Post
    • Dagear (Customer)

      from my testing that bit is only detects the physical state of the network media,as I can issue a XPM_ECON and XPM_DCON without this bit changing state.
  • ADC_LSElectricPLC_PE (AutomationDirect)

    You can try creating an initialization task. This task can call XPM_ECON to connect the EtherCAT network on CPU boot up. You will have to store the status just in case an error occurs and it needs to be done manually.

    • Dagear (Customer)

      Agreed, I will just make the connection in Init. And provide the operator a feedback status.