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 to join the conversation.

More
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

Please Log in 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 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

Please Log in to join the conversation.

More
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.

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum