New experimental ethercat layer

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
11 Nov 2026 05:15 #350600 by Hakan
New experimental ethercat layer was created by Hakan
I am working on a new, experimental EtherCAT layer for LinuxCNC.

You might be interested in the tool ecatsetup even if you don’t want to commit to this idea just yet.
ecatsetup is a tool to commission EtherCAT slaves/drives, test-drive, connect in hal and more.
It doesn't generate a XML file and never will. But you can find the necessary info you need in the tool.
Start here github.com/MetalMusings/ecat, find Getting started and try it.

The complete kit includes
- user space EtherCAT master, derived from IgH master 1.6.8
- the ecat.so hal module (replaces lcec), between linuxcnc and the ethercat master, and between ecatsetup and the ethercat master.
- ecatsetup graphical tool for commissioning of EtherCAT drives, test drive, troubleshoot, connect to hal pins, monitor and record EtherCAT master and slave behavior of a running LinuxCNC machine..

It completely replaces the current EtherCAT kernel master and lcec and tools.
Slave support builds on support of profiles, currently CiA402, mdp and generic. Deviations and specials are handled via "quirks".
CiA402 has support for csp, csv, pp, pv and hm. One only or shift between two or more. All homing methods,  35 and 36 are tested and the other methods await testing..
A new markup-file is used to communicate settings between ecat and ecatsetup. You are not supposed to read the file; you are not supposed to write it either. ecatsetup reads and writes it. ecat reads and uses it. There is a one-time conversion possible from existing XML files. Writing XML will never be supported.

You can use ecatsetup on any LinuxCNC version, that's the intention.
ecat and user space EtherCAT master is built using 2.9.4 and you will need that. Support for LinuxCNC 2.10 is planned and will happen sooner with shown interest.

For more info (and there is a lot!), visit github.com/MetalMusings/ecat
 

 
The following user(s) said Thank You: grandixximo, tommylight, besriworld, COFHAL, Unlogic, Kittifix, miniwini, NWE, dberegovoy

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
13 Nov 2026 05:41 #350667 by Hakan
Replied by Hakan on topic New experimental ethercat layer
I've made a new release after working through all steps to bring a
config from linuxcnc simulator into operation with EtherCAT drives,
IO and encoder. I run it myself on a plasma cutter and a lathe.

I could try to write how great is is, but just try for yourself.
github.com/MetalMusings/ecat for releases, now only 2.10.
Unfortunately you may to build it yourself since there is no released 2.10 to rely on.
I can back-port it to 2.9 and make a deb package if more than one person wants it

Development has been at the speed of light,but it's slowing down now.
The tools feel somewhat useful so development will be more on my own usage, try use cases.


 
The following user(s) said Thank You: grandixximo, besriworld, Kittifix

Please Log in or Create an account to join the conversation.

More
13 Nov 2026 06:49 #350670 by Kittifix
Replied by Kittifix on topic New experimental ethercat layer
Thank you for your work, it's fun to experiment with it! I'm playing around with a mini milling machine. All I need now is a VFD for EtherCAT, as the EL6021 doesn't seem to be supported yet. I'll try that out when the function with the ESI files is implemented. But I have one more question: is there a way to output it inverted, except via " not.N "?

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
13 Nov 2026 09:10 #350672 by Hakan
Replied by Hakan on topic New experimental ethercat layer
So EL6021 is a ... how does that work? serial over EtherCAT or what?
No that's not supported now. It can be, biggest hinder is I don't have one to test with.
This one is so different that tests are needed. There must be direct support in ecat.so for terminal access.
A bit the same as with EoE devices, there is a clear way how to support that. But need a device to test with.

Actually ESI files are supported. 
Get all ESI files downloaded from Beckhoff foor example, point to the directory (see at bottom of this figure) and rescan the bus.
 

not.N is there, to the right.The Invert
 

Maybe not general enough. Maybe one should add a type not-bool as an invers to boolean. Ideas?


 
Attachments:
The following user(s) said Thank You: Kittifix

Please Log in or Create an account to join the conversation.

More
13 Nov 2026 11:32 #350677 by Kittifix
Replied by Kittifix on topic New experimental ethercat layer
AAAHHH, the inverter was hidden. Then I enlarged the window, and suddenly the button appeared on the right.

I can't open the ESI files, everything is light gray and they can't be selected. chmod didn't change anything about this. 

The control of the VFD via the EL6021 with Modbus is no longer important to me. I got an Omron MX2 with Ethercat at a low price on Ebay. It's also much easier to address all components via Ethercat.



 
Attachments:

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
13 Nov 2026 11:50 #350678 by Hakan
Replied by Hakan on topic New experimental ethercat layer
Pick the folder, go one level up. It reads everything in there and selects the right one based on vid and pid.
I guess you wanted to select a specific one.
 

Pity there with the EL6021. I came up with a way to get access to devices without shipping them.
 
Attachments:

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
13 Nov 2026 13:27 #350681 by Hakan
Replied by Hakan on topic New experimental ethercat layer
Added functionality to convert an existing lcec/ethercat-conf.xml config to ecat.
This was the missing link. It worked really good for me.

Old and new pin names were recognized and proposed, after looking through the list of affected pin names I pressed one button or maybe two and the config was updated to 2.10 run-in-place and ecat with userspace ethercat master. It started and ran fine, too.
On the way it found the old cia402 component, eliminated it for its' built-in cia402 function.

NOW it's worthwhile testing for those on 2.10.
The following user(s) said Thank You: grandixximo, tommylight, besriworld, Unlogic, NWE

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
14 Nov 2026 03:40 - 14 Nov 2026 03:58 #350687 by Hakan
Replied by Hakan on topic New experimental ethercat layer
New release

- Slaves' DC settings are taken from ESI and SII and made as choices in the gui.
- Data capture of behavior incl network traffic for off-line trouble-shooting of slaves that won't go OP or misbehaves
- Better handling of messages from the master for troubleshooting
 

Capture option to the right
 
Attachments:
Last edit: 14 Nov 2026 03:58 by Hakan. Reason: Added screenshots
The following user(s) said Thank You: grandixximo, tommylight, besriworld, Unlogic

Please Log in or Create an account to join the conversation.

More
14 Nov 2026 06:18 #350689 by grandixximo
Replied by grandixximo on topic New experimental ethercat layer
Thank you for working on this, looks great on the pictures, I will have to find time to test it out, one question, does it have dark mode?

Please Log in or Create an account to join the conversation.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
14 Nov 2026 07:38 #350692 by Hakan
Replied by Hakan on topic New experimental ethercat layer
It has now, File->Appearance, saved between sessions.
Looking forward to feedback.

I didn't make a release for the dark mode change. Get it with git.

 
Attachments:
The following user(s) said Thank You: tommylight, besriworld

Please Log in or Create an account to join the conversation.

Time to create page: 2.482 seconds
Powered by Kunena Forum