<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: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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@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:"Times New Roman","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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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">If the cstruct info below looks like what you expect then it is possibly a problem with the setup (ie the calls to
</span><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">ecrt_master_slave_config()</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">,
</span><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">ecrt_slave_config_pdos()</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> etc aren’t matching correctly). It might also be that it requires
some extra sdo settings on top of the standard ones.<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">When the ERROR state is set it should also set the reason in the Alarm Status Code register (register 0x134). use the command:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">ethercat reg_read -p0 -tuint16 0x134<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">Then refer to the following page to figure out what the code means:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://infosys.beckhoff.com/english.php?content=../content/1033/em37xx/1037010571.html&id=10272">http://infosys.beckhoff.com/english.php?content=../content/1033/em37xx/1037010571.html&id=10272</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">or
<a href="http://infosys.beckhoff.com/english.php?content=../content/1033/el6201/html/bt_ec_ethercat_al_statuscodes.htm&id">
http://infosys.beckhoff.com/english.php?content=../content/1033/el6201/html/bt_ec_ethercat_al_statuscodes.htm&id</a><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"><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">If you have another computer with windows you could install TwinCAT on it and see what TwinCAT’s configuration is to connect to 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>
<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">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Graeme.<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"><o:p> </o:p></span></p>
<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""> David Jiménez Mejías [mailto:david.jimenez@gtc.iac.es]
<br>
<b>Sent:</b> Thursday, 19 May 2016 1:20 a.m.<br>
<b>To:</b> Graeme Foot; etherlab-users@etherlab.org<br>
<b>Subject:</b> RE: [etherlab-users] CX CPU as Master Linux Slave<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Hi,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">I'm not using a CXxxxx PC as Master, it is a x64 Real Time PC with Priest Distro. It has a ESD NEt-Card compatible with EtherCAT.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">I just configured the data PDOs that I would like to expose vía the EtherCAT Slave port of the CX8010.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">The cstruct works ok its reply is:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">/* Master 0, Slave 0, "CX8010 EtherCAT slave"</span></em><i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><br>
<em><span style="font-family:"Tahoma","sans-serif""> * Vendor ID: 0x00000002</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> * Product code: 0x1f4a6032</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> * Revision number: 0x00110000</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> */</span></em></span></i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">ec_pdo_entry_info_t slave_0_pdo_entries[] = {</span></em><i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x7000, 0x01, 1}, /* Relay 1 signal*/</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x0000, 0x00, 7}, /* Gap */</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x7000, 0x02, 1}, /* Relay 2 Signal*/</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x0000, 0x00, 7}, /* Gap */</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x6000, 0x01, 16},/*Temp1*/</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x6000, 0x02, 16}, /*Temp2*/</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif"">};</span></em></span></i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">ec_pdo_info_t slave_0_pdos[] = {</span></em><i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x1600, 4, slave_0_pdo_entries + 0}, /* Output Mapping */</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0x1a00, 2, slave_0_pdo_entries + 4}, /* Input Mapping */</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif"">};</span></em></span></i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">ec_sync_info_t slave_0_syncs[] = {</span></em><i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {2, EC_DIR_OUTPUT, 1, slave_0_pdos + 0, EC_WD_ENABLE},</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {3, EC_DIR_INPUT, 1, slave_0_pdos + 1, EC_WD_DISABLE},</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif""> {0xff}</span></em><br>
<em><span style="font-family:"Tahoma","sans-serif"">};</span></em></span></i><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">and the slave reply:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">0 0:0 PREOP E CX8010 EtherCAT slave</span></em><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">I don`t know if this show you something more ....<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Thank you very much<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Best regards<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">David Jiménez Mejías </span></strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">-----Original Message-----<br>
From: Graeme Foot <<a href="mailto:Graeme.Foot@touchcut.com">Graeme.Foot@touchcut.com</a>><br>
To: David Jiménez Mejías <<a href="mailto:david.jimenez@gtc.iac.es">david.jimenez@gtc.iac.es</a>>, "<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>" <<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>><br>
Date: Sun, 15 May 2016 22:19:19 +0000<br>
Subject: RE: [etherlab-users] CX CPU as Master Linux Slave<br>
<o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">What type of computer are you using as the Linux master? If it is a Beckhoff CXxxxx computer via the EBus module it will need the CCAT (or similar) network
card driver. However, it sounds like your Linux master is not a CXxxxx computer and you already have the EtherCAT networking running.
</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I have not used the CX8010 so can’t offer too much advice but from what I understand it ring fences all of the IO on its EBus with its own logic to control
it. You then have to choose what IO (or interface) you want to expose via its slave interface that the Linux EtherCAT master will access.
</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">What does the ethercat cstruct command return?</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Graeme.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> David Jiménez Mejías [<a href="mailto:david.jimenez@gtc.iac.es">mailto:david.jimenez@gtc.iac.es</a>]<br>
<b>Sent:</b> Friday, 13 May 2016 11:12 p.m.<br>
<b>To:</b> Graeme Foot; <a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<b>Subject:</b> RE: [etherlab-users] CX CPU as Master Linux Slave</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Hi Graeme,<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">thanks for your answer.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">I'm trying to use a CX8010 as TwinCAT Master of its own net. Over it is a Linux PC running the Master Linux 1.5.2. We would like to have the CX8010 as slave from
the Master Linux sharing In/Outs PDOs.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">By the moment I keep running the CX8010 as normal, with the slave pdo configuration just done.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">From the Master Linux I see the slave at PREOP (with Error), with this dmesg outputs:<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">[2061710.482018] EtherCAT 0: 0 slave(s) responding on main device.<br>
[2061710.482020] EtherCAT 0: Stopping EoE thread.<br>
[2061710.482038] EtherCAT 0: EoE thread exited.<br>
[2061710.499211] EtherCAT 0: 1 slave(s) responding on main device.<br>
[2061710.499214] EtherCAT 0: Slave states on main device: PREOP.<br>
[2061710.499718] EtherCAT 0: Scanning bus.<br>
[2061710.640237] EtherCAT 0: Bus scanning completed in 141 ms.<br>
[2061710.640240] EtherCAT 0: Using slave 0 as DC reference clock.<br>
[2061710.640242] EtherCAT 0: Starting EoE thread.<br>
[2061710.655820] IPv6: ADDRCONF(NETDEV_UP): eoe0s0: link is not ready<br>
[2061710.666862] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).<br>
[2061710.667536] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".<br>
[2061710.670956] EtherCAT 0-0: Acknowledged state PREOP.<br>
[2061713.541497] EtherCAT WARNING 0: 1 datagram TIMED OUT!<br>
[2061713.664881] EtherCAT WARNING 0-0: CoE Emergency Request received:<br>
Error code 0xA000, Error register 0x02, data:<br>
[2061713.664885] EtherCAT DEBUG: 0E 04 00 04 00<br>
[2061713.848637] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:01!<br>
[2061713.848641] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.852689] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:02!<br>
[2061713.852693] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.856649] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:03!<br>
[2061713.856653] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.860720] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:04!<br>
[2061713.860724] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.864652] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:05!<br>
[2061713.864655] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.868724] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:06!<br>
[2061713.868728] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.872634] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:07!<br>
[2061713.872645] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.876712] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:08!<br>
[2061713.876716] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.880657] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:09!<br>
[2061713.880660] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.884698] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0A!<br>
[2061713.884701] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.888636] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0B!<br>
[2061713.888640] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.892574] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0C!<br>
[2061713.892577] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.896793] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0D!<br>
[2061713.896797] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061713.900671] EtherCAT WARNING 0-0: SDO information error response while fetching SDO entry 0xF100:0E!<br>
[2061713.900674] EtherCAT ERROR 0-0: SDO abort message 0x06090011: "Subindex does not exist".<br>
[2061716.623870] EtherCAT WARNING 0: 1 datagram TIMED OUT!<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Some months a go I get to configure correctly typical cards with the EK1100 bus coupler. But the way to proceed looks diferent.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">About the CCAT driver ... i just compile all without this enable, it isn't on the pdf manual. Then could be help us recompiling with that flag on?<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Thank you very much<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">King regards<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">David Jiménez Mejías</span></strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">
<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">-----Original Message-----<br>
From: Graeme Foot <<a href="mailto:Graeme.Foot@touchcut.com">Graeme.Foot@touchcut.com</a>><br>
To: David Jiménez Mejías <<a href="mailto:david.jimenez@gtc.iac.es">david.jimenez@gtc.iac.es</a>>, "<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>" <<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>><br>
Date: Tue, 10 May 2016 22:28:49 +0000<br>
Subject: RE: [etherlab-users] CX CPU as Master Linux Slave<br>
<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">We use a Beckhoff CX2020 with a CX2100-0004 power module with EBus. What do you mean by slave CPU? Are you referring to the CX2100 module?</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">What version of the master are you using? There is a CCAT driver written by Patrick Bruenn in the “stable-1.5” branch, but it is not in the “default” branch.
Are you using this? If not, to use it you will need to build it with the master with the ENABLE_CCAT config flag (I think).</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I don’t use this driver as I wrote my own before it was available but I assume you use it in the same fashion as any of the other network card drivers, where
you load the network driver modules you want to load (eg with modprobe). If you load the CCAT module first then the master should use it by preference (when you use the generic MAC address of FF:FF:FF:FF:FF:FF) rather than needing to specify a fixed MAC address.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If you are not using the CCAT driver above, are you writing your own?</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I have attached a patch for the driver I use. It is written for EtherCat master revision 2526 (stable-1.5) and Linux Kernel 2.6.32. It may be useful as a
reference.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Graeme.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div>
<div>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> etherlab-users [<a href="mailto:etherlab-users-bounces@etherlab.org">mailto:etherlab-users-bounces@etherlab.org</a>]
<b>On Behalf Of </b>David Jiménez Mejías<br>
<b>Sent:</b> Wednesday, 11 May 2016 1:24 a.m.<br>
<b>To:</b> <a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<b>Subject:</b> [etherlab-users] CX CPU as Master Linux Slave</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Hi everyone!<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">I would like to share some data from a Beckhoff CPU, CX line, by the slave EtherCAT Port. Using a EtherLab Master Linux.<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Is there someone with some experience on that issue?<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">I configure the TxPDO and RxPDO in the Slave CPU, and the only way that I get the Linux Master reads its PDOs is with the slave CPU on config mode. I'm studing
this procedure from zero, then, if there is someone with some informatuion about it I will so grateful.<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Thanks in advance<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">David Jiménez Mejías</span></strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><br>
----------<br>
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de Datos, acceda a
<a href="http://www.gtc.iac.es/gtc/legal_es.php">http://www.gtc.iac.es/gtc/legal_es.php</a><br>
WARNING: For more information on privacy and fulfilment of the Law concerning the Protection of Data, consult
<a href="http://www.gtc.iac.es/gtc/legal_es.php">http://www.gtc.iac.es/gtc/legal_es.php</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><br>
----------<br>
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de Datos, acceda a
<a href="http://www.gtc.iac.es/gtc/legal_es.php">http://www.gtc.iac.es/gtc/legal_es.php</a><br>
WARNING: For more information on privacy and fulfilment of the Law concerning the Protection of Data, consult
<a href="http://www.gtc.iac.es/gtc/legal_es.php">http://www.gtc.iac.es/gtc/legal_es.php</a><o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
----------<br>
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de Datos, acceda a
<a href="http://www.gtc.iac.es/gtc/legal_es.php">http://www.gtc.iac.es/gtc/legal_es.php</a><br>
WARNING: For more information on privacy and fulfilment of the Law concerning the Protection of Data, consult
<a href="http://www.gtc.iac.es/gtc/legal_es.php">http://www.gtc.iac.es/gtc/legal_es.php</a><o:p></o:p></p>
</div>
</body>
</html>