<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:x="urn:schemas-microsoft-com:office:excel" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40" xmlns:ns0="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 11 (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]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--a:link
{mso-style-priority:99;}
span.MSOHYPERLINK
{mso-style-priority:99;}
a:visited
{mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
{mso-style-priority:99;}
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Arial;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:Calibri;
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:21.0cm 842.0pt;
margin:2.0cm 2.0cm 2.0cm 2.0cm;}
div.Section1
{page:Section1;}
-->
</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-GB" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy">Thanks.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy">The documentation for this module (from Beckhoff) doesn't mention that a filename should be set so I will go with the default .efw filename.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy">The documentation says to change to OP at the end. I can't see that it would be necessary either.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy">Graeme.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;color:navy"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;font-family:
"Times New Roman"">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma"> Gavin Lambert
[mailto:gavinl@compacsort.com] <br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, 6 November 2013 11:30<br>
<b><span style="font-weight:bold">To:</span></b> <st1:PersonName w:st="on">Graeme Foot</st1:PersonName>; etherlab-users@etherlab.org<br>
<b><span style="font-weight:bold">Subject:</span></b> RE: [etherlab-users] Looking for Slave firmware update example</span></font><font face="Times New Roman"><span lang="EN-US" style="font-family:"Times New Roman""><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-NZ" style="font-size:11.0pt;font-family:Calibri;color:#1F497D">The change to OP seems wrong, but otherwise the procedure below looks about right.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-NZ" style="font-size:11.0pt;font-family:Calibri;color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-NZ" style="font-size:11.0pt;font-family:Calibri;color:#1F497D">One thing to note is that the foe_write command takes two filenames – the other you’ve left unspecified (and so
will default to the .efw filename) is the internal name sent to the device. You’ll have to check with the vendor whether they require a particular name or whether they’ll accept any name. (If there’s upgrade instructions in the docs, it probably shows how
the upgrade is done via TwinCAT – you can see what filename is used there, or if it doesn’t appear to be relevant.)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-NZ" style="font-size:11.0pt;font-family:Calibri;color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-NZ" style="font-size:11.0pt;font-family:Calibri;color:#1F497D">A quick glance at the docs myself suggests that the device doesn’t particularly care what filename is used. But
to be sure, you will need to try it.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span lang="EN-NZ" style="font-size:11.0pt;font-family:Calibri;color:#1F497D"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma"> etherlab-users-bounces@etherlab.org
[mailto:etherlab-users-bounces@etherlab.org] <b><span style="font-weight:bold">On Behalf Of
</span></b><st1:PersonName w:st="on">Graeme Foot</st1:PersonName><br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, 6 November 2013 11:17<br>
<b><span style="font-weight:bold">To:</span></b> etherlab-users@etherlab.org<br>
<b><span style="font-weight:bold">Subject:</span></b> [etherlab-users] Looking for Slave firmware update example<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal"><font size="3" face="Arial"><span lang="EN-NZ" style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">Hi,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">I want to update the firmware on an EtherCAT slave (an EL6021 module). I'm using the latest 1.5.2 master.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">I take it that I need to use the "ethercat foe_write" command but I haven't been able to find what "output-file" name I should be using. Should it be the name of
the .efw file (or not used so it automatically picks up the name of the .efw file)?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">Is this general procedure correct? :<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">- ethercat states -p1 IN<st1:PersonName w:st="on">IT</st1:PersonName><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">- ethercat states -p1 BOOT<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Wingdings"><span lang="EN-US" style="font-size:10.0pt;font-family:Wingdings">à</span></font><font size="2"><span lang="EN-US" style="font-size:10.0pt"> check current state is BOOT<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">- ethercat foe_write -p1 /tmp/EL6021_FW06.efw<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">- ethercat states -p1 IN<st1:PersonName w:st="on">IT</st1:PersonName><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">- ethercat states -p1 OP<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Wingdings"><span lang="EN-US" style="font-size:10.0pt;font-family:Wingdings">à</span></font><font size="2"><span lang="EN-US" style="font-size:10.0pt"> repower the slave and check new firmware is active<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt">Thanks,<o:p></o:p></span></font></p>
<p class="MsoNormal"><st1:PersonName w:st="on"><font size="2" face="Arial"><span lang="EN-US" style="font-size:10.0pt">Graeme Foot</span></font></st1:PersonName><font size="2"><span lang="EN-US" style="font-size:10.0pt"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt"><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>