<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Struggling to connect to EK1100 to Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/76400317b0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/76400317b0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/76400317b0/</id><updated>2025-03-30T21:29:46.450000Z</updated><subtitle>Recent posts to Struggling to connect to EK1100 to Raspberry Pi</subtitle><entry><title>Struggling to connect to EK1100 to Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/76400317b0/?limit=25#fcfd" rel="alternate"/><published>2025-03-30T21:29:46.450000Z</published><updated>2025-03-30T21:29:46.450000Z</updated><author><name>kevintumibay</name><uri>https://forge.codesys.com/u/kevintumibay/</uri></author><id>https://forge.codesys.comb2b058ba5fede7149338d295c8c2b354cf5fb7be</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;SUMMARIZED VERSION OF QUESTION:&lt;/strong&gt;&lt;br/&gt;
I'm trying to connect a Raspberry Pi running "Codesys Control for Raspberry Pi" to a Beckhoff EK1100, unfortunately, when I try to connect I get the following messages&lt;br/&gt;
&lt;em&gt;SEE FIRST PICTURE&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DETAILED VERSION OF QUESTION:&lt;/strong&gt;&lt;br/&gt;
Hi everyone,&lt;br/&gt;
I'm a college student that is super interested in learning about PLCs. I wanted to dive into the subject and decided to follow this great Instructables article: &lt;code&gt;https://www.instructables.com/Programming-Raspberry-Pi-With-CODESYS/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance for your help!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My current setup is as follows:&lt;/strong&gt;&lt;br/&gt;
1. I have Codesys Control for Raspberry Pi, version 4.14.0.0, (&lt;code&gt;https://store.codesys.com/en/codesys-control-for-raspberry-pi-sl.html&lt;/code&gt;) installed on a Raspberry Pi 3B.&lt;br/&gt;
2. I am using my smartphone hotspot to create a network.&lt;br/&gt;
3. I have CODESYS 3.5 SP21 (64 bit) installed on my Windows 11 laptop.&lt;br/&gt;
4. Both the Raspberry Pi and my laptop are connected to the smartphone hotspot network (I am wirelessly connecting to the Raspberry Pi).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Connecting to the Raspberry Pi from CODESYS on my laptop:&lt;/strong&gt;&lt;br/&gt;
1. I launch Codesys Installer -&amp;gt; I install Codesys Control for Raspberry Pi (link to the software).&lt;br/&gt;
2. I launch Codesys 3.5 SP21 (64 bit) on my laptop.&lt;br/&gt;
3. I go to file --&amp;gt; new project --&amp;gt; standard project --&amp;gt; in the pop-up I select "Codesys Control for Raspberry Pi" and "Structured Text"&lt;br/&gt;
4. I click on tools -&amp;gt; Deploy Control SL (on older versions of Codesys you would click on "update Raspberry Pi", I got that information from this video: link)&lt;br/&gt;
5. Inside Deploy Control SL --&amp;gt; I go to the "communication" menu and I input the IP address of my Pi, the password, and click on connect.&lt;br/&gt;
6. Inside Deploy Control SL --&amp;gt; I go to the "deployment" menu and I install Codesys Control for Raspberry Pi SL and Codesys Edge Gateway for Linux&lt;br/&gt;
7. Now I double click on "device" in the left hand tree and put in the IP address of my Raspberry Pi and click on connect --&amp;gt; success! I am able to connect!&lt;br/&gt;
&lt;em&gt;SEE SECOND PICTURE&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Powering the EK1100 and connecting it to the Raspberry Pi:&lt;/strong&gt;&lt;br/&gt;
1. I am supplying the EK1100 with 24 V across the + and - pins.&lt;br/&gt;
2. I have jumper wires going from the + pin to the 24V pin and from the - pin to the 0V pin.&lt;br/&gt;
&lt;em&gt;SEE THIRD PICTURE&lt;/em&gt;&lt;br/&gt;
4. I am pretty confident that the EK1100 is receiving power because the "LED Us 24 V" and "LED Up 24 V" are lighting up.&lt;br/&gt;
5. I then run an ethernet cable from the EK1100 to the Raspberry Pi port (the Raspberry Pi is connected to my laptop wirelessly over WiFi). I think this connection should also be good since the LINK/ACT LED lights up.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Trying to connect to the EK1100:&lt;/strong&gt;&lt;br/&gt;
1. Back in Codesys I right-click on "Device" in the left tree and then in the pop up I click on "add device".&lt;br/&gt;
2. I then click on EtherCAT Master.&lt;br/&gt;
3. Next in a terminal window I SSH into the raspberry Pi and run the "ifconfig" command.&lt;br/&gt;
4. From there I get the MAC address for eth0 --&amp;gt; in my case: b8:27:eb:29:a9:25&lt;br/&gt;
5. Then, back in Codesys I double click on "EtherCAT Master" in the left hand tree. I then paste the MAC address into the "Source Address (MAC)" field.&lt;br/&gt;
6. I go to the Beckhoff official website and download the XML files for EtherCAT: &lt;code&gt;https://www.beckhoff.com/en-en/products/i-o/ethercat-terminals/ek1xxx-bk1xx0-ethercat-coupler/ek1100.html?&lt;/code&gt;&lt;br/&gt;
7. I unzip those files in my computer into some folder that I can remember.&lt;br/&gt;
8. Back in Codesys I click on "Tools" --&amp;gt; "Device Repository" --&amp;gt; "Install" --&amp;gt; and then on the "Beckhoff EK11xx.XML" file.&lt;br/&gt;
9. In theory the necessary XML file is now installed.&lt;br/&gt;
10. &lt;strong&gt;THIS IS WHERE I RUN INTO THE PROBLEM:&lt;/strong&gt; I then click on login --&amp;gt; I right click on EtherCAT_Master and then scan for devices --&amp;gt; and nothing.&lt;br/&gt;
11. It just doesn't detect it. On top of this whenever I login I get those orange triangles on the left on my tree. When I check the Log I get the messages at the very first screenshot of this post.&lt;br/&gt;
&lt;em&gt;SEE FOURTH PICTURE&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solutions that I have tried to resolve this problem:&lt;/strong&gt;&lt;br/&gt;
1. I thought it was maybe the .XML file so I installed all the .XML files from the EtherCAT folder that I downloaded. That didn't fix it.&lt;br/&gt;
2. I went on the Wayback Machine and got the .XML files from 2018 as I thought maybe an older version would work. This file of EtherCAT folders had a .XML file named "Beckhoff EKxxxx.XML" I thought this would work because that's the name of the file the guy in the Instructables used (&lt;code&gt;https://www.instructables.com/Programming-Raspberry-Pi-With-CODESYS/&lt;/code&gt;). That didn't do anything.&lt;br/&gt;
3. I ran the PLC on my computer instead of the Raspberry Pi and tried to connect to the EK1100, in case the issue was with the Raspberry Pi, but I still ran into the same error from the picture above: "Attention! The device was not found in the repository. Vendorcode: 0x0. Productcode: 0x0. Revision: 0x0".&lt;br/&gt;
&lt;em&gt;SEE FIFTH PICTURE&lt;/em&gt;&lt;br/&gt;
4. I reinstalled Codesys, I was originally on version 3.5 SP20 when I did this, I upgraded to 3.5 SP21 with no success.&lt;br/&gt;
5. I then thought the solution might be to first add the EK1100 hardware before connecting so I did the following:&lt;br/&gt;
6. Right click on "EtherCAT Master" on the left hand tree --&amp;gt; then click on "add device" --&amp;gt; then I added the "EK1100 EtherCAT Coupler (2A E-Bus)"&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;MY THEORY OF WHAT IS CAUSING THE PROBLEM:&lt;/strong&gt; I asked ChatGPT for help and it said that it might have something to do with the revision number. On the physical EK1100 it says "Rev. Nr.: 0018". I believe that this means that I need to a revision 0018 XML file but if you look in Codesys it says the version is 16 (picture above). This is confusing because I got my .XML file from the official Codesys website so it should be the most up to date version possible. I searched and I searched and I couldn't find a version 18 .XML file, I don't even now if this exists.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Any help you can provide is greatly appreciated, I don't know what to do anymore and I really really want to get this working. Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>