EtherCAT syntax

More
09 Dec 2019 19:40 #152389 by Nico2017
EtherCAT syntax was created by Nico2017
Hi all,
I was wondering if there was any kind of documentation for the structure of the config .xml file for the linuxcnc-ethercat drive.

More precisely I was wondering if it was possible to use names for each etherCAT slaves and not slave IDx in the hal pin identification. I reckon this would be a more flexible topology for the lcec pins naming, especially when you have to swap, replace, or remove an EtherCAT card during your project.

For instance instead of having lcec.0.10.in-0, you would have lcec.0.DIcardname.in-0. I reckon this would be more flexible instead of renumbering all the pins number in your code if one of the slaves before the slave index 10 is removed for instance.

Thank you,
Nicolas

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

More
09 Dec 2019 22:04 - 09 Dec 2019 22:10 #152397 by Nico2017
Replied by Nico2017 on topic EtherCAT syntax
Hi all,
I just find out that the name synatx was doing what I have been looking for.
Following the example in github.com/sittner/linuxcnc-ethercat/pull/27
gives you the way of doing it.
It also works with the name of the master:
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="4" name="MasterJedi">
Thank you,
Nicolas
Last edit: 09 Dec 2019 22:10 by Nico2017.
The following user(s) said Thank You: Stormholt

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

Time to create page: 0.143 seconds
Powered by Kunena Forum