
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
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.
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.