Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Write of address to slave not succesfull

Runtime
LooijmansR
2020-02-04
2020-02-11
  • LooijmansR

    LooijmansR - 2020-02-04

    Hi,

    I'm testing Codesys Control Win (64-bit), latest available version, on a Hyper-V virtual machine. The installation of the runtime went smooth, as went the download of the application to the device.

    But when scanning for the modules, the following error occurred:

    What could be the cause of this. Could this be a network configuration issue?

    Reno

    IMG: Capture.PNG

     
  • eschwellinger

    eschwellinger - 2020-02-04

    Hi Reno,

    Slave problem?
    Reduce slaves, sounds for me like one is connected which has a problem.
    So I would start with less and add one by one...till you have the one.

    BR
    Edwin

     
  • LooijmansR

    LooijmansR - 2020-02-05

    Hi Edwin,

    Thanks for your reply. I would assume there is a corrupt module as well, if they wouldn't work on a physical server either. But they are all operational without packet loss on a physical server.

    So it appears to be something with the virtual server. I have too little experience with how eeprom works and what could be blocking/preventing access to the slaves.

    The weird thing is, the scan is able to detect the slaves. But unable to assign addresses.
    Have you got any idea what could be causing this, given the situation determined above?

    Reno

     
  • eschwellinger

    eschwellinger - 2020-02-05

    Hi,
    please check in online mode the status Page of the EthercatMaster.
    Do you see lost frames there?
    BR
    Edwin

    IMG: EthercatStatus.png

     
  • LooijmansR

    LooijmansR - 2020-02-07

    Hi Edwin,

    When I login to the Codesys runtime on the Hyper-V virtual server (without any slaves connected), the following statistics are returned:

    It remains on 14 send frames.

    Kind regards,
    Reno

    IMG: Capture.PNG

     
  • eschwellinger

    eschwellinger - 2020-02-08

    Hi,
    one remark,
    is really WinPcap installed on this system?
    Nmap does not work. ( Will be fixed, but do not know when)
    So please check if WinPCap is installléd on this system.
    Could you add the plc log?
    BR
    Edwin

     
  • i-campbell

    i-campbell - 2020-02-08

    Profinet driver needs to send and receive raw sockets.
    Windows doesn't let you do this with their API, but somehow winPcap gets around this.
    So your question could be "how can winPcap use raw sockets through my particular combination of host OS / hypervisor / guest OS"
    maybe a more broad question that will also solve your problem is "winPcap in virtual machine"

    winpcap :

    Zitat:
    Alternatively, you could setup a different VM environment using

    Oracle VirtualBox. Install an XP environment on that VM and
    configure the NIC (on the VirtualBox side). Set the NIC to Bridged
    Adapter bridged with the appropriate LAN interface. Click on the
    Advanced link in the settings tab and change the Promiscuous Mode
    setting to "Allow All".

     
  • LooijmansR

    LooijmansR - 2020-02-11

    Hi Edwin, Campbell,

    Thanks for both your replies.

    WinPcap is installed on the system (as a matter of fact I just reinstalled to be sure). As it bothered me quite a bit, I've installed a Hyper-V Win 10 development environment with Codesys Control Win 64 Runtime and connected the IO directly in the ethernet port of my computer. This works fine & fast! The modules get an address assigned and I'm able to read the IO.

    So I am pretty sure it is some (bad/weird) configuration of the server which holds all the VM's of the company. Since this is not a Codesys error, as it works on my PC, I'll go and figure things out with the IT-department.

    If this error appears again I'll make to sure to attach a PLC log for future reference. If a solution is found, I'll update you as well.

    Keep you informed.

     

Log in to post a comment.