<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.default-style, li.default-style, div.default-style
{mso-style-name:default-style;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Michele,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">In the realtime loop you call:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"> ecrt_master_receive()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"> ecrt_domain_process() <- called for each of your three domains<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"> ecrt_domain_queue() <- called for each of your three domains<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"> ecrt_master_send()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Graeme.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Etherlab-users <etherlab-users-bounces@etherlab.org>
<b>On Behalf Of </b>michele.barsacchi@libero.it<br>
<b>Sent:</b> Tuesday, 12 January 2021 5:16 am<br>
<b>To:</b> etherlab-users@etherlab.org<br>
<b>Subject:</b> [Etherlab-users] Etherlab-master & linuxcnc<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="default-style">Hi,<o:p></o:p></p>
<p class="default-style">i'am using etherlab-master with linuxcnc-ethercat project with good results.<o:p></o:p></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?<o:p></o:p></p>
<div>
<div>
<div>
<pre>I have consulted on the subject several forums but I have not found <br>anything concrete.<o:p></o:p></pre>
</div>
</div>
</div>
<p class="default-style">I'm not very expert, i'm new of ethercat!<o:p></o:p></p>
<p class="default-style">Thanks,<o:p></o:p></p>
<p class="default-style">Michele<o:p></o:p></p>
<div>
<div>
<div>
<pre><o:p> </o:p></pre>
</div>
</div>
</div>
</div>
</body>
</html>