• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multiple netrepns
#2
Hi there,

when netPI is manufactured the Ethernet network Controller who is responsible for the PROFINET communcation is burned with a unique MAC address. So each netPI has a different MAC address on PROFINET side.

But there is one trick you need to know. In order to let netPI customers use the PNS example directly along with the corresponding GSDML without the need for any changes, the PROFINET device name in the GSDM file is preset to "netx51repns" and also in the example in the "packethandlerpns.c" file is preset to "netx51repns" with the consequence that each netPI with the same unchanged example will get the same name on PROFINET. But this is not allowed and if a device detects a second device with the same name it goes bus off.

Following the API manual located on github as well I see two possitilies. I prefer this one: On page 41 it says to have bit D17 set in "ptSetConfig->ulSystemFlags" with the #define PNS_IF_SYSTEM_NAME_IP_HANDLING_BY_STACK_ENABLED. With this setting the network controller ignores any configured name of station by the example and takes the name from the internal FLASH memory. Since netPI is fresh the name will be zer in the first place. With this bit D17 settings you start both netPIs with the example, but this time both of them have no names and no netPI goes off. Now comes the Ethernet Device Utitily which is used to set unique names on PROFINET stations and now set name1 for netPI1 and name2 for netPI2.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
multiple netrepns - by royazriel - July-18th-2021, 01:03 PM
RE: multiple netrepns - by Armin@netPI - July-18th-2021, 02:54 PM
RE: multiple netrepns - by royazriel - July-20th-2021, 01:00 PM
RE: multiple netrepns - by Armin@netPI - July-20th-2021, 01:14 PM
RE: multiple netrepns - by royazriel - July-20th-2021, 01:19 PM
RE: multiple netrepns - by Armin@netPI - July-20th-2021, 02:34 PM
RE: multiple netrepns - by Armin@netPI - July-20th-2021, 03:00 PM
RE: multiple netrepns - by royazriel - July-20th-2021, 03:21 PM
RE: multiple netrepns - by Armin@netPI - July-21st-2021, 06:48 AM
RE: multiple netrepns - by royazriel - July-21st-2021, 07:47 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)