OpenPLC includes EtherCAT:

This section provides the installation method of OpenPLC along with EtherCAT(based on IGH), but the operation and effect of EtherCAT are not verified. Most of steps refer to: https://github.com/r2k-in-the-vortex/ethercat_src