<div dir="ltr">Both Devices are exactly the same. I am moving the Drive+Motor setup physically to his desk. For the code, i have attached the entire code in another reply.<div><br></div><div>ethercat slaves -v outputs the same data in both systems and both are PREOP <a class="gmail_plusreply" id="plusReplyChip-1">+</a></div><div><br></div><div>Update: all package dependencies to build the master are same along with version. I was initially assuming (for the sake of ruling out the hypothesis) that some package dependency might have gotten updated since i last built the master in my system. However, all package dependencies are the same.</div><div><br></div><div>Also, i now tried the Etherlab gitlab stable 1.5 branch in his PC with --disable-eoe option and it works (sparring a few watchdog timeout errors). Why is it not working for the stable/vectioneer branch?<br><a class="gmail_plusreply"><br></a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 8, 2024 at 6:39 AM Gavin Lambert <<a href="mailto:gavin.lambert@tomra.com">gavin.lambert@tomra.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg3627189278571375177">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_3627189278571375177WordSection1">
<p class="MsoNormal">Is your colleague using exactly the same device as you are (i.e. you are moving your device to their desk) or are they using a different but theoretically identical device? If one or both devices have previously been used with a different
master then they may have different default configurations, or you may be relying on a configured address that is not the default device state. Or if the devices are not identical (they might be the same model but different revisions) then they might require
or default to different PDO layouts.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Ensure that you have called <code><span style="font-size:10pt">ecrt_slave_config_pdos</span></code> or equivalent in addition to
<code><span style="font-size:10pt">ecrt_domain_reg_pdo_entry_list</span></code> or equivalent.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Inspect the output of <span style="font-size:10pt;font-family:"Courier New"">
ethercat slaves -v</span> on both systems <b>before</b> attempting to run your application (reboot the device first if you have previously attempted to run your app).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<span style="font-family:Gotham,Calibri,"sans-serif";color:rgb(35,31,32)"><strong>Gavin Lambert<br></strong>
<br>
Software Engineer<br>
<br>
</span><br>
<br><img style="height: 45px; width: 192px;" src="cid:ii_18ebc0a31499fb34c071" width="192" height="45" border="0">
<br>
<a href="https://www.facebook.com/TOMRA.Food/" target="_blank"><img alt="tomra facebook" src="cid:ii_18ebc0a31494244f7ca2" height="30"></a> <a href="https://www.linkedin.com/company/tomra-food/" target="_blank"><img alt="tomra linkedin" src="cid:ii_18ebc0a31494c933db13" height="30"></a> <a href="https://twitter.com/TOMRAFood" target="_blank"><img alt="tomra twitter" src="cid:ii_18ebc0a3149dee978ed4" height="30"></a> <a href="https://www.youtube.com/playlist?list=PLDD3B1A7BAE919EC6" target="_blank"><img alt="tomra youtube" src="cid:ii_18ebc0a3149c2ca7d1d5" height="30"></a> <a href="https://www.instagram.com/tomrafood/" target="_blank"><img alt="tomra instragram" src="cid:ii_18ebc0a314967135026" height="30"></a><br>
<span style="font-size:75%;font-family:Calibri,Candara,Segoe,Optima,Arial,sans-serif;color:rgb(110,129,134)"> <b>Compac Technologies Ltd</b>
| 4 Henderson Place | PO Box 13 516 | Onehunga 1061 | New Zealand </span><br>
<p style="font-size:10pt;margin-bottom:5pt;font-family:Arial;margin-top:0px"></p>
<span style="font-size:75%;font-family:Calibri,Candara,Segoe,Optima,Arial,sans-serif;color:rgb(110,129,134)"> Phone: +64 96 34 00 88 | <a href="https://www.compacsort.com" target="_blank">https://www.compacsort.com</a></span><br>
<span style="font-size:60%;font-family:Gotham,Calibri,"sans-serif";color:rgb(110,129,134)">The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed. If you have received this communication in error, please notify the sender and delete the communication. </span><br>
<span style="font-size:60%;font-family:Gotham,Calibri,"sans-serif";width:75%;color:rgb(110,129,134)">
</span><div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>From:</b> Pranay Tummalapalli<br>
<b>Sent:</b> Friday, April 5, 2024 8:07 PM<br>
<b>To:</b> <a href="mailto:etherlab-users@etherlab.org" target="_blank">etherlab-users@etherlab.org</a><br>
<b>Subject:</b> [Etherlab-users] Slave shows INVALID PDO MAPPING even after giving PDO mapping<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="display:none"><u></u> <u></u></span></p>
<div>
<div>
<p class="m_3627189278571375177gmail-zw-paragraph" style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm">
<span style="font-size:12pt;font-family:Roboto;color:black">I have a fully functional and tested setup in my system for Ethercat running a DC Motor with a single EtherCAT drive. Below are my system configurations:</span><u></u><u></u></p>
<p class="m_3627189278571375177gmail-zw-paragraph" style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm">
<span style="font-size:12pt;font-family:Roboto;color:black">Master source: vectioneer/stable branch</span><u></u><u></u></p>
<p class="m_3627189278571375177gmail-zw-paragraph" style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm">
<span style="font-size:12pt;font-family:Roboto;color:black">OS: Ubuntu 22.04</span><u></u><u></u></p>
<p class="m_3627189278571375177gmail-zw-paragraph" style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm">
<span style="font-size:12pt;font-family:Roboto;color:black">Kernel: 5.15.0-97-generic</span><u></u><u></u></p>
<p class="m_3627189278571375177gmail-zw-paragraph" style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm">
<span style="font-size:12pt;font-family:Roboto;color:black">I am using the systemd ethercat service. And I have a custom folder under the examples where I have all source and exec files for my project. I have added the folder in examples/Makefile.am and added
the directory to <a href="http://configure.ac" target="_blank">configure.ac</a>. In my system it build well and everything works. Motor runs, all EtherCAT functionalities work and motor goes to setpoint position in OP.</span><u></u><u></u></p>
<p class="m_3627189278571375177gmail-zw-paragraph" style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm">
<span style="font-size:12pt;font-family:Roboto;color:black">When I try to run the same setup in my colleague's system with the same configuration as my system including master source and kernel version, the same drive remains in PREOP. When I try to run the
same script as my system, the drive goes to PREOP+ERR and system logs display INVALID PDO MAPPING, SLAVE REFUSED TO CHANGE STATE with error 0x0024.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Roboto;color:black">What a I missing in this?</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div>