<div dir="ltr"><div><div><div><span style="font-family:courier new,monospace">Hello ronaldo,<br><br></span></div><div><span style="font-family:courier new,monospace">@@ -73,7 +73,7 @@<br>ec_sync_info_t slave_1_syncs[] = {
<br>    {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},
<br>    {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},
<br>    {2, EC_DIR_OUTPUT, 2, slave_1_pdos + 0, EC_WD_DISABLE},
<br>-   {3, EC_DIR_INPUT, 1, slave_1_pdos + 1, EC_WD_DISABLE},
<br>+   {3, EC_DIR_INPUT, 1, slave_1_pdos + 2, EC_WD_DISABLE},
<br>    {0xff}
<br>};<br><br></span></div><span style="font-family:courier new,monospace">To avoid such a mistake, it would be better to seperate the rxpdo and txpdo, using slave_1_rxpdos[] and slave_1_txpdos[] instead of only one </span><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">slave_1_pdos[]</span><br>

<br></span></div><span style="font-family:courier new,monospace">Regards,<br></span></div><span style="font-family:courier new,monospace">Jun<br></span><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 7:13 PM,  <span dir="ltr"><<a href="mailto:ronaldo.mercado@diamond.ac.uk" target="_blank">ronaldo.mercado@diamond.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am struggling with the control the constant current output slave EL2595.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The unit provides a few PDOs by default, to control the on/off<u></u><u></u></p>
<p class="MsoNormal">state. I wish to control the current output, (I believe at address 0x7000:11<u></u><u></u></p>
<p class="MsoNormal">"Output Current"). This should allow a slider to control the dimming of<u></u><u></u></p>
<p class="MsoNormal">an LED. This is not on the default PDO set.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I know it's supported because it was demonstrated with TwinCAT. TwinCAT<u></u><u></u></p>
<p class="MsoNormal">adds it to sync manager 2 with a check box.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My attempt with the attached c source program fails to set the slave<u></u><u></u></p>
<p class="MsoNormal">in the "OP" state, and the messages report "Invalid input<u></u><u></u></p>
<p class="MsoNormal">configuration".<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Could you suggest what to do differently?<u></u><u></u></p>
<p class="MsoNormal">How do I add the PDO for the current control to the slave?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Ronaldo<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div><span class="HOEnZb"><font color="#888888">

<br><p align="justify"> </p>

<p align="justify">--  </p>

<p align="justify">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br>

Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. <br>Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br>

Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br> </p>


<br></font></span></div>

<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" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jun Yuan<br>[Aussprache: Djün Üän]<br><br>Robotics Technology Leaders GmbH<br>Am Loferfeld 58, D-81249 München<br>Tel: +49 89 189 0465 24<br>Fax: +49 89 189 0465 11<br>

mailto: <a href="mailto:j.yuan@rtleaders.com" target="_blank">j.yuan@rtleaders.com</a><br><br>Umlautregel in der chinesischen Lautschrift Pinyin: Nach den Anlauten y, j, q, und x wird u als ü ausgesprochen, z.B. yu => ü,  ju => dschü,  qu => tschü,  xu => schü.
</div>