EtherNet/IP Scanner not working after reboot.

2020-11-04
2020-11-05
  • yannickasselin

    yannickasselin - 2020-11-04

    Hello,

    I am using Codesys 3.5.16.2 on a Raspberry Pi with an EtherNet/IP Scanner. It works fine, but every time I reboot the Raspberry Pi, the EtherNet/IP Scanner stops working. It has a red triangle next to it. If I do a Reset (Warm, Cold or Origin), everything starts working again.

    Any idea what could be wrong?

     
  • eschwellinger

    eschwellinger - 2020-11-04

    check the plc logger for more information...

     
  • yannickasselin

    yannickasselin - 2020-11-04

    It seems that the Scanner is trying to load parameters before the EtherNet/IP adapter has successfully opened connection.

     
  • yannickasselin

    yannickasselin - 2020-11-04

    Is it possible to delay the start of the Codesys runtime? Maybe it would resolve the issue.

    Or is there another workaround?

     
    • Morberis

      Morberis - 2020-11-04

      That is the solution I have heard other people talk about, I'm not sure the exact way they did it though.

       
      • yannickasselin

        yannickasselin - 2020-11-04

        You mean adding a delay before starting Codesys runtime?

         
  • eschwellinger

    eschwellinger - 2020-11-05

    as a workaround i would try to restart the EIP via your application:

    example snippet:
    declaration:
    reconfigureEIP : DED.Reconfigure;
    eipActive : BOOL;

    Code:
    Ethernet_IP_Scanner.Enable := eipActive;
    reconfigureEIP(itfNode := Ethernet_IP_Scanner);

     

    Last edit: eschwellinger 2020-11-05
    • yannickasselin

      yannickasselin - 2020-11-05

      It works! Thank you Edwin!

      And I learned that you can programmatically enable/disable devices. This is very handy.

      Thank you.

       

Log in to post a comment.