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)
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.
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.
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!
Codesys Profinet PLC with multiple sensor connection
Re: Codesys Profinet PLC with multiple sensor connection
Hi,
Looks like the screenshots are missing?
Nicolai
Looks like the screenshots are missing?
Nicolai
Nicolai
Re: Codesys Profinet PLC with multiple sensor connection
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.
Re: Codesys Profinet PLC with multiple sensor connection
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
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