<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to EtherCAT communication problem</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/fd21d2b694/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/fd21d2b694/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/fd21d2b694/</id><updated>2020-02-27T17:12:28.932000Z</updated><subtitle>Recent posts to EtherCAT communication problem</subtitle><entry><title>EtherCAT communication problem</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/fd21d2b694/?limit=25#e508" rel="alternate"/><published>2020-02-27T17:12:28.932000Z</published><updated>2020-02-27T17:12:28.932000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com54cc3af30df65cd9210ce85a585a8018b1fcea76</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The raspberry codesys is named soft real time. Codesys people ensures a jitter of about 500 us.&lt;/p&gt;
&lt;p&gt;Using a realtime linux image the codesys has to plug his interrupt as realtime interrupt, an I dont know if it do that.&lt;/p&gt;
&lt;p&gt;I have implemented a pou with a variable delay of 600us in the first task, before ethercat task. I have had running it for a 10 min and the jitter after this pou is around 5 us. But nobody ensures me that there could be a linux thread which blocks interrupts, smi or something similar.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>EtherCAT communication problem</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/fd21d2b694/?limit=25#3580" rel="alternate"/><published>2020-02-27T17:12:27.833000Z</published><updated>2020-02-27T17:12:27.833000Z</updated><author><name>ivp90</name><uri>https://forge.codesys.com/u/ivp90/</uri></author><id>https://forge.codesys.com92063f415490fca9fdff0483c026ae1494f9b9cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Without purchasing a license (just download) the CODESYS Control for Raspberry Pi runs for two hours without functional limitations and shuts down automatically (demo).&lt;/p&gt;
&lt;p&gt;maybe you have a problem with your license&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>EtherCAT communication problem</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/fd21d2b694/?limit=25#149d" rel="alternate"/><published>2020-02-27T17:12:25.047000Z</published><updated>2020-02-27T17:12:25.047000Z</updated><author><name>LukaszBien</name><uri>https://forge.codesys.com/u/lukaszbien/</uri></author><id>https://forge.codesys.com1e8dedd0494ab34c09d1da50f245cf33510d3adb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;br/&gt;
I have an experience with Raspberry Pi and 3 Control Techniques drives connected by EtherCat. I had  no problem with that setup. I used EMLID Real time image for Raspi. It is worth to try that image in my opinion.&lt;br/&gt;
good luck.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>EtherCAT communication problem</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/fd21d2b694/?limit=25#b8cb" rel="alternate"/><published>2020-02-27T17:12:24.067000Z</published><updated>2020-02-27T17:12:24.067000Z</updated><author><name>rge</name><uri>https://forge.codesys.com/u/rge/</uri></author><id>https://forge.codesys.com523261d645a8eafda6157e467e17e7f86670b6a0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I work for an automation company.&lt;br/&gt;
I'm developing a simple project with CoDeSys on Raspberry to control a servo-drive through EtherCAT.&lt;br/&gt;
The code works well, but occasionally (about every 2-3 hours), the drive stops due to a communication error.&lt;br/&gt;
I suspect that the error is due to a too high jitter that sometimes reaches peaks of 4 ms.&lt;br/&gt;
I think that the rise of jitter is due to some process of the operating system.&lt;br/&gt;
To solve the problem I tried to install the patch RT-Preempt, but I did not get any result.&lt;br/&gt;
I'm using a Raspberry Pi 2 model B, I set the EtherCAT task to 4ms with a 0&lt;br/&gt;
priority and DC (distributed clock) also to 4ms.&lt;br/&gt;
The drive is an OMRON R88D_KN04H_ECT.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>