Config 2 ethercat ports?

More
08 Dec 2025 04:41 #339847 by heaven
Config 2 ethercat ports? was created by heaven
My PC has two Ethernet ports. I want to use port 1 to connect to devices A, B, and C, and port 2 to connect to devices D, E, and F because they are in separate locations. Is it possible to configure two EtherCAT ports?

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

More
08 Dec 2025 04:49 - 08 Dec 2025 05:06 #339848 by jc2ktr
Replied by jc2ktr on topic Config 2 ethercat ports?
Yes, you add a second master in your /etc/ethercat.conf
There is already a line:

# The MASTER<X>_DEVICE variables also determine, how many masters will be
# created: A non-empty variable MASTER0_DEVICE will create one master, adding a
# non-empty variable MASTER1_DEVICE will create a second master, and so on.
#
MASTER0_DEVICE="eno0"
MASTER1_DEVICE="eno1 or mac adress" 

Then you can add a second master in your ethercat-conf.xml

<master idx="1" appTimePeriod="1000000" refClockSyncCycles="5">

And that's it.

I had testet it with 2 Nic's not long ago

It's working fine.

Greetings Sven
Last edit: 08 Dec 2025 05:06 by jc2ktr. Reason: Fixed typos
The following user(s) said Thank You: endian, Rookie0, heaven

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

More
08 Dec 2025 05:39 #339849 by endian
Replied by endian on topic Config 2 ethercat ports?
and then how will you specify the .hal file for separate masters? 

there will be more lcec. instances? 

do anybody have working config?

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

More
08 Dec 2025 06:49 #339851 by jc2ktr
Replied by jc2ktr on topic Config 2 ethercat ports?
You get after start another lcec.1. instances with your pins.

I can provide a config later this day.

Greets sven
The following user(s) said Thank You: endian, heaven

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

More
08 Dec 2025 11:16 - 08 Dec 2025 11:18 #339858 by jc2ktr
Replied by jc2ktr on topic Config 2 ethercat ports?
This is my Config which should Work. 
It´s a small setup in my Shop on my Workbench. It is for tinkering with, EtherCAT & LinuxCNC.

The PC is an old Siemens Microbox PC with 3 Ethernet Ports.

File Attachment:

File Name: ethercat_t...ench.zip
File Size:5 KB
Attachments:
Last edit: 08 Dec 2025 11:18 by jc2ktr. Reason: Text Added
The following user(s) said Thank You: endian, onceloved

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

Time to create page: 0.097 seconds
Powered by Kunena Forum