EtherNet/IP Scanner not working after reboot.

2020-11-04
2021-01-08
  • 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 - 2020-11-04

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

     
  • 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 - 2020-11-04

        You mean adding a delay before starting Codesys runtime?

         
        πŸ‘
        1
        • Morberis

          Morberis - 2021-01-08

          Yes. In fact that is what the Eaton plc's do with a timer in a startup script.

           
  • 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 - 2020-11-05

      It works! Thank you Edwin!

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

      Thank you.

       
  • elenatsai - 2021-01-08

    Hi

    Could you tell me how to transfer a device from device-tree to INode. I added a device "Ethernet_IP_Scanner" in device-tree, then there is a complier error which cannot convert type IoDrvEthernetIP to type INode. Thank you.

     

Log in to post a comment.