CODESYS Control Win SL: Error Preparation was not successful: could not open network adapter

nilabh
2023-05-18
2023-05-19
  • nilabh - 2023-05-18

    Hi,
    I am tryin to use codesys 3.5.18.40 and CODESYS Control Win SL3.5.18.40.
    I am creating a standard project and adding ethercat master . I am setting the mac address and trying to log. BUt I see error log as Error Preparation was not successful: could not open network adapter

    2023-05-18T12:05:54.060Z: Cmp=SysEthernet, Class=4, Error=0, Info=0, pszInfo=**** DrvEtherCat:error retrieving/comparing the MAC address of the adapter!

    2023-05-18T12:05:54.060Z: Cmp=SysEthernet, Class=4, Error=0, Info=0, pszInfo=**** DrvEtherCat: Did not find Network Adapter with Mac Adr !

    2023-05-18T12:05:54.060Z: Cmp=IoDrvEtherCAT, Class=4, Error=0, Info=0, pszInfo=* Networkadapter could not be opened
    2023-05-18T12:05:54.060Z: Cmp=IoDrvEtherCAT, Class=4, Error=0, Info=0, pszInfo=
    * Error: Preparation was not successfull: could not open network adapters

    I am using Intel I210 Gigabit Ethernet Network adapter. I have also installed wincap and added following lines in C:\Program Files\3S CODESYS\CODESYS Control RTE3\CODESYSControl.cfg

    [ComponentManager]
    Component.2=SysEthernet

     
  • eschwellinger

    eschwellinger - 2023-05-18

    not needed to add anything in the config file. winpcap 4.3.1 or use SP19 runtime and npcap

     
  • nilabh - 2023-05-19

    Thanks Eschwellinger. It helped a lot.

     

Log in to post a comment.