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

  • audi0615

    audi0615 - 2020-05-16


    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

    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.
    check this clips here:

    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


    2) you could set the networkname instead of mac address



    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.