EtherNet/IP Scanner not working after reboot.

  • yannickasselin

    yannickasselin - 2020-11-04


    I am using Codesys 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?

        • 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:
    reconfigureEIP : DED.Reconfigure;
    eipActive : BOOL;

    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.

  • elenatsai

    elenatsai - 2021-01-08


    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.