<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (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]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@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";}
h4
{margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:86.4pt;
text-indent:-32.4pt;
page-break-after:avoid;
mso-list:l0 level4 lfo1;
font-size:14.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.Quelltext, li.Quelltext, div.Quelltext
{margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Courier New";}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:1502431396;
mso-list-template-ids:-915227782;}
@list l0:level1
{mso-level-tab-stop:18.0pt;
mso-level-number-position:left;
margin-left:18.0pt;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-text:"%1\.%2\.";
mso-level-tab-stop:54.0pt;
mso-level-number-position:left;
margin-left:39.6pt;
text-indent:-21.6pt;}
@list l0:level3
{mso-level-text:"%1\.%2\.%3\.";
mso-level-tab-stop:90.0pt;
mso-level-number-position:left;
margin-left:61.2pt;
text-indent:-25.2pt;}
@list l0:level4
{mso-level-style-link:"Überschrift 4";
mso-level-text:"%1\.%2\.%3\.%4\.";
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
margin-left:86.4pt;
text-indent:-32.4pt;}
@list l0:level5
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.";
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
margin-left:111.6pt;
text-indent:-39.6pt;}
@list l0:level6
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.";
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
margin-left:136.8pt;
text-indent:-46.8pt;}
@list l0:level7
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.";
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
margin-left:162.0pt;
text-indent:-54.0pt;}
@list l0:level8
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.";
mso-level-tab-stop:234.0pt;
mso-level-number-position:left;
margin-left:187.2pt;
text-indent:-61.2pt;}
@list l0:level9
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9\.";
mso-level-tab-stop:270.0pt;
mso-level-number-position:left;
margin-left:216.0pt;
text-indent:-72.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</head>
<body lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ok i got it. Initial question is solved. </span></font><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>Indeed, reading debug output of the igh-master
gave me e.g. a 0x26. By capturing the packets with wireshark, the syncman
outputs are in this case 0x00010026 what just means, that’s ok so far as
long as the 16<sup>th</sup> bit just means enabling. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>On analysing these flags,
igh-master surely wants to run a triple-buffer-mode by default, leading the
slave does not recognise it surely. But this a another case. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Thanks for your feedback!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>dk<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Jeroen Van den
Keybus [mailto:jeroen.vandenkeybus@gmail.com] <br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 27. November
2013 11:06<br>
<b><span style='font-weight:bold'>An:</span></b> <st1:PersonName w:st="on">Koch
Daniel</st1:PersonName><br>
<b><span style='font-weight:bold'>Cc:</span></b> etherlab-dev@etherlab.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [etherlab-dev]
buffered mode and triple-buffer</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<div>
<div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I am NOT a twincat-professional, <o:p></o:p></span></font></p>
</blockquote>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Me neither, but I believe that by default the IgH master copies the SM
config stored in the SII to the slave. That includes the all-important control
word (the Data field in the Configurator dialog e.g. 0x00010026) that also
defines the buffer mode. So I'd think you must program the SII EEPROM using the
configurator. There is one catch: I see from the source (master/sync.c) that de
direction and watchdog bits get overwritten by what you specify in the
ec_sync_info_t struct, so be sure to set these right. Also, I think that the
physical address and offset are derived from the PDOs you try to map into them.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Increase debugging using 'ethercat debug 1', try to run and look for
the SM: line in the dmesg log to tell you what control, address and length
values were written to the SM. It should match the ones you see in the
configurator.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></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'>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>but if I run this
configured twincat-project (see screenshot_drive_tlgs.png &
screenshot_master_tlgs.png).Depending on analysing the ethercat-configurations
runs fine with just the expected working counter changes with twincat. It does
some (IMHO) weird sync-management with triple-buffers (see
screen_shot_drive_tripple_buffer.png in the attachments). Is there a way to
copy this behaviour with our Ethercat-Master?<br>
<br>
When I have a look in the source-code of the master, in theory, I could change
the fmmu-configuration to ask these logical-adresses as the twincat-project
does, but this is not the exact point. I do not see how I could copy the
behaviour having the slave ordered using "triple-buffers" (what ever
this exactly means).<o:p></o:p></span></font></p>
</blockquote>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>The FMMU config is assembled during PDO configuration. No need to
enforce virtual addresses. The only important thing to look for here is that
the same physical addresses are used. They have defaults in the SII EEPROM as
well, but you overwrite them with ec_pdo_info_t. I think passing NULL for these
makes the master use the defaults. Some doc is in include/ecrt.h. Same as
above: check in dmesg at FMMU:.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></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'>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Btw: Ethercat itself
seperates it's sync-management into buffer- and mailbox-mode right? Am I right,
If I say, the default behaviour configuring a syncmanager for, -let's say -just
exchanging pdo's, is buffer mode?<o:p></o:p></span></font></p>
</blockquote>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>The default behaviour for PDOs should be 3-buffer mode (transparant,
coherent access to a memory area) if you can live with duplicated or skipped
frames.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></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'>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Has anybody else
experienced this problem or does anybody have a idea what I could do?<o:p></o:p></span></font></p>
</blockquote>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I'm still in the steep part of the learning curve, so I may have said
wrong things here. Since no one answered you for about a week, I thought to try
and help you out with what I learned so far.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>J.<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>