<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
{mso-style-name:x_msonormal;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.xxmsonormal, li.xxmsonormal, div.xxmsonormal
{mso-style-name:x_xmsonormal;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle28
{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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m not sure how I missed that patch, unless it was sent through after the last update; I thought I’d got them all. I’ve made a note for next time, though.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But I still think that the Real Problem™ in this case is the use of alias addresses < #slaves. Due to Etherlab’s default station addressing, doing that is a really bad idea.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<P
style="FONT-SIZE: 100%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"><STRONG>Gavin Lambert<BR></STRONG>Senior Software Developer<BR></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<TABLE>
<TBODY
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"> </TBODY></TABLE></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><IMG border=0
src="cid:logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png"><BR><A
href="http://www.compacsort.com"><IMG border=0 alt=TOMRA
src="cid:compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png" width=33
height=37></A> <A href="https://www.facebook.com/Compacsort"><IMG border=0
alt=Facebook src="cid:facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png" width=35
height=37></A> <A
href="https://www.linkedin.com/company/compac-sorting-equipment/"><IMG border=0
alt=Linkedin src="cid:linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png" width=35
height=37></A> <A href="https://vimeo.com/compacsort"><IMG border=0 alt=Youtube
src="cid:youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png" width=37 height=37></A>
<A href="https://twitter.com/compacsort"><IMG border=0 alt=twitter
src="cid:twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png" width=33 height=37></A>
<A href="https://www.instagram.com/compacsort/"><IMG border=0 alt=instagram
src="cid:insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png" width=33 height=37></A>
</P>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"><B>COMPAC
SORTING EQUIPMENT LTD</B> | 4 Henderson Pl | Onehunga | Auckland 1061 | New
Zealand<BR>Switchboard: +64 96 34 00 88 | <A
href="http://www.tomra.com">tomra.com</A> </P>
<TABLE
style="BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-COLLAPSE: collapse; BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none"
cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR>
<TD
style="BORDER-LEFT-STYLE: none; BORDER-TOP: #595959 1pt solid; BORDER-BOTTOM: #595959 1pt solid; BORDER-RIGHT-STYLE: none"
vAlign=top>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)">The
information contained in this communication and any attachment is
confidential and may be legally privileged. It should only be read by the
person(s) to whom it is addressed. If you have received this communication
in error, please notify the sender and delete the communication.
</P></TD></TR></TBODY></TABLE>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"></P><div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> Graeme Foot<br>
<b>Sent:</b> Friday, 6 March 2020 10:58<br>
<b>To:</b> Joachim Sällvin <joachim.sallvin@corpowerocean.com>; etherlab-users@etherlab.org<br>
<b>Subject:</b> Re: [etherlab-users] Slave lost forever after power cycling<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-NZ">Hi Joachim,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">When you have the problem are you power cycling the slave modules only, or the master as well? If it's just the slave modules being repowered then you may have run into a bug that I have submitted a patch for, but has
not yet made it into Gavin's patchset. I have attached an email with the patch, although it is for the previous patchset so it may not line up well.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">Prior to the patch, if you hot power a slave module, the master can start reading the slave information (including the alias) before the slave has finished reading it's EEPROM and alias dip switches. If it does then
it can return an invalid alias and the configuration no longer matches up.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">The patch waits until the slave has finished reading the EEPROM (and other information such as alias dip switches) before continuing to request the alias and further information. This has been confirmed as required by
ETG.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">Setting the --diable-sii-cache flag may be hiding the issue by slowing down initial communications with the modules enough for your slave to have read enough of the EEPROM and dip switches to allow it to return valid
information.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">If you repower your whole system (including the master) then there is plenty of time for the slave to have fully initialised before the master is started up and starts communicating. Another way to test it is to:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">- start the system up normally and confirm it is configured correctly<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">- stop your application<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">- stop the EtherCAT master daemon<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">- turn off power to the slaves<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">- turn on the power to the slaves<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">- start the EtherCAT master daemon<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">All of the slaves should be correct as they are fully initialised before the master starts requesting information for configuration.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">Of course the only way to fully confirm if it is this problem is to trawl through wireshark logs of the startup communications from a hot power and confirm whether the "EERPOM not loaded" flag is set (Register 0x0502
bit 12) while reading the alias and other information from the slave.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">Graeme Foot.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><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>From:</b> Joachim Sällvin <<a href="mailto:joachim.sallvin@corpowerocean.com">joachim.sallvin@corpowerocean.com</a>>
<br>
<b>Sent:</b> Friday, 6 March 2020 3:56 AM<br>
<b>To:</b> Gavin Lambert <<a href="mailto:gavin.lambert@tomra.com">gavin.lambert@tomra.com</a>>; Graeme Foot <<a href="mailto:Graeme.Foot@touchcut.com">Graeme.Foot@touchcut.com</a>>;
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<b>Subject:</b> Sv: Slave lost forever after power cycling<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">Hi,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">Problem seems to have been solved!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">Gavin's suggestion:
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">"</span><span lang="SV" style="font-size:12.0pt;color:black">If you
<b>are</b> using the unofficial patchset, something else you could try is to add </span>
<span lang="SV" style="font-size:12.0pt;font-family:Consolas;color:black">--disable-sii-cache</span><span lang="SV" style="font-size:12.0pt;color:black"> to your configure options and rebuild</span><span lang="EN-NZ" style="font-size:12.0pt;color:black">"
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">did the trick. Thank you so much for this!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">So this is what I did:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">cd /usr/src/etherlab<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">sudo ./configure --disable-sii-cache --enable-generic --disable-8139too prefix=/opt/etherlab<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">sudo make
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">sudo make modules
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">sudo make modules_install<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">sudo make install<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">sudo update-grub<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">sudo reboot now<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">$ ethercat version<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">IgH EtherCAT master 1.5.2 35e7f0841303<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">Best Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">Joachim Sällvin<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-NZ">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span lang="EN-NZ" style="color:black">Från:</span></b><span lang="EN-NZ" style="color:black"> Gavin Lambert <</span><span lang="EN-NZ"><a href="mailto:gavin.lambert@tomra.com">gavin.lambert@tomra.com</a><span style="color:black">><br>
<b>Skickat:</b> den 17 februari 2020 23:39<br>
<b>Till:</b> Graeme Foot <</span><a href="mailto:Graeme.Foot@touchcut.com">Graeme.Foot@touchcut.com</a><span style="color:black">>; Joachim Sällvin <</span><a href="mailto:joachim.sallvin@corpowerocean.com">joachim.sallvin@corpowerocean.com</a><span style="color:black">>;
</span><a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><span style="color:black"> <</span><a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><span style="color:black">><br>
<b>Ämne:</b> RE: Slave lost forever after power cycling</span> <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-NZ"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal">While I’m not disputing that it might work like that, this sounds a bit backwards. Assuming that the “parameters” are SDOs, these are usually temporary until reboot while “ethercat alias” updates the EEPROM and is usually permanent.<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">Actually, it seems quite suspicious that in the example below there are still four slaves after power cycling, but that you appear to now have a duplicate
<span lang="SV">AL1930.</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="SV"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="SV">If you’re not using the unofficial patchset, it might be worthwhile trying that out.</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="SV"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="SV">If you <b>are</b> using the unofficial patchset, something else you could try is to add
</span><span lang="SV" style="font-family:Consolas">--disable-sii-cache</span><span lang="SV"> to your configure options and rebuild. The cache is something which (if it goes wrong) could possibly cause apparently duplicated slaves when aliases are used –
although I can’t think of how it could be going wrong at the moment, it doesn’t hurt to try.</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="SV"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="SV">Another thing that might be useful to try is to use larger and/or more widely spaced alias addresses (if supported by your slaves) – I usually prefer to avoid the low numbers to avoid confusion with relative addressing.</span><o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p><strong><span style="font-family:"Calibri",sans-serif;color:#595959">Gavin Lambert</span></strong><b><span style="color:#595959"><br>
</span></b><span style="color:#595959">Senior Software Developer<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><img border="0" width="360" height="102" style="width:3.75in;height:1.0625in" id="Picture_x0020_2" src="cid:image001.png@01D5F3AB.0D827BB0"></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><span lang="EN-NZ"><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.compacsort.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280624123&sdata=SNsvwX4EP0Xg1Cbeq2jbEJgHEa0uzTw8qieTU1VjCII%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="Picture_x0020_3" src="cid:image002.png@01D5F3AB.0D827BB0" alt="TOMRA"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FCompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280634114&sdata=IhtrejBvmcMh1uz7xWW4vTG0e7HX5EW%2FD%2BH%2FeMZAseA%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="35" height="37" style="width:.3645in;height:.3854in" id="Picture_x0020_4" src="cid:image003.png@01D5F3AB.0D827BB0" alt="Facebook"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fcompac-sorting-equipment%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280634114&sdata=nRW05pyYBKwABuJK07hQ2DYcbnbAz3HtqzZnidxkvW4%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="35" height="37" style="width:.3645in;height:.3854in" id="Picture_x0020_5" src="cid:image004.png@01D5F3AB.0D827BB0" alt="Linkedin"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280644111&sdata=9eQ5C5gJ8B3onvx1dAiBic4iRq0sS5TYBiAFwupaQhI%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="37" height="37" style="width:.3854in;height:.3854in" id="Picture_x0020_6" src="cid:image005.png@01D5F3AB.0D827BB0" alt="Youtube"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280644111&sdata=K731RXqZsl8JCIbEQr3Eh3VP%2FbWmlsJC0nsc6pBQA%2Bk%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="Picture_x0020_7" src="cid:image006.png@01D5F3AB.0D827BB0" alt="twitter"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fcompacsort%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280654106&sdata=YkRL41gg6%2Bs%2Fewl459ujSFJtrZeIEMwPHlxkSPIHeN8%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="Picture_x0020_8" src="cid:image007.png@01D5F3AB.0D827BB0" alt="instagram"></span></a></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><b><span style="font-size:8.5pt;color:#595959">COMPAC SORTING EQUIPMENT LTD</span></b><span style="font-size:8.5pt;color:#595959"> | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand<br>
Switchboard: +64 96 34 00 88 | </span><span lang="EN-NZ"><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.tomra.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280654106&sdata=GP6QEgBT5Z2xrr4RTK8VeWEp66YqcDuBg%2FpHGahdbm0%3D&reserved=0"><span lang="EN-US" style="font-size:8.5pt">tomra.com</span></a></span><span lang="EN-NZ" style="font-size:8.5pt;color:#595959">
</span><span style="font-size:8.5pt;color:#595959"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="border-top:solid #595959 1.0pt;border-left:none;border-bottom:solid #595959 1.0pt;border-right:none;padding:0cm 0cm 0cm 0cm">
<p><span style="font-size:8.5pt;font-family:"Times New Roman",serif;color:#595959">The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed.
If you have received this communication in error, please notify the sender and delete the communication.
<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="xmsonormal"><b><span style="color:black">From:</span></b> Graeme Foot <<span lang="EN-NZ"><a href="mailto:Graeme.Foot@touchcut.com"><span lang="EN-US">Graeme.Foot@touchcut.com</span></a></span>>
<br>
<b>Sent:</b> Tuesday, 18 February 2020 08:31<br>
<b>To:</b> Joachim Sällvin <<span lang="EN-NZ"><a href="mailto:joachim.sallvin@corpowerocean.com"><span lang="EN-US">joachim.sallvin@corpowerocean.com</span></a></span>>; Gavin Lambert <<span lang="EN-NZ"><a href="mailto:gavin.lambert@tomra.com"><span lang="EN-US">gavin.lambert@tomra.com</span></a></span>>;
<span lang="EN-NZ"><a href="mailto:etherlab-users@etherlab.org"><span lang="EN-US">etherlab-users@etherlab.org</span></a></span><br>
<b>Subject:</b> RE: Slave lost forever after power cycling<o:p></o:p></p>
</div>
</div>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ">Hi,</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ">Is it this module here (or similar)?</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ"><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.nord.com%2Fcms%2Fmedia%2Fdocuments%2Fdatasheets%2FTI_275281117_SK_TU4-ECT_EN_4217_screen.pdf&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280664099&sdata=UM7q70YVN9D4r734e0lz2oU0THjZH8KV6jD28ZoqH4k%3D&reserved=0">https://www.nord.com/cms/media/documents/datasheets/TI_275281117_SK_TU4-ECT_EN_4217_screen.pdf</a></span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ">The back of this unit has dip switches:</span><o:p></o:p></p>
<p class="xmsonormal"><i><span lang="EN-NZ">Second Address (DIP 2..10)</span></i><o:p></o:p></p>
<p class="xmsonormal"><i><span lang="EN-NZ">The "Second Address" can be set via this switch and controlled in parameter P181.</span></i><o:p></o:p></p>
<p class="xmsonormal"><i><span lang="EN-NZ">If all DIP switches 2..10 are moved to the "OFF" position, the "Second Address" can be set via parameter P160.</span></i><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ">This means that if you set an alias on this slave via the "ethercat alias" command it will only remain active until the unit is repowered. If the dip switches are set it will apply an alias based on the dip switches.
If the dip switches are all off it will use the P160 parameter.</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ">Use the dip switches or P160 to set your alias for this unit, not the "ethercat alias" command.</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ">Regards,</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ">Graeme Foot.</span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="xmsonormal"><b>From:</b> etherlab-users <<span lang="EN-NZ"><a href="mailto:etherlab-users-bounces@etherlab.org"><span lang="EN-US">etherlab-users-bounces@etherlab.org</span></a></span>>
<b>On Behalf Of </b>Joachim Sällvin<br>
<b>Sent:</b> Tuesday, 18 February 2020 6:01 AM<br>
<b>To:</b> Gavin Lambert <<span lang="EN-NZ"><a href="mailto:gavin.lambert@tomra.com"><span lang="EN-US">gavin.lambert@tomra.com</span></a></span>>;
<span lang="EN-NZ"><a href="mailto:etherlab-users@etherlab.org"><span lang="EN-US">etherlab-users@etherlab.org</span></a></span><br>
<b>Subject:</b> Re: [etherlab-users] Slave lost forever after power cycling<o:p></o:p></p>
</div>
</div>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">Thank you very much for your reply.</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">It seems like the position on the slave network doesn't matter. What matters i the alias addressing of this particular slave. When I don't give the TU4 slave any alias address I can
power-cycle it without loosing it. But as soon as I've given it an alias address and power-cycle it is lost (not every time but almost).</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">What might cause this? It seems like the EEPROM/Sii of the slave overwritten at start-up when it has been given an alias address. Is there a way to prevent this? How does this work
"under the hood"?</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">I use "sudo ethercat -p1 alias 2" for example to give the slave on position 1 the alias address 2. Nothing wrong here I presume since it seems to work for other slaves.</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black">I've been in contact with the vendor of the TU4 module and they claim that this module is working in big volumes (thousands) on the market. All their other customers use TwinCAT and
they haven't heard of this problem. I have also tried three different TU4 modules to exclude the possibility of one failing individual.</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><b><span lang="EN-NZ" style="font-size:12.0pt;color:black">Examples:</span></b><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><b><span lang="EN-NZ" style="font-size:12.0pt;color:black">1.All slaves have alias addresses => TU4-ECT lost after power-cycling.</span></b><o:p></o:p></p>
</div>
<div>
<div>
<p><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">0 1:0 PREOP + AXL F BK EC, Axioline EtherCAT Fieldbus coupler </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">1 2:0 PREOP + TU4-ECT </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">2 3:0 PREOP + ifm IO-Link Master AL1930 </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">3 4:0 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p><span lang="SV">Power-cycling...</span><o:p></o:p></p>
<p><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">0 1:0 PREOP + AXL F BK EC, Axioline EtherCAT Fieldbus coupler </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">1 2:0 PREOP + ifm IO-Link Master AL1930 </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">2 3:0 PREOP + ifm IO-Link Master AL1930 </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">3 4:0 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
<p><span lang="SV" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p><b><span lang="SV">2. No slave has an alias address => No problem after power-cycling.</span></b><o:p></o:p></p>
<div>
<p style="line-height:13.5pt"><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">0 0:0 PREOP + AXL F BK EC, Axioline EtherCAT Fieldbus coupler </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">1 0:1 PREOP + ifm IO-Link Master AL1930 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">2 0:2 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">3 0:3 PREOP + TU4-ECT </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV">Power-cycling...</span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">0 0:0 PREOP + AXL F BK EC, Axioline EtherCAT Fieldbus coupler </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">1 0:1 PREOP + ifm IO-Link Master AL1930 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">2 0:2 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">3 0:3 PREOP + TU4-ECT </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><b><span lang="SV">3. All slaves but the TU4 has alias addresses => No problem</span></b><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<div>
<p style="line-height:13.5pt"><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">0 1:0 PREOP + AXL F BK EC, Axioline EtherCAT Fieldbus coupler </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">1 2:0 PREOP + ifm IO-Link Master AL1930 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">2 3:0 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">3 3:1 PREOP + TU4-ECT </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV">Power-cycling...</span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">0 1:0 PREOP + AXL F BK EC, Axioline EtherCAT Fieldbus coupler </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">1 2:0 PREOP + ifm IO-Link Master AL1930 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">2 3:0 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">3 3:1 PREOP + TU4-ECT </span><o:p></o:p></p>
</div>
<p class="xmsonormal" style="line-height:13.5pt"><span lang="EN-NZ" style="color:black"> </span><o:p></o:p></p>
</div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
<p><span lang="SV">Best regards,</span><o:p></o:p></p>
<p><span lang="SV" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p><span lang="SV">Joachim Sällvin</span><o:p></o:p></p>
</div>
<p class="xmsonormal"><span lang="EN-NZ" style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-NZ">
<hr size="2" width="98%" align="center">
</span></div>
<div id="x_divRplyFwdMsg">
<p class="xmsonormal"><b><span lang="EN-NZ" style="color:black">Från:</span></b><span lang="EN-NZ" style="color:black"> Gavin Lambert <</span><span lang="EN-NZ"><a href="mailto:gavin.lambert@tomra.com">gavin.lambert@tomra.com</a><span style="color:black">><br>
<b>Skickat:</b> den 16 februari 2020 23:58<br>
<b>Till:</b> Joachim Sällvin <</span><a href="mailto:joachim.sallvin@corpowerocean.com">joachim.sallvin@corpowerocean.com</a><span style="color:black">>;
</span><a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><span style="color:black"> <</span><a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><span style="color:black">><br>
<b>Ämne:</b> RE: Slave lost forever after power cycling</span> </span><o:p></o:p></p>
<div>
<p class="xmsonormal"><span lang="EN-NZ"> </span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xxmsonormal">Have you tried putting it in different positions on the slave network? Perhaps it only vanishes when downstream of a particular slave; then the problem might be with that slave’s configuration.<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p class="xxmsonormal">Etherlab typically assumes that all slaves are configured with DL auto-open mode (so that slaves that are connected or rebooted are automatically brought into the virtual ring network), but it’s possible that one of your upstream slaves
has been configured in the explicit open mode instead.<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p><strong><span style="font-family:"Calibri",sans-serif;color:#595959">Gavin Lambert</span></strong><b><span style="color:#595959"><br>
</span></b><span style="color:#595959">Senior Software Developer</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><img border="0" width="360" height="102" style="width:3.75in;height:1.0625in" id="x__x005f_x0000_i1026" src="cid:image001.png@01D5F3AB.0D827BB0"></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><span lang="EN-NZ"><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.compacsort.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280664099&sdata=s%2BXov0auY%2B8oUX5ZmMIzCrhZF7I6kEgLLtv4Gybv0x4%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="x__x005f_x0000_i1027" src="cid:image002.png@01D5F3AB.0D827BB0" alt="TOMRA"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FCompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280674095&sdata=aKwV7vIN9geVE10Ph9ypYgjUlY5%2FkCdQhIVaNZSBWQc%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="35" height="37" style="width:.3645in;height:.3854in" id="x__x005f_x0000_i1028" src="cid:image003.png@01D5F3AB.0D827BB0" alt="Facebook"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fcompac-sorting-equipment%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280674095&sdata=1IuLwMvAE%2FmNOG3cOquh0Hu0LvOKS%2Bn20utp9um2%2BbE%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="35" height="37" style="width:.3645in;height:.3854in" id="x__x005f_x0000_i1029" src="cid:image004.png@01D5F3AB.0D827BB0" alt="Linkedin"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280684089&sdata=Jp813%2Bx%2FOpjsq0kly%2FXgIdlZjA65lvUJ19uWTwOSMWQ%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="37" height="37" style="width:.3854in;height:.3854in" id="x__x005f_x0000_i1030" src="cid:image005.png@01D5F3AB.0D827BB0" alt="Youtube"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280684089&sdata=jRN208nH2w2JBJzHHpJVW5JrnIpbzax9jmYRGEKAsZ8%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="x__x005f_x0000_i1031" src="cid:image006.png@01D5F3AB.0D827BB0" alt="twitter"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fcompacsort%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280694086&sdata=OSAz%2B1DUY3bq7Xn%2BmJG0wjAIqG19GqnQEv6U1nx%2BJ7g%3D&reserved=0"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="x__x005f_x0000_i1032" src="cid:image007.png@01D5F3AB.0D827BB0" alt="instagram"></span></a></span><o:p></o:p></p>
<p><b><span style="font-size:8.5pt;color:#595959">COMPAC SORTING EQUIPMENT LTD</span></b><span style="font-size:8.5pt;color:#595959"> | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand<br>
Switchboard: +64 96 34 00 88 | </span><span lang="EN-NZ"><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.tomra.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C9877e578c8b14505945b08d7c1505fc4%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637190423280694086&sdata=8YJgtU8sHdvaD3z0KZeAf1cgXCeNMUIsnO4erUvI5BA%3D&reserved=0"><span lang="EN-US" style="font-size:8.5pt">tomra.com</span></a></span><span lang="EN-NZ" style="font-size:8.5pt;color:#595959">
</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="border-top:solid #595959 1.0pt;border-left:none;border-bottom:solid #595959 1.0pt;border-right:none;padding:0cm 0cm 0cm 0cm">
<p><span style="font-size:8.5pt;font-family:"Times New Roman",serif;color:#595959">The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed.
If you have received this communication in error, please notify the sender and delete the communication.
</span><span style="font-size:10.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="xxmsonormal"><b><span style="color:black">From:</span></b> Joachim Sällvin<br>
<b>Sent:</b> Friday, 14 February 2020 22:34<br>
<b>To:</b> <span lang="EN-NZ"><a href="mailto:etherlab-users@etherlab.org"><span lang="EN-US">etherlab-users@etherlab.org</span></a></span><br>
<b>Subject:</b> [etherlab-users] Slave lost forever after power cycling<o:p></o:p></p>
</div>
</div>
<p class="xxmsonormal"> <o:p></o:p></p>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black">Hi all,</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black">I loose contact with my TU4-ECT (freq inverter from Nord Drive) slave after power-cycling it when there are other slaves on the bus. This happens intermittently. Only a EEPROM reset (I use TwinCAT
for this ) can make it accessible again. When it is the only slave on the bus it seems as I can power-cycle and always access again.</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black">Has anyone experienced the same problem? What might cause this? Workarounds?</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><b><span style="font-size:12.0pt;color:black">Example:</span></b><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black">Before power-cycling the TU4-ECT (all slaves have been given alias addresses):</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">0 1:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus) </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">1 2:0 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A </span><o:p></o:p></p>
</div>
<div>
<p><span lang="SV">2 3:0 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
</div>
<div>
<p><b><span lang="SV">3 4:0 INIT E TU4-ECT </span></b><o:p></o:p></p>
<p><span lang="SV" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p><span lang="SV">After power-cycling the TU4-ECT:</span><o:p></o:p></p>
<p><span lang="SV" style="font-size:12.0pt"> </span><o:p></o:p></p>
<div>
<p style="line-height:13.5pt"><span lang="SV">$ sudo ethercat slaves </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">0 1:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus) </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">1 2:0 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><span lang="SV">2 3:0 PREOP + ifm IO-Link Master AL1332 </span><o:p></o:p></p>
</div>
<div>
<p style="line-height:13.5pt"><b><span lang="SV">3 8:0 PREOP + ifm IO-Link Master AL1332
</span></b><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV">Lost!!!</span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV">I'm using Linux kernel 4.13.13-rt5, Ubuntu 18.04 and EtherCAT master 1.5.2.</span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV">Joachim Sällvin</span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
<p style="line-height:13.5pt"><span lang="SV"> </span><o:p></o:p></p>
</div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
<p><span lang="SV" style="font-size:12.0pt"> </span><o:p></o:p></p>
</div>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>