• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GSDML File
#5
Hi Roy,

this will not work and is expected. PROFINET is intolerant against any difference between the physical submodule configuration (set by the example) of a slave and the theoretic one given by the GSDML file. The PROFINET master will report something like "hey, there is a module configured in the GSDML, but the real slave tells me is it not there". So he will not go into data exchange with this slave.

If you want to support multiple submodules you have to forget the app.h file in the first instance and its two "simple" values configuring one input submodule and one output submodule. Instead you have to modify the underlying c-source code yourself to meet your demand. The file is PacketHandlerPNS.c and the function SetModulConfig(). There you see by the way the two #defines of the app.h beeing used and configuring the single input and the single output submodule. You will also recognize that with the pointer in the function you can can walk along each new submodule you want to configure. You could write and extend it as a loop in junks of same size or copy the existing source code x times depending on the number of your submodules in mind each having a different size. Do not forget to adjust the line ptApi->ulNumSubmodItems = 0x06 accordingly to the overall number of submodules configured. Also increase the value ptSubmod->usSlot in each new submodule configured.

There is one remark: while your pointer for the submodules (&ptSetConfigReq->tData.tModuleConfig) is moving and moving forward please do not forget that the overall memory occupied to place the submodule list is not endless. The size of a configuration message packet sent to netX mailbox and especially the data part is not more than 1560 bytes. I counted 40 bytes that each submodule configuration strcuture needs. Roughly this makes 1560 / 40= 39 submodules in max, minus the 3 submodules already been preconfigured and minus some header information will result in estimated 34 submodules in maximum.

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

  Reply


Messages In This Thread
GSDML File - by royazriel - February-9th-2020, 01:21 PM
RE: GSDML File - by Armin@netPI - February-9th-2020, 01:53 PM
RE: GSDML File - by Armin@netPI - February-9th-2020, 02:48 PM
RE: GSDML File - by royazriel - March-17th-2020, 05:12 AM
RE: GSDML File - by Armin@netPI - March-17th-2020, 07:22 AM
RE: GSDML File - by WalterSchaefer - October-7th-2020, 08:14 PM
RE: GSDML File - by Armin@netPI - October-7th-2020, 08:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cannot execute file: Exec format error - NETPI tuliosouza 1 1,803 January-13th-2022, 01:17 PM
Last Post: Armin@netPI
  GSDML file milesie 2 4,804 February-18th-2020, 05:18 PM
Last Post: Armin@netPI
  file folder with netPI RTE MGharat 1 2,182 December-5th-2019, 07:04 AM
Last Post: Armin@netPI
  [SOLVED] Faulty devices description file from Github Whatzittoya13 5 3,610 March-11th-2019, 11:58 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)