<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/</id><updated>2022-07-06T08:57:30.494000Z</updated><subtitle>Recent posts to Question... Multiple Ethercat Master in project, but only one active.</subtitle><entry><title>Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/?limit=25#1062/100c" rel="alternate"/><published>2022-07-06T08:57:30.494000Z</published><updated>2022-07-06T08:57:30.494000Z</updated><author><name>struccc</name><uri>https://forge.codesys.com/u/struccc/</uri></author><id>https://forge.codesys.com2efa24a4e0c43abd0331de4015b82f0430134311</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, it's quite common.&lt;br/&gt;
Note that the library is naturally referenced once in the library manager, however you can add multiple EtherCAT masters and underlying topology in the device tree - each of them has to be bounded to one physical or virtual ethernet adapter by MAC address or device ID.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/?limit=25#1062/9c9d" rel="alternate"/><published>2022-07-06T08:57:26.544000Z</published><updated>2022-07-06T08:57:26.544000Z</updated><author><name>struccc</name><uri>https://forge.codesys.com/u/struccc/</uri></author><id>https://forge.codesys.com8acb779333b43ac171431a758adf8ecce0dc759e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, it's quite common.&lt;br/&gt;
Note that the library is naturally referenced once in the library manager, however you can add multiple EtherCAT masters and underlying topology in the device tree - each of them has to be bounded to one physical or virtual ethernet adapter by MAC address or device ID.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/?limit=25#1062" rel="alternate"/><published>2022-07-06T08:10:05.452000Z</published><updated>2022-07-06T08:10:05.452000Z</updated><author><name>kut69</name><uri>https://forge.codesys.com/u/kut69/</uri></author><id>https://forge.codesys.comb74347944f319f6136e0978f78a0074985c70415</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, my question is related to that topic. Is it possible to use 2 "instances" of the EtherCAT master library simultanuous to access 2 different ports for 2 different fieldbus rings?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/?limit=25#37c5/d128" rel="alternate"/><published>2022-04-04T08:54:05.515000Z</published><updated>2022-04-04T08:54:05.515000Z</updated><author><name>struccc</name><uri>https://forge.codesys.com/u/struccc/</uri></author><id>https://forge.codesys.com199e6d76b62f4a7c5e71c5044f2b665640f4ee64</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Now I tested it briefly, but couldn't get it alive - the problem is that the Master instance tries to get an exclusive lock on the ethernet adapter at program startup (independent from xBusStop)...&lt;/p&gt;
&lt;p&gt;But I tried something else, and seems to work. Maybe this is an option for you:&lt;br/&gt;
 - Configure single master, and multiple slaves&lt;br/&gt;
 - Set all slaves as optional&lt;br/&gt;
 - This requires to assign a station address for each of the slaves&lt;br/&gt;
   (Actually the station address(-es) can identify your configuration)&lt;br/&gt;
 - Define the common input / output data for all the possible configurations in structures (this might be well planned)&lt;br/&gt;
 - Create a separate instance of these structures for possible configurations&lt;br/&gt;
 - Map the I/O data of the optional slaves to the individual instances. You must do mapping, cannot use %IW-%QW for this.&lt;br/&gt;
 - Scan trough the instances for sign of life (actual I/O data)&lt;br/&gt;
 - Set a reference in the control application to the selected instance&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;This is standard functionality, should work fine...&lt;/p&gt;
&lt;p&gt;If... you want to do it more sophisticated, you can use COE messaging to check presence of individual stations (configurations), read their hardware configuration (slots)... and even to configure station address...&lt;/p&gt;
&lt;p&gt;You can turn off checking of module and vendor ids, module configuration, and also use advanced PDU configuration...&lt;/p&gt;
&lt;p&gt;Please let me know about your progress...&lt;br/&gt;
It's an interesting topic, I will have some similar tasks in the near future, so looking forward a proper solution... &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/?limit=25#37c5" rel="alternate"/><published>2022-04-04T06:21:29.945000Z</published><updated>2022-04-04T06:21:29.945000Z</updated><author><name>mondinmr</name><uri>https://forge.codesys.com/u/mondinmr/</uri></author><id>https://forge.codesys.com3d9d96f8469b8f148e00feed2f5198221c3c8a33</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I tested but it's not working.&lt;br/&gt;
Also hot enable/disable a slave is not possible.&lt;br/&gt;
Disable a slave in editor move all adderessing space of next device back so it's not possible hot reenable it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/?limit=25#eaaf" rel="alternate"/><published>2022-04-01T04:44:14.738000Z</published><updated>2022-04-01T04:44:14.738000Z</updated><author><name>struccc</name><uri>https://forge.codesys.com/u/struccc/</uri></author><id>https://forge.codesys.com9e6c0d03752672ed081bd7ed67d2d5efa7ab51d2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Wow... Interesting topic :) &lt;/p&gt;
&lt;p&gt;I assume we're talking about Ethercat...&lt;br/&gt;
As a first guess I'd try to use the xStopBus input of the individual master instances:&lt;br/&gt;
&lt;img src="./attachment/Untitled.png" width="90%"/&gt;&lt;/p&gt;
&lt;p&gt;I wonder if this can work...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question... Multiple Ethercat Master in project, but only one active.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cd00f6c317/?limit=25#2905" rel="alternate"/><published>2022-03-31T18:11:35.693000Z</published><updated>2022-03-31T18:11:35.693000Z</updated><author><name>mondinmr</name><uri>https://forge.codesys.com/u/mondinmr/</uri></author><id>https://forge.codesys.combb3d666f08b6ef1bad8be439886f19e82802b4b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is it possible keep multiple master configured in different mode (multiple slave configurations) and turn on only one at application boot?&lt;/p&gt;
&lt;p&gt;I'm developing a new application, on POU side OOP and polymorphism let me create a runtime configurable modular software, but on device side is hard to find a solution.&lt;/p&gt;
&lt;p&gt;Mapping on a structure field objects of a slave and use references in software is very useful, but a good solution should be dispose 20-30 master configuration in different hardware to select right configuration in runtime.&lt;/p&gt;
&lt;p&gt;In a lathe machine we are using multiple device configuration, but this solution require a full download. &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>