<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi, many thanks for the rapid answer.
</div>
<div>
<br>
</div>
<pre class="tw-data-text tw-text-large XcVN5d tw-ta" dir="ltr" style="text-align: left;" data-placeholder="Translation">i think my problem is the linuxcnc-ethercat module not creating <br>the double domain input/output. I have .xml file where i can configure PDOs but the results is only one domain.<br><br>"ethercat domains -v" list only one domain.<br><br>The ecrt_domain_process() call is made in the lcec_main.c of the <br>linuxcnc-ethercat module, but i don't have understood how domains definition works on xml file.<br><br><br>I'll read better documentation to understand this point.<br><br>Thanks.</pre>
<blockquote type="cite">
<div>
Il 11/01/2021 21:41 Graeme Foot <graeme.foot@touchcut.com> ha scritto:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;">Hi Michele,</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;">I use ecrt_master_create_domain() to create three domains. One for general modules and the other two for the modules that require LRD & LWR.</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;">I configure each slaves PDO’s by calling ecrt_slave_config_pdos() and then ecrt_slave_config_reg_pdo_entry() for each PDO entry I want to attach too. ecrt_slave_config_reg_pdo_entry() takes a domain parameter, so this is where you choose which domain is suitable for the entry. From what I understand, the first entry from a sync group to be placed into a domain will place all entries from that sync group into the domain. The master will return an error if you try to put entries from the same sync group into different domains.</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;">In the realtime loop you call:</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> ecrt_master_receive()</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> ecrt_domain_process() <- called for each of your three domains</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> ecrt_domain_queue() <- called for each of your three domains</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> ecrt_master_send()</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;">Regards,</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;">Graeme.</span></p>
<p class="MsoNormal"><span style="mso-fareast-language: EN-US;"> </span></p>
<div>
<div style="border: none; border-top: solid #E1E1E1 1.0pt; padding: 3.0pt 0cm 0cm 0cm;">
<p class="MsoNormal"><strong>From:</strong> Etherlab-users <etherlab-users-bounces@etherlab.org> <strong>On Behalf Of </strong>michele.barsacchi@libero.it<br><strong>Sent:</strong> Tuesday, 12 January 2021 5:16 am<br><strong>To:</strong> etherlab-users@etherlab.org<br><strong>Subject:</strong> [Etherlab-users] Etherlab-master & linuxcnc</p>
</div>
</div>
<p class="MsoNormal"><br></p>
<p class="default-style">Hi,</p>
<p class="default-style">i'am using etherlab-master with linuxcnc-ethercat project with good results.</p>
<p class="default-style">I try to configure a new drive (ESTUN ED3M) that has the "enablenotLRW=yes" flag setted. I should probably configure two domains, one LRD and one LWR. Do you have some examples to configure multiple domains? Is there documentation to explain this feature?</p>
<div>
<div>
<div>
<pre>I have consulted on the subject several forums but I have not found <br>anything concrete.</pre>
</div>
</div>
</div>
<p class="default-style">I'm not very expert, i'm new of ethercat!</p>
<p class="default-style">Thanks,</p>
<p class="default-style">Michele</p>
<div>
<div>
<div>
<pre><br></pre>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>