Codesys Profinet PLC with multiple sensor connection

Post Reply
connür
Posts: 4
Joined: 22 Sep 2025, 14:47

Codesys Profinet PLC with multiple sensor connection

Post by connür »

Hello,
currently im working with a RevPi connect 5 on a codesys project. Up until now I was having a blast because things were going really smooth but for like almost a day im kind of stuck on the integration of multiple profinet sensors into my project. This is kind of a bummer because that should be an easy thing to do.

What I tried so far was to create and additional ethernet adapter where I then tried to connect my devices. in the beginning I tried to connect the devices directly which was not working because I could assign the IP-adress only to the ethernet adapter and not to the devices but the device was found in the device repository (this gets important in the second part)
Screenshot 2025-09-25 154540.png
So what I tried next was to setup a PN-Controller and connect my devices subsequently to the Controller. Sadly now the devices wont show up in the device repository anymore. To me its not clear why this is happening.
Screenshot 2025-09-25 154820.png
And the worst thing is: I went ahead and setup a device completely like I would want to have it in the project and when I then click on scan devices I can even find the device. But it can not be added to project for whatever reason eventhough im 100% certain that the gsdml file is the correct one.
Screenshot 2025-09-25 160540.png
Can anyone help me with this. Like I said this seems like an easy thing to do and its taking me way longer than expected already. The only thing that came to my mind why this might not work is because I have codesys license which only allows one profinet instance. Could that be the case? The error message seems then pretty unfit but ok.

I will be grateful for every advice. Thanks in advance!

Best regards!
User avatar
nicolaiB
KUNBUS
Posts: 1118
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Codesys Profinet PLC with multiple sensor connection

Post by nicolaiB »

Hi,

Looks like the screenshots are missing?

Nicolai
Nicolai
connür
Posts: 4
Joined: 22 Sep 2025, 14:47

Re: Codesys Profinet PLC with multiple sensor connection

Post by connür »

nicolaiB wrote: 25 Sep 2025, 16:49 Hi,

Looks like the screenshots are missing?

Nicolai
Hi, yes, you are right. Im sorry fo that. In the preview everything looked fine. Since I did not find an edit button to the original post, I attached them here.
Screenshot 2025-09-25 160540.png
Screenshot 2025-09-25 154820.png
Screenshot 2025-09-25 154540.png
connür
Posts: 4
Joined: 22 Sep 2025, 14:47

Re: Codesys Profinet PLC with multiple sensor connection

Post by connür »

ok, eventually I figured out the problem myself:

Apparently theere is a difference in how you import the GSDML file into the project. At first I went through "Tools -> Miscellaneous -> Generate PROFINET device from GSDML". WHen doing it this way the device was sometimes not setup correctly in the Device repository ( I tried it on 4 different machines.. two were working, while two were not)

If you want to make sure that your device gets created the correct way then you have to got through "Tools -> Device Repository" and install the GSDML files from there. This seems to be working.

From my pov this is a bug in codesys but maybe im just not understanding what each functionality is supposed to be doing.

Hoping this might help anyone else and save you a few hours of error investigation!


Best regards
Post Reply