EtherCAT Master : Set MAC address of NIC by IEC code or file?

audi0615
2020-05-16
2020-05-17
  • audi0615

    audi0615 - 2020-05-16

    Hi.

    Suppose I have 100 PLCs which have same hardware (i.e. raspberry PI) and the PLC use EtherCAT as a fieldbus.

    1) Is it possible to deploy a project by creating offline bootapp and copy it to 100 PLCs?
    2) As every PLC has a unique MAC address of ethernet adapter, i need to modify the MAC address after the bootapp is coped to a new PLC, is this can be done by IEC Code or by modifying a configuration file?

     
  • eschwellinger

    eschwellinger - 2020-05-17

    Hi,
    1) yes just use CODESYS Automation Server doing this.
    Add the Edge Gateway to the PI and have everything from remote under control - deploy - update - view webvisu - with next version
    even dowload by CODESYS will be possible via Automation Server.
    https://store.codesys.com/cas.html
    check this clips here:
    https://www.youtube.com/results?search_query=CODESYS+Automation+server

    Sure it is possible to do offline by copy the bootproject in /var/opt/codesys/PlcLogic directory (copy all files to have all) and change / add the application name
    in /etc/CODESYSControl_User.cfg

    [CmpApp]
    Bootproject.RetainMismatch.Init=1
    Application.1=Application
    Application.Load=1

    2) you could set the networkname instead of mac address

    BR
    Edwin

     

    Last edit: eschwellinger 2020-05-17
  • audi0615

    audi0615 - 2020-05-17

    Thank you very much for your help Mr. Edwin

    I would try Automation Server.

     

Log in to post a comment.