<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">Hi,</span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div id="AppleMailSignature"><span style="background-color: rgba(255, 255, 255, 0);">Thanks for your answer, I will check<br></span></div><br>Philippe Leuba</div><div><br>On 10 Jan 2017, at 22:12, Graeme Foot <<a href="mailto:Graeme.Foot@touchcut.com">Graeme.Foot@touchcut.com</a>> wrote:<br><br></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I originally had this problem with the amps I use so I created a patch to add a
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
ecrt_master_deactivate_slaves()</span> function.</p>
<p><br>
</p>
<p>When shutting down my application I call ecrt_master_deactivate_slaves() and continue realtime polling until (masterState.al_states == 0x02).  I can then exit realtime and call ecrt_master_deactivate().</p>
<p><br>
</p>
<p>I'm not sure if that part of my patch got picked up by etherlab or Gavin's patch set (see etherlab-dev forum).</p>
<p><br>
</p>
<p>I've attached the patch file I currently use.  You could extract out the bit you need.  (Note: I use and patch against etherlabmaster 1.5.2 2526.)</p>
<p><br>
</p>
<p><br>
</p>
<p>Regards,</p>
<p>Graeme.</p>
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> etherlab-users <<a href="mailto:etherlab-users-bounces@etherlab.org">etherlab-users-bounces@etherlab.org</a>> on behalf of Philippe Leuba <<a href="mailto:pleuba@swissonline.ch">pleuba@swissonline.ch</a>><br>
<b>Sent:</b> Wednesday, 11 January 2017 05:16<br>
<b>To:</b> <a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<b>Subject:</b> [etherlab-users] PD Watchdog error on EL7211</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hello,<br>
<br>
When I quit my application by calling ec_master_deactivate, this causes an error of watchdog on the EL7211 slave.
<br>
<br>
If prior to quit my app I use the command line tool to do an 'ethercat states PREOP', I get rid of the problem, but this function is not available in ecrt.h.
<br>
<br>
Is it the right method ?<br>
<br>
Philippe Leuba<br>
_______________________________________________<br>
etherlab-users mailing list<br>
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" id="LPlnk460625" previewremoved="true">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
</div>
</span></font></div>
</div>


</div></blockquote><blockquote type="cite"><div><etherlabmaster-1.5.2-2526-patched.patch></div></blockquote></body></html>