<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=gb2312"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;
mso-fareast-language:ZH-CN;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>The ecrt_master_slave_config* family of functions are for defining what you are <b>expecting</b> to see on the network. You only get errors if you define something inconsistent with itself ¨C eg. if you say that device 0:5 has two different product ids. You do <b>not</b> get any errors at this point if you specify something that is different from what is actually on the network. (There are some scenarios, eg. hotplugging, where you want to define configurations for devices that aren¡¯t currently on the network.)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>To verify whether the network actually contains the slaves you¡¯re expecting, you either need to use the ecrt_master_get_slave function to read the current network structure, or periodically check ecrt_slave_config_state to see if the config has been attached to a network device successfully (this may not happen instantly).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> etherlab-users [mailto:etherlab-users-bounces@etherlab.org] <b>On Behalf Of </b>???<br><b>Sent:</b> Saturday, 21 November 2015 01:29<br><b>To:</b> etherlab-users <etherlab-users@etherlab.org><br><b>Subject:</b> [etherlab-users] puzzle about check slave configuration<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'>Hello, I have a new puzzle about slave configuration.<br>I know, when user app running, the master will check the given slave configuration to attach the real slave.<br>So I want to know if this function </span><i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:teal'>ecrt_master_slave_config(...) </span></i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black;background:white'>will finally call the </span><i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:teal;background:white'>ecrt_master_slave_config_err(...) </span></i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black;background:white'>function?<br>If so, when I used correct position but wrong vendor id as the slave configuration for input, there was nothing wrong return.<br>But I can see the </span><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'>mismatch occurred from this command </span><i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:teal'>ethercat config<br><span style='background:white'> 0:0 0x00000002/0x00000000 - - <br></span></span></i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black;background:white'>Is it</span><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'> indicating the checking does not do in this </span><i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:teal'>ecrt_master_slave_config(...) </span></i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'>function or not call the <br></span><i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:teal;background:white'>ecrt_master_slave_config_err(...) </span></i><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black;background:white'>function?</span><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'><br><i>Thanks for tips!</i><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'>--<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:black'>-------------------end---------------------<br>am strong, therefore I am.<br>--Yin(^-^)<o:p></o:p></span></p></div></div></div></div></div></body></html>