<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/</id><updated>2020-02-27T17:47:13.390000Z</updated><subtitle>Recent posts to Ethercat FieldBus Lost Synchronicity</subtitle><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#3796" rel="alternate"/><published>2020-02-27T17:47:13.390000Z</published><updated>2020-02-27T17:47:13.390000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com58e0fa18fdfd1d8ce73e2a52f72d4558ce1fa6e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
A rt_preempt patched Linux kernel is mandatory and 1:1 connected ethercat slaves...&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#1de3" rel="alternate"/><published>2020-02-27T17:47:12.356000Z</published><updated>2020-02-27T17:47:12.356000Z</updated><author><name>cookiy</name><uri>https://forge.codesys.com/u/cookiy/</uri></author><id>https://forge.codesys.com4c816914bdbb05ce115ba9311463ec7fe12696a3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear sir:&lt;br/&gt;
I have the same question with you. I also use a codesys with 2 hours and now when I set the sync to 4ms and offset 20%, it gets a error of fieldbus lost synchronicity when I try to control 5 real motor after about half ah hour. which is amzing is the drivers do not have any error about this,just error occured in codesys.&lt;br/&gt;
I try to fiind the jitter of the ethercat task, about 1300+us, I think the jitter is too large so lead the error occuring,then I changed the offset with different values and find a best value is -20% with the jitter within 150us. And I think i get the real question about this error,but after about half an hour, i also got the same error and i find the jitter becomes more and more big.&lt;br/&gt;
I really do not know the interal reason of the error "fieldbus lost synchronicity" and if it comes up with the task jitters.&lt;br/&gt;
Do you got the answer of this ? &lt;br/&gt;
Thanks for reading!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#c760" rel="alternate"/><published>2020-02-27T17:47:11.311000Z</published><updated>2020-02-27T17:47:11.311000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comf9e3f1152fd40100f4b27c57e80c14138637009a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;Great to hear. Sorry I forgot to mention the task priority!!!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#0d75" rel="alternate"/><published>2020-02-27T17:47:08.377000Z</published><updated>2020-02-27T17:47:08.377000Z</updated><author><name>GiorgioT</name><uri>https://forge.codesys.com/u/giorgiot/</uri></author><id>https://forge.codesys.comb0bb07dc08601114f497271816d79ac5e9663aa4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;br/&gt;
I solved my own problem. I set ethercat task back to 4ms with 30% sync offset. Then i set the priority of the Visu task to 31 whilst the ethercat task priority was set to 0. Now the jitter is between +- 150 microsec and the lost sync error is gone.&lt;/p&gt;
&lt;p&gt;Thank you for pointing me to the right direction.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#563c" rel="alternate"/><published>2020-02-27T17:47:07.341000Z</published><updated>2020-02-27T17:47:07.341000Z</updated><author><name>GiorgioT</name><uri>https://forge.codesys.com/u/giorgiot/</uri></author><id>https://forge.codesys.com9a9070d9026222f59a6875ae6926780ec7aa9b9a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, Thanks for you fast reply.&lt;/p&gt;
&lt;p&gt;Here are some results:&lt;/p&gt;
&lt;p&gt;with a Ethercat task of 4ms and 25% sync offset i get this: Max Cycle Time : 1830 microsec but an unreasonable &lt;strong&gt;Jitter Max: 6029 microsec e Min: -3531 microsec&lt;/strong&gt; as you can see in the second picture.&lt;/p&gt;
&lt;p&gt;Then with an Ethercat task of 8ms and 50% sync offset i get: Max Cycle Time : 1732 microsec but an unreasonable &lt;strong&gt;Jitter Max: 6675 microsec e Min: -6685 microsec&lt;/strong&gt; as you can see in the first picture.&lt;/p&gt;
&lt;p&gt;This Jitter values are likely to be the problem !!!! I've never seen Jitters so high. What can be the problem? I used 2 BBB with the same results.&lt;/p&gt;
&lt;p&gt;I use this kernel:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
Linux beaglebone 4.4.14-bone-rt-r11 #1 PREEMPT RT Fri Jul 1 01:43:25 UTC 2016 armv7l GNU/Linux&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I tried with the OS installed on SD as well on the eMMC.&lt;/p&gt;
&lt;p&gt;EDIT: I also tried with a raspberry Pi 2 Model B&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot (62).png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2385"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot (59).png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2384"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#fa6c" rel="alternate"/><published>2020-02-27T17:47:04.401000Z</published><updated>2020-02-27T17:47:04.401000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comfdc22be0ba0bb2eadb77876627a5c8d229ed487c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;Check your task execution time - average and max values. Your task cycle time could be too fast. I had a job where I used a 2ms Etherxat task time. Most of the time the task time executed in just under 2 ms. But occasionally it executes in 2.1 ms. Lost sync&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#4294" rel="alternate"/><published>2020-02-27T17:47:03.363000Z</published><updated>2020-02-27T17:47:03.363000Z</updated><author><name>GiorgioT</name><uri>https://forge.codesys.com/u/giorgiot/</uri></author><id>https://forge.codesys.com12303bb1498b01f5ccd62f00b3f96b9d9ae7bd57</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks, that was just an oversight during some tests. In fact the error is still present despite the fact i removed the ethercat task from the visu task.&lt;/p&gt;
&lt;p&gt;What could be the problem ??&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot (56).png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2383"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#faac" rel="alternate"/><published>2020-02-27T17:47:00.434000Z</published><updated>2020-02-27T17:47:00.434000Z</updated><author><name>optymalizacja2</name><uri>https://forge.codesys.com/u/optymalizacja2/</uri></author><id>https://forge.codesys.comfe175555fe50581f610ed266f4feb98fccaa8552</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The first thing that comes to my mind is to remove the etherCAT task from the visu task where it is duplicated...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ethercat FieldBus Lost Synchronicity</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c17cefeda1/?limit=25#bca0" rel="alternate"/><published>2020-02-27T17:46:59.366000Z</published><updated>2020-02-27T17:46:59.366000Z</updated><author><name>GiorgioT</name><uri>https://forge.codesys.com/u/giorgiot/</uri></author><id>https://forge.codesys.com7ce35ad5a44799aa90a49d8760ad68169d0907f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;br/&gt;
I use a BBB with a RT kernel to control a servomotor through Ethercat.&lt;br/&gt;
I use the SMC_FollowPosition block since new position values arrive in real-time each Ts milliseconds. (Ts can be 100ms or 1sec).&lt;br/&gt;
I tried with MoveAbsolute and MoveRelative blocks as well with the same result.&lt;/p&gt;
&lt;p&gt;Unfortunately i always get this error and the motor stops spinning. &lt;br/&gt;
I called the technical support of the driver's company and they told me to increase the sync offset up to 50% but i have the same error.&lt;/p&gt;
&lt;p&gt;How could i solve the problem?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot (49).png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2381"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>