<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Ethercat device addresses mapping</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17a9f944cd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17a9f944cd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/17a9f944cd/</id><updated>2021-08-02T09:30:56.448000Z</updated><subtitle>Recent posts to Ethercat device addresses mapping</subtitle><entry><title>Ethercat device addresses mapping</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/17a9f944cd/?limit=25#3a4e" rel="alternate"/><published>2021-08-02T09:30:56.448000Z</published><updated>2021-08-02T09:30:56.448000Z</updated><author><name>paulpotat</name><uri>https://forge.codesys.com/u/paulpotat/</uri></author><id>https://forge.codesys.com15e0266c1cf3783c80caeb14a8dd5429f9370fdb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a project with one ethercat master device and several ethercat slave devices.&lt;br/&gt;
I mapped some variables in the "EtherCAT I/O Mapping" Tab of each slave device to use them in my code.&lt;/p&gt;
&lt;p&gt;My project compile without errors on its own, but when I try to run it on my PLC I get some errors :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;&amp;lt;device&amp;gt;: The address %IW640 is already used.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I'm having a hard time understanding how Codesys maps addresses for each variable. For example here it says the address IW640 is already used but I don't see any device using it when I check the other one's mapping. Also the variable supposed to use the IW640 address is using the address IW896...&lt;/p&gt;
&lt;p&gt;From my understanding Codesys is not using the address displayed in the "Address" column when the programm is running. Instead it dynamically assign an address for each variable, but some of them get the same value.&lt;/p&gt;
&lt;p&gt;I tried assigning a fixed address for every variable of one device and the errors disappeared. But it's a very tedious process and I have many devices...&lt;/p&gt;
&lt;p&gt;Could someone help me with that ?&lt;br/&gt;
Thank you very much&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>