<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 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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;}
p.gmail-m-733072272616881737msolistparagraph, li.gmail-m-733072272616881737msolistparagraph, div.gmail-m-733072272616881737msolistparagraph
{mso-style-name:gmail-m_-733072272616881737msolistparagraph;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:36515246;
mso-list-template-ids:1657806780;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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">I hope that pointer constant was the result of some output script and is not literally present in your code like that.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As for whether that’s ok, it depends on the slave. Configurable slaves (with CoE) often do support that kind of reconfiguration, but simple slaves do not – the most you can do is disable the watchdog.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If there’s a value you’re not interested in, you can simply not register any of the values from that SM in your domain while still specifying it in the syncs array and this will still omit it from the domain packet.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Although some slaves won’t like that either; they may want to receive a heartbeat or other output on each cycle. Often even if there isn’t actually interesting data the slave might still use the act of receiving output data to trigger
some internal processing, so it’s possible that the inputs won’t update if you don’t send it any outputs, for example.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<P
style="FONT-SIZE: 100%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"><STRONG>Gavin Lambert<BR></STRONG>Senior Software Developer<BR></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<TABLE>
<TBODY
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"> </TBODY></TABLE></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><IMG border=0
src="cid:logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png"><BR><A
href="http://www.compacsort.com"><IMG border=0 alt=TOMRA
src="cid:compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png" width=33
height=37></A> <A href="https://www.facebook.com/Compacsort"><IMG border=0
alt=Facebook src="cid:facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png" width=35
height=37></A> <A
href="https://www.linkedin.com/company/compac-sorting-equipment/"><IMG border=0
alt=Linkedin src="cid:linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png" width=35
height=37></A> <A href="https://vimeo.com/compacsort"><IMG border=0 alt=Youtube
src="cid:youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png" width=37 height=37></A>
<A href="https://twitter.com/compacsort"><IMG border=0 alt=twitter
src="cid:twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png" width=33 height=37></A>
<A href="https://www.instagram.com/compacsort/"><IMG border=0 alt=instagram
src="cid:insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png" width=33 height=37></A>
</P>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"><B>COMPAC
SORTING EQUIPMENT LTD</B> | 4 Henderson Pl | Onehunga | Auckland 1061 | New
Zealand<BR>Switchboard: +64 96 34 00 88 | <A
href="http://www.tomra.com">tomra.com</A> </P>
<TABLE
style="BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-COLLAPSE: collapse; BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none"
cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR>
<TD
style="BORDER-LEFT-STYLE: none; BORDER-TOP: #595959 1pt solid; BORDER-BOTTOM: #595959 1pt solid; BORDER-RIGHT-STYLE: none"
vAlign=top>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)">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.
</P></TD></TR></TBODY></TABLE>
<P
style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: rgb(89,89,89)"></P><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> William Zumwalt<br>
<b>Sent:</b> Friday, 5 June 2020 04:48<br>
<b>Cc:</b> etherlab-users@etherlab.org<br>
<b>Subject:</b> Re: [etherlab-users] Invalid output configuration<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">My config matches output of 'ethercat cstruct' with one difference. Is it normally ok to zero out receive pdo's if I don't plan to using those? I've written an empty SM2 in place of what 'ethercat cstruct' populates with defaults. My syncs
appear as:<br>
<br>
ec_sync_info_t slave_0_syncs[] = {<br>
{2, EC_DIR_OUTPUT, 0, 0, EC_WD_DISABLE},<br>
{3, EC_DIR_INPUT, 1, 0x8dd315021341, EC_WD_DISABLE},<br>
{255, EC_DIR_INVALID, 0, 0, EC_WD_DEFAULT},<br>
};<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, Jun 3, 2020 at 7:26 PM Gavin Lambert <<a href="mailto:gavin.lambert@tomra.com">gavin.lambert@tomra.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Typically, yes.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">What you should try is this:<o:p></o:p></p>
<ol start="1" type="1">
<li class="gmail-m-733072272616881737msolistparagraph" style="mso-list:l0 level1 lfo1">
Ensure that your master app is not running.<o:p></o:p></li><li class="gmail-m-733072272616881737msolistparagraph" style="mso-list:l0 level1 lfo1">
Physically reboot the slave (eg. power cycle).<o:p></o:p></li><li class="gmail-m-733072272616881737msolistparagraph" style="mso-list:l0 level1 lfo1">
Run “ethercat cstruct -p0” (substitute the position of your actual slave if different)<o:p></o:p></li><li class="gmail-m-733072272616881737msolistparagraph" style="mso-list:l0 level1 lfo1">
Compare the output to the code in your master app.<o:p></o:p></li></ol>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">This will tell you the default PDO layout of the slave, which is typically what you want to use in your master app – unless you can prove otherwise, assume anything different in
your code is a bug.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">In some cases you may want to use some non-default PDOs, and there are ways to get the cstruct output for that as well, but typically slaves will only support a limited set of alternative
configurations.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p><strong><span style="font-family:"Calibri",sans-serif;color:#595959">Gavin Lambert</span></strong><b><span style="color:#595959"><br>
</span></b><span style="color:#595959">Senior Software Developer<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="360" height="102" style="width:3.75in;height:1.0625in" id="Picture_x0020_1" src="cid:image001.png@01D63B1C.5245FD90"></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.compacsort.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C1932dd163c9f4bcf4aac08d808a70f35%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637268860900345353&sdata=DAdOlTFS%2BPk0xmce1%2FT%2FNaaLLfyTEUjsrumWjYMWRks%3D&reserved=0" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="Picture_x0020_2" src="cid:image002.png@01D63B1C.5245FD90" alt="TOMRA"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FCompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C1932dd163c9f4bcf4aac08d808a70f35%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637268860900345353&sdata=igSlYLeqoy3d6nX032aicOm4rTJv6wJ6PuyE6f%2Bgg%2Fo%3D&reserved=0" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="35" height="37" style="width:.3645in;height:.3854in" id="Picture_x0020_3" src="cid:image003.png@01D63B1C.5245FD90" alt="Facebook"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fcompac-sorting-equipment%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C1932dd163c9f4bcf4aac08d808a70f35%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637268860900355348&sdata=3HSP1x%2B6DZv1UaUOPCko9Mn6R7RUY8kuZhY3IbSTyG0%3D&reserved=0" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="35" height="37" style="width:.3645in;height:.3854in" id="Picture_x0020_4" src="cid:image004.png@01D63B1C.5245FD90" alt="Linkedin"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C1932dd163c9f4bcf4aac08d808a70f35%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637268860900355348&sdata=LzwYNQ%2BDit3f1j6GGtU8wt7IGzb6z8gGDCE8oC5Lczc%3D&reserved=0" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="37" height="37" style="width:.3854in;height:.3854in" id="Picture_x0020_5" src="cid:image005.png@01D63B1C.5245FD90" alt="Youtube"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C1932dd163c9f4bcf4aac08d808a70f35%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637268860900365342&sdata=%2FMT9lfPwFG%2BaG9ClE3dCmTQ9L99DgM6Uw9gROtU9DGM%3D&reserved=0" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="Picture_x0020_6" src="cid:image006.png@01D63B1C.5245FD90" alt="twitter"></span></a><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fcompacsort%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C1932dd163c9f4bcf4aac08d808a70f35%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637268860900365342&sdata=N9CT%2BNQ3LoI0yH1KCIp1YWi%2FTsGc2kuTrBhZTKWUzX4%3D&reserved=0" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;text-decoration:none"><img border="0" width="33" height="37" style="width:.3437in;height:.3854in" id="Picture_x0020_7" src="cid:image007.png@01D63B1C.5245FD90" alt="instagram"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><b><span style="font-size:8.5pt;color:#595959">COMPAC SORTING EQUIPMENT LTD</span></b><span style="font-size:8.5pt;color:#595959"> | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand<br>
Switchboard: +64 96 34 00 88 | <a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.tomra.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C1932dd163c9f4bcf4aac08d808a70f35%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637268860900375333&sdata=Xu4iw1CGAyHfKYTvG%2BOtvou06pyApd0j27cQkJChuvY%3D&reserved=0" target="_blank">
tomra.com</a> <o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="border-top:solid #595959 1.0pt;border-left:none;border-bottom:solid #595959 1.0pt;border-right:none;padding:0cm 0cm 0cm 0cm">
<p><span style="font-size:8.5pt;color:#595959">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. <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;border-color:currentcolor currentcolor">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> William Zumwalt<br>
<b>Sent:</b> Thursday, 4 June 2020 12:15<br>
<b>To:</b> <a href="mailto:etherlab-users@etherlab.org" target="_blank">etherlab-users@etherlab.org</a><br>
<b>Subject:</b> [etherlab-users] Invalid output configuration<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">I getting "Invalid output configuration" when starting up a slave. Can anyone help narrow this down, to what this might refer to?<br>
<br>
[ 4101.757740] EtherCAT DEBUG 0-main-0: PREOP -> PREOP + ERROR.<br>
[ 4101.757751] EtherCAT ERROR 0-main-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).<br>
[ 4101.765760] EtherCAT 0: Slave states on main device: PREOP + ERROR.<br>
[ 4101.765769] EtherCAT ERROR 0-main-0: AL status message 0x001D: "Invalid output configuration".<br>
<br>
Could this be configuration issue with the sync EC_DIR_OUTPUT?<o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>