<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)"><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: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
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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;mso-fareast-language:EN-US'>Ah, ok. That setting actually modifies the SYNC1 cycle time (which is a parameter of ecrt_slave_config_dc) based on your actual cycle time – similarly you need to fill in the “real” cycle time values for those that have Factor=”1” in the XML.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;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;mso-fareast-language:EN-US'>The appropriate calculations are given in ETG2000, section Types -> DeviceType -> Dc -> OpMode. Your application will need to calculate this itself based on your target cycle interval; the master library doesn’t do this for you.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;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;mso-fareast-language:EN-US'>Also note that only the Cycle Times are written to the slaves, not the Shift Times. (The Sync0 shift time is however used to calculate the DC Start time.) For most slaves this is ok but for some you might need to explicitly configure 0x1C32/33 as well. You could try configuring it in TwinCAT and see what settings it uses for confirmation.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;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'> Philippe Leuba [mailto:pleuba@swissonline.ch] <br><b>Sent:</b> Tuesday, 14 March 2017 01:18<br><b>To:</b> Gavin Lambert <gavin.lambert@compacsort.com><br><b>Cc:</b> etherlab-users@etherlab.org<br><b>Subject:</b> Re: [etherlab-users] DC sync1 shift time<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hello,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I probably misunderstood something, but I take these inputs from the Beckhoff EL2522 XML file:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p style='margin:0cm;margin-bottom:.0001pt'><OpMode><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'> <Name>DC</Name><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'> <Desc>DC-Synchron</Desc><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'> <AssignActivate>#x700</AssignActivate><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'> <CycleTimeSync0 Factor="1">0</CycleTimeSync0><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'> <ShiftTimeSync0 Input="0">0</ShiftTimeSync0><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'> <CycleTimeSync1 Factor="1">0</CycleTimeSync1><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'> <ShiftTimeSync1>140000</ShiftTimeSync1><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'></OpMode><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><br><br><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>So I assumed that the sync1 shift time should be configured somewhere. <o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><u><br><br></u><o:p></o:p></p><div><p class=MsoNormal>Philippe Leuba<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>On 13 Mar 2017, at 00:01, Gavin Lambert <<a href="mailto:gavinl@compacsort.com">gavinl@compacsort.com</a>> wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>According to the documentation that I can find for the EL2522, it only uses<br>SYNC0, so I'm not sure what you're referring to here. (Granted I only<br>glanced through so I might have missed something.)<o:p></o:p></p></div></blockquote></div></div></body></html>