I also attached the log files from the Profinet Device.
The device shows up in TIA but its not reachable, obviously cause the bus isn't running. I've tried changing a lot of settings but can't seem to figure it out, would appreciate all the help i can get, thanks!
Managed to fix it by adding a PN_Controller besides the profinet device and then exporting a new GSDML to TIA. When the TIA project has been loaded and is up and running then the bus is active. However, now I've got a new problem where the I/O's don't show up in TIA.. Anyone with a familiar issue?
to the config file?
Then PN controller want to set the IP adress of the device usually.
Therefore you need to allow it with this setting.
(sometimes you need to check then Linux network manger should not be configured as dhcp in case you are in an public network where dhcp adresses are served...!
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I already had that in my config file, but it still didn't work. However, It works if i start up everything in TIA aswell as running the runtime then typing:
sudo ifdown eth0
sudo ifup eth0
to reset the network adapter, then all goes green in both codesys aswell as TIA. I would still say this is some kind of weird glitch as this most likely isn't supposed to be happening..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey! Trying to have my raspberry pi as a profinet device linked to my S7 1200 PLC. Currently I'm facing an issue where the bus is not running.
Version:
CODESYS V3.5 SP16 Patch 4 +
Raspberry pi runtime 4.0.1.0
I've also followed this guide:
https://help.codesys.com/webapp/_pnio_runtime_configuration_device;product=core_ProfinetIO_Configuration_Editor;version=3.5.16.0
I also attached the log files from the Profinet Device.
The device shows up in TIA but its not reachable, obviously cause the bus isn't running. I've tried changing a lot of settings but can't seem to figure it out, would appreciate all the help i can get, thanks!
Managed to fix it by adding a PN_Controller besides the profinet device and then exporting a new GSDML to TIA. When the TIA project has been loaded and is up and running then the bus is active. However, now I've got a new problem where the I/O's don't show up in TIA.. Anyone with a familiar issue?
Hi,
did you add:
/etc/CODESYSControl_User.cfg
[SysSocket]
Adapter.0.Name="eth0"
Adapter.0.EnableSetIpAndMask=1
to the config file?
Then PN controller want to set the IP adress of the device usually.
Therefore you need to allow it with this setting.
(sometimes you need to check then Linux network manger should not be configured as dhcp in case you are in an public network where dhcp adresses are served...!
BR
Edwin
Hey! Got it to work now. Kind of.
I already had that in my config file, but it still didn't work. However, It works if i start up everything in TIA aswell as running the runtime then typing:
sudo ifdown eth0
sudo ifup eth0
to reset the network adapter, then all goes green in both codesys aswell as TIA. I would still say this is some kind of weird glitch as this most likely isn't supposed to be happening..
you should see some log messages in the plclogger...
If you mean logs on the profinet device, see the attached image.
No plclogger...please
Hmm, can't seem to find anything named "plclogger" ?
edit: Looked through older posts and saw that you ment the log files in the root device. See attached image.
Last edit: toernblom 2021-04-22