<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/</id><updated>2020-02-27T13:48:53.415000Z</updated><subtitle>Recent posts to CoDeSys v3 and CoE devices from Beckhoff</subtitle><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#48d8" rel="alternate"/><published>2020-02-27T13:48:53.415000Z</published><updated>2020-02-27T13:48:53.415000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com263c6fcccbc8d58de42f15bdc12282ad8b9b54b4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; OW_RPi&lt;/p&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I installed Codesys V3.5.9 Patch 3+.&lt;/p&gt;
&lt;p&gt;Adding EL6751 CAN MiniDriver (V3.5.9.0) leads to following "unresolved reference" problems when downloading:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[FATAL ERROR]&lt;/span&gt;   Unresolved reference: 'EL6751_AFTERREADINPUTS'&lt;br/&gt;
&lt;span&gt;[FATAL ERROR]&lt;/span&gt;   Unresolved reference: 'EL6751_BEFOREWRITEOUTPUTS'&lt;br/&gt;
&lt;span&gt;[FATAL ERROR]&lt;/span&gt;   Unresolved reference: 'EL6751_KILLCMD'&lt;br/&gt;
&lt;span&gt;[FATAL ERROR]&lt;/span&gt;   Unresolved reference: 'EL6751_REGISTERCMD'&lt;/p&gt;
&lt;p&gt;I noticed that the library of CAN MiniDriver which is automatically added in the Library Manager has the version 3.5.8.0.&lt;/p&gt;
&lt;p&gt;Might this cause the problems?&lt;br/&gt;
Can someone hlep, please?&lt;/p&gt;
&lt;p&gt;How to install (where to download) compatible device description and library version?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Oleg&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Unbenannt1.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2189"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Unbenannt.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2188"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#7a53" rel="alternate"/><published>2020-02-27T13:48:53.333000Z</published><updated>2020-02-27T13:48:53.333000Z</updated><author><name>Mando</name><uri>https://forge.codesys.com/u/mando/</uri></author><id>https://forge.codesys.com2bef600a8a249bcfa2c6d23031fc9b83237fda4f</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,&lt;br/&gt;
could you give a screenshot from your device tree?&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;For some reason Codesys didn't notify me about your reply...&lt;/p&gt;
&lt;p&gt;Here is my device tree...&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: devicetree.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2178"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#0577" rel="alternate"/><published>2020-02-27T13:48:53.238000Z</published><updated>2020-02-27T13:48:53.238000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comfaa19152f0129d2d5f7aca76c111be40bd3a0bd5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; OW_RPi&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;my EL6751 CAN MiniDriver occured some problems during download:&lt;/p&gt;
&lt;p&gt;Error during download:&lt;br/&gt;
4 unresolved reference(s), 0 signature mismatch(es), 0 version mismatch(es) found!&lt;br/&gt;
The device version on the hardware seems to be different from the device version used in the project. Try to up-/downgrade the device in the project to match the actual version of the hardware.&lt;br/&gt;
Please take a look in the messages view for further details&lt;/p&gt;
&lt;p&gt;I uninstalled the driver in device respository and try to install EL6751 again but the MiniDriver now is still missing.&lt;/p&gt;
&lt;p&gt;How install the driver again? &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Oleg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#3486" rel="alternate"/><published>2020-02-27T13:48:53.154000Z</published><updated>2020-02-27T13:48:53.154000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com98ccd2ebaaa81b51649d62868bd9cdbb4f3723dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Dray,&lt;/p&gt;
&lt;p&gt;this example from CODESYS does covers everything you need (+ online help for the documentation):&lt;br/&gt;
&lt;a class="" href="http://store.codesys.com/ethercat-example.html" rel="nofollow"&gt;http://store.codesys.com/ethercat-example.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#02be" rel="alternate"/><published>2020-02-27T13:48:52.821000Z</published><updated>2020-02-27T13:48:52.821000Z</updated><author><name>Dray</name><uri>https://forge.codesys.com/u/dray/</uri></author><id>https://forge.codesys.coma51904c8bbadcc252ecb36adc59d50bf391df0ba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin, can you send please some description to IODrvEtherCAT library?&lt;br/&gt;
For example ETC_SoE_IDNWrite, input/output description?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#d276" rel="alternate"/><published>2020-02-27T13:48:52.733000Z</published><updated>2020-02-27T13:48:52.733000Z</updated><author><name>juhataipale</name><uri>https://forge.codesys.com/u/juhataipale/</uri></author><id>https://forge.codesys.comc8dc2e2b671f2f766d33f7cc424ac5de86a41fdb</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 Juha,&lt;br/&gt;
could you check with this example if the SDO read/write works?&lt;br/&gt;
&lt;a class="" href="http://store.codesys.com/ethercat-example.html" rel="nofollow"&gt;http://store.codesys.com/ethercat-example.html&lt;/a&gt;&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hello Ewin,&lt;/p&gt;
&lt;p&gt;I tried, but for some reason it did not open the example for me.&lt;br/&gt;
Anyway, I found the problems...&lt;/p&gt;
&lt;p&gt;Main problem was that I was not using TRIGGER in execute input. It wont work without it.&lt;br/&gt;
Now it is working. Also got the writing to work.&lt;/p&gt;
&lt;p&gt;Thank you for your input!&lt;/p&gt;
&lt;p&gt;//EDIT: Everything was instructed in front of me in online help F1, which I was frequently reading, but just there was no sample, so for Newbie it is quite hard to figure everything out from a scratch. Especially when you are not sure at all if there is even change to succeed.&lt;/p&gt;
&lt;p&gt;-Juha&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: luku.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1917"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#12a6" rel="alternate"/><published>2020-02-27T13:48:52.644000Z</published><updated>2020-02-27T13:48:52.644000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comcc6afc25ff2ea1d49871363d1c8bcb4fd4f8d0a1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Juha,&lt;/p&gt;
&lt;p&gt;could you check with this example if the SDO read/write works?&lt;br/&gt;
&lt;a class="" href="http://store.codesys.com/ethercat-example.html" rel="nofollow"&gt;http://store.codesys.com/ethercat-example.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#2dc1" rel="alternate"/><published>2020-02-27T13:48:52.558000Z</published><updated>2020-02-27T13:48:52.558000Z</updated><author><name>juhataipale</name><uri>https://forge.codesys.com/u/juhataipale/</uri></author><id>https://forge.codesys.come1fb08c5a05a1a33fa3540db716749b28cc85aaa</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 Juha,&lt;br/&gt;
for me it looks like the subindex does not exists?&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you Edwin for quick response!&lt;/p&gt;
&lt;p&gt;Seems you were absolutely right, because the subindex also is of course hex-format -&amp;gt; so it is not "12" but 18!&lt;br/&gt;
(&lt;em&gt;Note to self I can mark hex values straigth by adding "16x" in front the value instead of converting to decimals.&lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;Unfortunately that was not the only flaw, because now I am getting error: ETC_CO_TIME_OUT.&lt;/p&gt;
&lt;p&gt;-Juha&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#faf3" rel="alternate"/><published>2020-02-27T13:48:52.463000Z</published><updated>2020-02-27T13:48:52.463000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com138cfacec74cb9200f55d290e28550a457a85168</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Juha,&lt;/p&gt;
&lt;p&gt;for me it looks like the subindex does not exists?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: SDOAbort.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1883"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys v3 and CoE devices from Beckhoff</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2e74048747/?limit=25&amp;page=1#b7f5" rel="alternate"/><published>2020-02-27T13:48:52.363000Z</published><updated>2020-02-27T13:48:52.363000Z</updated><author><name>juhataipale</name><uri>https://forge.codesys.com/u/juhataipale/</uri></author><id>https://forge.codesys.com819ae4babbc24f0df100436c693a127604182d35</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;I am having issues also with CoE with Beckhoff modules.&lt;br/&gt;
I think my problem must be simple one, but I have understood something wrong...&lt;/p&gt;
&lt;p&gt;So my setup:&lt;br/&gt;
Raspberry Pi 2 (as ethercat master)&lt;/p&gt;
&lt;p&gt;Bechoff EK1100 (ethercat remote slave)&lt;br/&gt;
 - EL1018 (DI)&lt;br/&gt;
 - EL2008 (DO)&lt;br/&gt;
 - EL3314 (Analog Temp.)&lt;br/&gt;
 - EL3403 (Power Measurement)&lt;/p&gt;
&lt;p&gt;Everything working smoothly, but now I should get the ethercat Process data to work (read/write) to use the modules efficiently.&lt;br/&gt;
Especially I should get one energy value cleared to 0 in EL3403 module. That is overall  energy consumption, which you can only clear by writing 0004hex to 0xFB00:01.&lt;/p&gt;
&lt;p&gt;Anyway, now I am trying more simple to understand how it works and try to get some reading possible first..&lt;/p&gt;
&lt;p&gt;So, (correct me if I am wrong) the process data between ethercat master and slaveunits is in protocol CanOpen over Ethercat.&lt;/p&gt;
&lt;p&gt;With Raspberry Pi there comes a library "iodrvethercat" which has function blocks to read/write to different locations with CoE.&lt;/p&gt;
&lt;p&gt;Okay from there I pickup ETC_CO_SdoReadDWord, which is for reading doubleword.&lt;/p&gt;
&lt;p&gt;From EL3403 manual I check the address to read L1 voltage, that would be (index; hex) 6000 : 12 (subindex), datatype is INT32 so DWORD.&lt;/p&gt;
&lt;p&gt;So I add the function block to my PLC_PRG -programme and add the necessary values:&lt;/p&gt;
&lt;p&gt;xExecute: TRUE&lt;br/&gt;
xAbort: FALSE&lt;br/&gt;
usiCom: 1 (EtherCat master No.)&lt;br/&gt;
uiDevice: 1005 (EL3403, slaveunit No.)&lt;br/&gt;
usiChannel: 1 (something not in use)&lt;br/&gt;
wIndex: 24576 (this because 6000hex -&amp;gt; is 24576dec) (is this right way????)&lt;br/&gt;
bySubindex: 12 (subindex)&lt;br/&gt;
udiTimeOut: 500 (timeout time)&lt;/p&gt;
&lt;p&gt;Rest I leave empty. Compile gives no error. When running program, the function block gives error and error code, but I have no idea where can I check what it is.&lt;/p&gt;
&lt;p&gt;I've been stuck with this for quite long already and its driving me crazy.&lt;br/&gt;
Do I need to have something else with this function block, like some struct or gvl or I need to put some tick somewhere to get it all working...?&lt;/p&gt;
&lt;p&gt;Thank you advance for your help!&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;-Juha&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: library.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1880"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PM_inputs.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1881"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: error.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1882"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>