Profinet bus not running on Raspberry pi Codesys Runtime

toernblom
2021-04-21
2021-04-22
  • toernblom - 2021-04-21

    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?

     
  • eschwellinger

    eschwellinger - 2021-04-21

    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

     
  • toernblom - 2021-04-21

    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..

     
  • eschwellinger

    eschwellinger - 2021-04-21

    you should see some log messages in the plclogger...

     
  • toernblom - 2021-04-21

    If you mean logs on the profinet device, see the attached image.

     
  • eschwellinger

    eschwellinger - 2021-04-21

    No plclogger...please

     
  • toernblom - 2021-04-22

    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

Log in to post a comment.