Hi Girish,
Here’s what I heard from my colleague in Sweden:
If the host application needs to change the IP settings, it is done through the Network Configuration object (04h). In Profinet there is usually not a need for the host application to do this because in most case4s the Profinet Master/PLC set’s the IP address. If you want to implement this functionality it’s important that you do not save a local copy of the IP settings because it can be changed from another tool, and then the new value is the valid one.
The rule is: Only write to the IP settings when it really needs to be changed (do not write at every startup), and only read IP settings if it needs to be displayed somewhere. If the host application only needs to display the IP settings somewhere (e.g. on an LCD display), it is more convenient to use attribute 16 of the Ethernet Host Object (F9h). This attribute is written to the host application every time the IP settings change.
Regarding the Sation Name/Device Name, he strongly recommends not to change this with the host application. This is the parameter that identifies a Profinet slave on the network. It is something the end user programs when the set up the Profinet network via a commissioning tool, and it is only needed on the network. If you want to display the current device name somewhere that can be read, this can be done with attribute 20 in the Network Configuration Object (04h).
The GSD file should have nothing to do with either the IP or Device name