<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am using a Beckhoff 1100 coupler, EL3068 Analog Module, and a EL2809 Digital Output Module. I have the master running and my application can create the master, create a domain, get all slave configurations, and send the slaves its sync structures from the ethercat cstruct tool output. The issue lies in sending the domain the pdo entry list.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So a flow chart of what I am trying to do is as follows:<o:p></o:p></p><p class=MsoNormal>Create Master SUCCEEDS<o:p></o:p></p><p class=MsoNormal>Create Domain SUCCEEDS<o:p></o:p></p><p class=MsoNormal>Get Slave Count / Slave Information SUCCEEDS (3 slaves, all information received)<o:p></o:p></p><p class=MsoNormal>Get Slave Configurations SUCCEEDS<o:p></o:p></p><p class=MsoNormal>Send Sync Structures SUCCEEDS<o:p></o:p></p><p class=MsoNormal>Register PDO Entry List In Domain FAILS<o:p></o:p></p><p class=MsoNormal>Activate Master …<o:p></o:p></p><p class=MsoNormal>Get Domain Process Data …<o:p></o:p></p><p class=MsoNormal>Start Task For Reading Data Registers …<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is the code that I am using to send the entry list (simplified from the actual code I am using since I am reading a ton of other registers, but I tried this code as well and it does indeed flag the same error):<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>***********************************************************************<o:p></o:p></p><p class=MsoNormal>….<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>// create structure for entry points<o:p></o:p></p><p class=MsoNormal>ec_pdo_entry_reg_t domain_regs[2];<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>// loop through and generate all entry points<o:p></o:p></p><p class=MsoNormal>domain_regs[0] = { alias, position, product_id, vendor_id, 0x7000, 0x01 , EL2809_digout_offset[0], NULL };<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>// terminate last point with empty structure elements of 0’s<o:p></o:p></p><p class=MsoNormal>domain_regs[1] = { 0, 0, 0, 0, 0, 0, 0, 0 };<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>// I actually have 32 entry points in the full code snipet, 16 for the analog module, and 16 for the digital outputs<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>// register the all devices in the domain<o:p></o:p></p><p class=MsoNormal>if (ecrt_domain_reg_pdo_entry_list(domain, domain_regs) != 0) {<o:p></o:p></p><p class=MsoNormal> return Init_Ethercat_Domain_Register_Failed;<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>***********************************************************************<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The error I am getting when I go to send the entry list is as follows:<o:p></o:p></p><p class=MsoNormal><i>Failed to create slave config: No such file or directory<o:p></o:p></i></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am not sure what this means…since I have successfully received the slave configurations before this code is executed…I would think it would flag a domain PDO error when that fails?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any help would be great! Thank you! <span style='font-family:Wingdings'>J</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Derrill Vezina<o:p></o:p></p><p class=MsoNormal>Electrical Engineer<o:p></o:p></p><p class=MsoNormal>Caron Engineering Inc.<o:p></o:p></p><p class=MsoNormal><a href="mailto:dvezina@caron-eng.com"><span style='color:blue'>dvezina@caron-eng.com</span></a><o:p></o:p></p><p class=MsoNormal>Office: (207)646-6071 ext. 360<o:p></o:p></p><p class=MsoNormal>Direct: (207)641-6839<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>