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

MAC-address in project

NBCC
2018-06-20
2018-06-22
  • NBCC - 2018-06-20

    Hello everybody,

    I was wondering if it is possible to get a MAC-address from a device.
    I tried with the I&M0- function. I got 60 bytes of data but i don't know if the MAC-address is in it.
    In what format do i get it anyway? Or are there other solutions to obtain a MAC-address from a device.

    Thanks in advance!

     
  • eschwellinger

    eschwellinger - 2018-06-20

    Hi,
    which plc which version?

    BR
    Edwin

     
  • NBCC - 2018-06-21

    I don't think the PLC type matters in this case.
    It's more about the profinet slaves. And we use a lot of different ones.

     
  • eschwellinger

    eschwellinger - 2018-06-21

    Hi,
    you mean you want to get the information which pn devices has which mac address?

    BR
    Edwin

     
  • NBCC - 2018-06-21

    Edwin Schwellinger hat geschrieben:
    Hi,
    you mean you want to get the information which pn devices have which mac address?
    BR
    Edwin

    Yes, correct

     
  • eschwellinger

    eschwellinger - 2018-06-21

    Hi,

    ProfinetCommon Lib -> DCP_Identify function block

    BR
    Edwin

    IMG: DCP_Identify.jpg

     
  • NBCC - 2018-06-22

    Thanks for the reply.
    I checked the function block and it worked fine in Codesys SP12.
    However, when i use the SP8 i get the error "not implemented".

    So i assume this is only starting from SP12?

    kind regards

     
  • eschwellinger

    eschwellinger - 2018-06-22

    yes this might be possible.
    BR
    Edwin

     

Log in to post a comment.