Skip to content

Userspace EtherCAT master for LinuxCNC uspace-v1.5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 16 Nov 18:21
· 0 commits to main since this release

Packages of the userspace EtherCAT master for LinuxCNC's ecat component: debian12 for Debian 12 (bookworm), debian13 for Debian 13 (trixie). Since 1.1 without lcec_uspace (frozen; keep uspace-v1.0 from MetalMusings/linuxcnc-ethercat for it). See packaging/linuxcnc/README.md.

Install: sudo apt install ./linuxcnc-ethercat-uspace_*_amd64.deb (the file for your Debian).

New in 1.5

A DC reference clock the application selects counts at once. ecrt_master_select_reference_clock() only stored the choice; the master found the reference clock again only after the next bus scan. An application selects it after creating its slave configurations, which is mostly after the scan, so the choice changed nothing: the first DC-capable slave on the bus stayed the clock, and, as the reference clock always is, was requested to OP whether the application configured it or not. An unconfigured drive refuses that (AL 0x001E, the slave in PREOP + ERROR, two ERROR lines in the log). Now the selection finds the clock and the transmission delays at once when the slaves are scanned and the master is not active; activation writes the offsets and delays again.

ecat 0.21 uses it to follow ETG.1020 (Protocol Enhancements, 21.1): "the first device that should be synchronized is used as the reference clock", i.e. the first slave of its configuration with DC, never a slave it leaves unused. New test: tests/test_sim_dc_ref_select.c.

Tried on a bus with three ECT60 drives (unused), an EaserCAT 7000 and an EaserCAT 3000 with DC: the master now uses slave 4 as the reference clock, slaves 0-3 stay in PREOP without an error, SYNC0 shift and two cycles of turn-around as before.

Works with ecat 0.21 (LinuxCNC 2.10), which needs it for the reference clock; ecat 0.12 to 0.20 and 0.11 (LinuxCNC 2.9) also run on it (they do not select a reference clock, so nothing changes for them).