<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: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 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Arial","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:21.0cm 842.0pt;
margin:2.0cm 2.0cm 2.0cm 2.0cm;}
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=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The change to OP seems wrong, but otherwise the procedure below looks about right.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";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></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";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></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></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><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> etherlab-users-bounces@etherlab.org [mailto:etherlab-users-bounces@etherlab.org] <b>On Behalf Of </b>Graeme Foot<br><b>Sent:</b> Wednesday, 6 November 2013 11:17<br><b>To:</b> etherlab-users@etherlab.org<br><b>Subject:</b> [etherlab-users] Looking for Slave firmware update example<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><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></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><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></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Is this general procedure correct? :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>- ethercat states -p1 INIT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>- ethercat states -p1 BOOT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Wingdings'>à</span><span lang=EN-US style='font-size:10.0pt'> check current state is BOOT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>- ethercat foe_write -p1 /tmp/EL6021_FW06.efw<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>- ethercat states -p1 INIT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>- ethercat states -p1 OP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Wingdings'>à</span><span lang=EN-US style='font-size:10.0pt'> repower the slave and check new firmware is active<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Graeme Foot<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt'><o:p> </o:p></span></p></div></div></body></html>