<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/</id><updated>2020-02-27T15:33:34.246000Z</updated><subtitle>Recent posts to SanyoDenkyRS2 EtherCAT</subtitle><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#bfce" rel="alternate"/><published>2020-02-27T15:33:34.246000Z</published><updated>2020-02-27T15:33:34.246000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com05a5eeda243ef42ea06533f1c81921f481370e31</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I agree with 6ms the drive does not run,&lt;br/&gt;
seems a slave Problem I think.&lt;br/&gt;
With other cycle times it works like charm.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#5fc4" rel="alternate"/><published>2020-02-27T15:33:33.494000Z</published><updated>2020-02-27T15:33:33.494000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comcceca2957fdc416dd18848e01419c0a527c878c6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Gianmarco,&lt;/p&gt;
&lt;p&gt;config file is ok.&lt;br/&gt;
I fear it is really a problem of this switched port you need really 2 ports.&lt;/p&gt;
&lt;p&gt;I could check if my drive works with 6ms - will give feedback a.s.a.p.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#af79" rel="alternate"/><published>2020-02-27T15:33:32.760000Z</published><updated>2020-02-27T15:33:32.760000Z</updated><author><name>gdalbo</name><uri>https://forge.codesys.com/u/gdalbo/</uri></author><id>https://forge.codesys.comd7a2b112f2954db0fbcc02333d01b625837b0fe9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Gooday Gianmarco,&lt;br/&gt;
I need the CODESYSControl.cfg file from the plc - guess these are from CODESYS and your pc.&lt;br/&gt;
Not sure if this will work if you have really only one port for doing this.&lt;br/&gt;
Ethercat need to run exclusive at one port ( without other traffic)&lt;br/&gt;
Is it possible to connect a USB-to-ethernet adapter and do the CODESYS connection via this.&lt;br/&gt;
Than have Ethercat exclusive with the Sanyo denki connected?&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Goodmorning Edwin,&lt;/p&gt;
&lt;p&gt;Sorry, here you are the right CODESYSConfig.cfg form the plc.&lt;/p&gt;
&lt;p&gt;Anyway, at the moment our board is directly connected to Sanyo.&lt;br/&gt;
It is connected on lan only when I'm logged in to donwload code/start some process, but as soon as i did this i can disconnect it from lan.&lt;br/&gt;
In this way motor loses less steps.. &amp;gt;&lt;strong&gt;gdalbo hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
If i send positions (sanyo is in csp), for example at 2ms ETC Task and 2ms DC, drive loses some steps, but if i remove the cable which connects board to lan, it loses less steps!&lt;/p&gt;
&lt;p&gt;In the attachments you can find the right " .cfg", and a very very simple scheme of what we're using.&lt;/p&gt;
&lt;p&gt;P.S.: Do you know why if i set 6ms on ETC task and DC, sanyo goes in fault? Is it too much?&lt;/p&gt;
&lt;p&gt;Thank you so much Edwin,&lt;br/&gt;
Gianmarco&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=4022" rel="nofollow"&gt;CODESYScontrol.cfg.rar &lt;span&gt;&lt;span&gt;[7.53 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#2da4" rel="alternate"/><published>2020-02-27T15:33:30.756000Z</published><updated>2020-02-27T15:33:30.756000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3dce206842b156f29fa7fe5e05345a18c75ee515</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Gooday Gianmarco,&lt;/p&gt;
&lt;p&gt;I need the CODESYSControl.cfg file from the plc - guess these are from CODESYS and your pc.&lt;/p&gt;
&lt;p&gt;Not sure if this will work if you have really only one port for doing this.&lt;br/&gt;
Ethercat need to run exclusive at one port ( without other traffic)&lt;br/&gt;
Is it possible to connect a USB-to-ethernet adapter and do the CODESYS connection via this.&lt;br/&gt;
Than have Ethercat exclusive with the Sanyo denki connected?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#4d26" rel="alternate"/><published>2020-02-27T15:33:30.072000Z</published><updated>2020-02-27T15:33:30.072000Z</updated><author><name>gdalbo</name><uri>https://forge.codesys.com/u/gdalbo/</uri></author><id>https://forge.codesys.com5a5237a1025b39edebe505b63d433ed5a25d0d1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi Gianmarco,&lt;br/&gt;
hm could you add your CODESYSControl.cfg file?&lt;br/&gt;
Is this physically only one ethercat port then? ( switched)&lt;br/&gt;
Ethercat need an own port ...&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Edwin and good Monday!&lt;/p&gt;
&lt;p&gt;Yes, you're right, our board has the eth switch (Micrel KSZ8893MQL) and in the main uC there is only one ethernet port.&lt;/p&gt;
&lt;p&gt;You can find "CODESYSControl 3.5SP12Patch3.cfg" and "CODESYSControl .cfg" in the attachments.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br/&gt;
Gianmarco&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=4018" rel="nofollow"&gt;CODESYScontrol.cfg.zip &lt;span&gt;&lt;span&gt;[4.93 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#ecbc" rel="alternate"/><published>2020-02-27T15:33:28.111000Z</published><updated>2020-02-27T15:33:28.111000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com1024cb9ec59b3629a5262f4ad7633d6ae4070ac2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Gianmarco,&lt;/p&gt;
&lt;p&gt;hm could you add your CODESYSControl.cfg file?&lt;br/&gt;
Is this physically only one ethercat port then? ( switched)&lt;br/&gt;
Ethercat need an own port ...&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#f6d7" rel="alternate"/><published>2020-02-27T15:33:27.427000Z</published><updated>2020-02-27T15:33:27.427000Z</updated><author><name>gdalbo</name><uri>https://forge.codesys.com/u/gdalbo/</uri></author><id>https://forge.codesys.com97c5cf789016c70839c740a6a951c82646ce42f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi Gianmarco,&lt;br/&gt;
please check the realtime capabilities of your system.&lt;br/&gt;
Taskmonitor - you should see jitter times &amp;lt;100us (if you do a reset by rightclick in the Ethercat Task)&lt;br/&gt;
On realtime capable plc's ( -&amp;gt;Control Win is not possible to use!!) the Sanyo drive will work with 20% Offset (Default)&lt;br/&gt;
and no matter 1000us,2000us,3000us,4000us Taskcycle(Ethercat) and DC clock should the be the same setting -&amp;gt; use the same sync time than the ethercat master Task is.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;our system is ok about realtime... unfortunately it isn't very fast, infact for us and our applications it's ok a jitter &amp;lt;=300us  &lt;/p&gt;
&lt;p&gt;It's ok about Task Etchercat cycle and DC too.&lt;/p&gt;
&lt;p&gt;In these days we have done another test:&lt;/p&gt;
&lt;p&gt;Our board has an Ethernet switch (MICREL) and two eth port, the first one is connected to the lan (then from codesys i can choose it through scanning devices), and the last one goes to Ethercat devices.&lt;/p&gt;
&lt;p&gt;Now i'm doing tests using board and Sanyo driver. &lt;br/&gt;
If i send positions (sanyo is in csp), for example at 2ms ETC Task and 2ms DC, drive loses some steps, but if i remove the cable which connects board to lan, it loses less steps!&lt;br/&gt;
Maybe is there some particular config to use? Is it possible that Ethercat comes into conflict with other packets in the Ethernet line? Probably this is a part of the problem... &lt;br/&gt;
but i cant understand why if i set 6ms on ETC Task and 6ms on DC, driver goes instantly in fault...&lt;/p&gt;
&lt;p&gt;Thank you for your patience,&lt;br/&gt;
Gianmarco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#6c17" rel="alternate"/><published>2020-02-27T15:33:26.717000Z</published><updated>2020-02-27T15:33:26.717000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comed9c351991508141201e1d936946790775188996</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Gianmarco,&lt;/p&gt;
&lt;p&gt;please check the realtime capabilities of your system.&lt;br/&gt;
Taskmonitor - you should see jitter times &amp;lt;100us (if you do a reset by rightclick in the Ethercat Task)&lt;br/&gt;
On realtime capable plc's ( -&amp;gt;Control Win is not possible to use!!) the Sanyo drive will work with 20% Offset (Default)&lt;br/&gt;
and no matter 1000us,2000us,3000us,4000us Taskcycle(Ethercat) and DC clock should the be the same setting -&amp;gt; use the same sync time than the ethercat master Task is.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#d7d2" rel="alternate"/><published>2020-02-27T15:33:24.681000Z</published><updated>2020-02-27T15:33:24.681000Z</updated><author><name>gdalbo</name><uri>https://forge.codesys.com/u/gdalbo/</uri></author><id>https://forge.codesys.com40f7b6b54bb545b26923e8883ca1f5c37aa58819</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin, thank you very much for the answers.&lt;/p&gt;
&lt;p&gt;I'm using an OMAP-L137 board with real time preemption kernel @444 MHz.&lt;/p&gt;
&lt;p&gt;I'm also using "EtherCAT_MasterSoftmotion" wich alreaady has "FrameAtTaskStarts" setted "TRUE".&lt;/p&gt;
&lt;p&gt;Anyway with "max offset 35%/40%" i mean that for me it's ok if for some reason i have to set these values up to 35%/40%... &lt;br/&gt;
I tested values on the "table" in the first post using 20%/30%/35%/40% of offset, the best result was using 35% and 2000us Ethercat Task - 2000us DClock.&lt;/p&gt;
&lt;p&gt;Maybe is it an hardware limit? No... i think.. because the strange thing is that with 6000us Ethercat Task and 6000us DClock  and quite immediately sanyo going in fault&lt;/p&gt;
&lt;p&gt;EDIT:&lt;br/&gt;
I've just try to use CodesysWin to control Sanyo, and problems are the same... therefore i think that it isn't an hardware limit&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br/&gt;
Gianmarco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SanyoDenkyRS2 EtherCAT</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/73cca3a94a/?limit=25#dd42" rel="alternate"/><published>2020-02-27T15:33:23.943000Z</published><updated>2020-02-27T15:33:23.943000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com9059e983f84f1b760547426ffd321b2f7b08f79e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
please check if the Motor runs with sync offset 20 (default is for 99% the best solution I guess)&lt;br/&gt;
Are you using Raspberry Pi with rt_preempt patched Linux Kernel?&lt;br/&gt;
Then use 'FrameAtTaskstart' this is from my point of view mandatory for drives... see screenshot.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: FrameAtTaskStart.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4009"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>