Config 2 ethercat ports?

More
10 months 3 weeks ago #339847 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
10 months 3 weeks ago - 10 months 3 weeks ago #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: 10 months 3 weeks ago 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
10 months 3 weeks ago #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
10 months 3 weeks ago #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
10 months 3 weeks ago - 10 months 3 weeks ago #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:4.53 KB
Last edit: 10 months 3 weeks ago by jc2ktr. Reason: Text Added
The following user(s) said Thank You: endian, onceloved, heaven

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

Time to create page: 0.293 seconds
Powered by Kunena Forum