Skip to content

ecat ecat-v0.17

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Nov 12:02
· 131 commits to main since this release

ecat for LinuxCNC 2.10. There are no 2.10 packages for Debian yet, so the main way to install is for a run-in-place LinuxCNC; there is a package too.

Update from 0.12-0.16 if your computer has no LinuxCNC 2.9 installed: ecat.so of those versions loads only where LinuxCNC 2.9's /usr/lib/liblinuxcnchal.so.0 exists. Without it, loadrt ecat stops with dlopen: liblinuxcnchal.so.0: cannot open shared object file. 0.17 fixes this.

Install

First the userspace master, linuxcnc-ethercat-uspace 1.1 or newer (1.2 recommended) from MetalMusings/ethercat: sudo apt install ./linuxcnc-ethercat-uspace_*_amd64.deb.

  • Run-in-place LinuxCNC: unpack ecat-rip-0.17-debian13.tar.gz (or -debian12) and run ./install. It puts ecat.so in your tree's rtlib and ecatsetup in ~/.local/bin; ./install --uninstall takes it away. ecat.so is built against one LinuxCNC, commit b0e7b191b9 (2.10.0~pre2-436): the installer compares your tree's HAL headers with that build's and refuses on any difference (a different HAL API could crash a machine), and then says how to build ecat for your LinuxCNC from source.
  • LinuxCNC 2.10 package: linuxcnc-ecat_*.deb (debian12, debian13).

LinuxCNC 2.9 users take ecat-v0.11. The window, ecatsetup --gui, needs python3-pyqt5. To try ecat without disturbing your setup: getting started. See the README.

What is new in 0.17

The component

  • ecat.so is no longer linked to liblinuxcnchal. That link, kept from lcec_uspace, pointed at the build machine's LinuxCNC tree, so ecat.so loaded only where LinuxCNC 2.9 was installed too. It now takes HAL and RTAPI from hal_lib.so and rtapi_app, as LinuxCNC's own modules do. Nothing else in the component changed.

EtherCAT Setup

  • PDO assignment (a slave's Operation and sync card) shows the ESI file's predefined assignment the configuration uses, such as Standard 32 Bit (MDP 511) on an EL5101. Before, it always showed the default. Choosing another one proposes the slave again with it, after asking. The PDO and Sync boxes no longer take the width of their longest ESI name, which could push Propose again off a small screen.
  • Inputs and outputs (HAL & LinuxCNC page): a pin that your HAL files connect, by hand or through the From lcec card, shows its signal and the other pins in grey, with file and line in the tooltip. Before, it looked unconnected. A pin chosen on From lcec is shown the same way before Apply writes it.

Tried: on turner (EK1100, EL1008, EL2008, EL5101, two ECT60; LinuxCNC 2.10 run-in-place, 2.9 removed), the machine's own lcec configuration was moved to ecat with From lcec and starts in LinuxCNC with the new ecat.so. Not tried yet on LinuxCNC 2.10: the spindle encoder with the spindle running, cutting with the arc, PV, zero-at-start, opmode-cmd, sync0-shift-ns: auto while moving, modular devices, analog terminals, the EL7041, drives with several axes.