<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Mohsen,<br>
<br>
additionally you can use ecrt_slave_config_state in your application. I call this function plus ecrt_master_state and ecrt_domain_state every other second to check the status of the whole setup.<br>
<br>
Best regards,<br>
Christoph<br>
<br>
<div class="moz-cite-prefix">On 10/4/18 11:15 PM, Ian Prochazka wrote:<br>
</div>
<blockquote type="cite" cite="mid:A262E7BD3F5D9049ADBACCC455B324B801B259811C2D@SERVER.persimmontech.com">
<meta name="GENERATOR" content="MSHTML 11.00.9600.19130">
<style title="owaParaStyle"><!--P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
--></style>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2">Would user command from OS console give you the answer:</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="tahoma" size="2"><font face="tahoma" size="2"><a href="mailto:xxxxx@xxxxx::~$" moz-do-not-send="true">xxxxx@xxxxx</a></font><a href="mailto:xxxxx@xxxxx::~$" moz-do-not-send="true">::~$</a> ethercat slaves<br>
</font></div>
<font face="tahoma" size="2"></font>
<p> </p>
<p><font face="tahoma" size="2">The ethercat commands can be used while your application is running. Try 'ethercat --help' for other options</font></p>
<p> </p>
<p><font face="tahoma" size="2">Best regards,</font></p>
<p><font face="tahoma" size="2">Ian</font></p>
<p> </p>
<div dir="ltr">
<hr tabindex="-1">
</div>
<div dir="ltr"><font face="Tahoma" size="2"><b>From:</b> etherlab-users [<a class="moz-txt-link-abbreviated" href="mailto:etherlab-users-bounces@etherlab.org">etherlab-users-bounces@etherlab.org</a>] On Behalf Of Mohsen Alizadeh Noghani [<a class="moz-txt-link-abbreviated" href="mailto:m.alizad3h@gmail.com">m.alizad3h@gmail.com</a>]<br>
<b>Sent:</b> Thursday, October 04, 2018 3:06 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:etherlab-users@etherlab.org">
etherlab-users@etherlab.org</a><br>
<b>Subject:</b> [etherlab-users] How to check if all slaves have reached operational state?<br>
</font><br>
</div>
<div>
<div dir="ltr">Dear EtherLab users,
<div>After activating the master and starting frame exchange, is there a way to check whether all states have reached operational?</div>
<div><b>Additional info:</b></div>
<div>Currently, in <a href="https://github.com/mohse-n/L7N_EtherLab/blob/master/simple_test.c" target="_blank" moz-do-not-send="true">
my code</a>, I just send empty frames for long enough (trial and error) so that when I exit the loop, my slaves (servo drives) are in OP state.</div>
<div>I have tried checking the working counter in the loop and exiting from it after the domain's working counter becomes equal to our expected value. However, there is still a small delay after that happens and the second slave reaching operational state.</div>
<div>Best,</div>
<div>
<div>Mohsen</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
etherlab-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
(bb|[^b]{2})</pre>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH<br>
<br>
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.<br>
<br>
Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher<br>
Geschäftsführung: Prof. Dr. Bernd Rech (kommissarisch), Thomas Frederking<br>
<br>
Sitz Berlin, AG Charlottenburg, 89 HRB 5583<br>
<br>
Postadresse:<br>
Hahn-Meitner-Platz 1<br>
D-14109 Berlin<br>
<br>
https://www.helmholtz-berlin.de<br>
<br>
<a href="https://www.helmholtz-berlin.de/aktuell/pm/newsletter/">Abonnieren Sie unseren monatlichen Newsletter!</a><br>
<a href="https://www.helmholtz-berlin.de/aktuell/pm/newsletter/index_en.html">Subscribe to our monthly newsletter!</a><br>
</font>
</body>
</html>