From experience, very few issues are related to the EtherCAT hardware itself. Mostly the cabling or the actual motor/encoder hardware is to blame.
Even more likely is human error, such as:
Before anything is restarted or power cycled, check the status of the system.
A simple way to get an overview of the entire ecmc system is to start the ecmcMain.ui panel. This panel contains, or links to, almost the entire ecmc IOC:
caqtdm -macro "IOC=<iocname>" ecmcMain.ui
Remember, red
is not necessarily a bad sign!
It can also indicate that certain channels are not connected.
Whether those channels should be connected is beyond the scope of this guide.
Next step is to diagnose from a dedicated shell, or from within the iocsh
.
If all slaves are in ‘OP’ state, at least data is exchanged between the hardware and the master.
Blindly restarting the IOC, with only partially working EtherCAT hardware, WILL RESULT IN TOTAL FAILURE OF THE IOC!!!
Check the hardware BEFORE restarting the IOC!