• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NetPi as Profinet slave with other slaves present
#1
Hi,

is it possible to configure the netpi to work alongside with one or multiple other profinet slave devices?

In the profinet example the configuration for the slots submodules and other relevant bits reside in this file:
netpi-netx-programming-examples/examples/sources/PacketHandlerPNS.c

Which are the relevant configuration options to be considered on the master?
What are the important configuration parameters in the code and do I need to change the GSDML configuration file as well?

Best regards
Reimar
  Reply
#2
515 Wrote:is it possible to configure the netpi to work alongside with one or multiple other profinet slave devices?

All three examples we provide are configuring netPI (netX chip) in switched mode for its two ported RJ 45 Real-Time Ethernet interface. This means incoming telegrams directed to other slave devices in the network are forwarded to the second port to reach the other slaves. So in all cases multiple slave devices can be used at the same time netPI is running.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
515 Wrote:Hi,
Which are the relevant configuration options to be considered on the master?
What are the important configuration parameters in the code and do I need to change the GSDML configuration file as well?

For all three example the relevant part to be changed to your demand is in the file https://github.com/Hilscher/netPI-netx-p...udes/App.h. Here the number of input and outputs are declared in the two byte arrays. They are set to 10 and 4 bytes. Change it to your data length accordingly.

Of course you have to modify the GSDML file accordingly https://github.com/Hilscher/netPI-netx-p...170216.xml. The most relevant keys here are <IOData> for inputs and output where the 10 bytes and 4 bytes example length are declared as well. Change those to your new length ... and of course all the texts for the engineering software telling it "10bytes inputs" and "4 bytes outputs".

More is not needed.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#4
Is there anything special about editing the xml file? Because WorkVisual did not have a problem using the edited file but the actual SPS did not want to load the file. The original example xml file was showing up alright.

Could you possibly provide correct examples of following sizes?
IN/OUT 256/256 Bytes
IN/OUT 128/128 Bytes
  Reply
#5
No, editing XML file is done as millions of other XML files. It doesn't matter if in our case they are called GSDML files. XML is XML.

It is not usual for us to provide customer specific containers, source code modifications, images for netPI. This is why I will not provide examples.

Take the file https://github.com/Hilscher/netPI-netx-p...170216.xml as provided please. Then for the simplest test you can think of just change in line 91 the value "10" to "256" and in line 110 the value "4" to "256". This is all what is needed.

You must admit that this minor change is not worth it to acquire a hilscher modified new XML file from us, don't you agree?

What do you mean by the way with "actual SPS". Which PLC are you using and which engineering/configuration software in conjunction with this PLC?


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

  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  communication cycle as EtherCAT slave tad 2 2,114 April-20th-2021, 11:14 AM
Last Post: tad
  Profinet to Siemens PLC j.langlois 4 3,503 January-26th-2021, 06:11 PM
Last Post: j.langlois
  Profinet name lost after reboot Dipro 7 4,803 November-16th-2020, 01:07 PM
Last Post: Armin@netPI
  Profinet stopped working (spidev spi0.0: SPI transfer timed out) Schranz 7 5,015 November-2nd-2020, 04:20 PM
Last Post: Armin@netPI
  netPI profinet device name WalterSchaefer 2 2,487 October-7th-2020, 11:10 AM
Last Post: WalterSchaefer
  how to pick up PROFINET data and store them to OPC UA server on Node-RED/netPI. tad 7 5,571 March-16th-2020, 10:21 AM
Last Post: Armin@netPI
  PROFINET IO startup compilation arpan.patel@slscorp.com 3 2,806 February-24th-2020, 12:47 PM
Last Post: Armin@netPI
  Profinet Startup Time Schranz 3 3,395 November-18th-2019, 03:22 PM
Last Post: Armin@netPI
  Codesys RTE profinet echteler 2 3,361 September-25th-2019, 09:56 AM
Last Post: Armin@netPI
  normal ethernet port using for Profinet MGharat 4 4,636 August-7th-2019, 10:39 AM
Last Post: hannes

Forum Jump:


Users browsing this thread: 3 Guest(s)