Entry type: FAQ, Entry ID: 50575132, Entry date: 06/06/2011
(0)
Rate

How do you reset the IP address and device name of an I device?

  • Entry
  • Associated product(s)

Description
As from firmware V3.2 the S7-300 CPUs, the IM154-8 CPU and the IM 151-8 PN/DP with integrated PROFINET interface can be configured as I devices. The S7-400 CPUs with integrated PROFINET interface can be configured as I devices as from firmware V6.0.
If the topology of the plant is known, then you can integrated the I devices into the plant without any previous configuration. The address assignment is done by the higher-level IO controller based on the topology.

The requirement for this procedure is that the I device has neither an IP address nor a device name. Brand-new modules meet this requirement. The IP address and the device name are stored permanently in the CPU after the first integration into the network. There are two ways of deleting the data in the CPU.

  • Reset IP address and device name via STEP 7
  • Reset the IP address and device name via the user program using the system function block SFB104 "IP_CONF"

Reset IP address and device name via STEP 7
As from STEP 7 V5.5. it is possible to reset modules to the ex-works setting via the menu "Target System > Edit Ethernet Node".
In the "Edit Ethernet Node" dialog you click the "Browse..." button to select the MAC address of the module that is to be reset to the ex-works setting. Then click the "Reset" button. This deletes both the IP address and the device name from the module.


Fig. 01

Reset the IP address and device name via the user program using the system function block SFB104 "IP_CONF"
The S7-300 CPUs, the IM154-8 CPU and the IM 151-8 PN/DP with integrated PROFINET interface support the SFB14 "IP_CONF" as from firmware V3.2. The S7-400 CPUs with integrated PROFINET interface support the SFB104 "IP_CONF" as from firmware V6.0.

The SFB104 "IP_CONF" is for program-controlled configuration of the integrated PROFINET interface of the CPU. The previously valid configuration data is overwritten.

Using the SFB104 "IP_CONF" you can configure the data below for the integrated PROFINET interface.

  • IP parameters: IP address, subnet mask and router IP address
  • PROFINET IO device name if the CPU is being operated as a PROFINET IO device

Save the configuration data in a data block (configuration DB).

Call the SFB104 "IP_CONF" cyclically in the user program of the CPU.
You set the "REQ" input parameters to the value "true" in OB100.
At the input parameter "CONF_DB" you use a pointer to refer to the configuration data stored in the configuration DB.


Fig. 02

When the SFB104 "IP_CONF" is called the IP parameters and device name stored in the configuration DB must have the value "0" in order to reset the IP address and device name. For device names it is sufficient for the first byte to be defined with the value "0".


Fig. 03

Notes

  • You can use the program-controlled setting of the IP configuration with the SFB14 "IP_CONF" instead of configuring with STEP 7. However, it only becomes effective when you have specified explicitly in the hardware configuration that assignment of IP parameters is to be done "using a different method" than via the hardware configuration.
  • The S7-300 and S7-400 CPUs can also be reset to the as-delivered status by switch.

Additional information

  • More information about configuring an I device is available in the manual "SIMATIC PROFINET System Description" in Entry ID 19292127.
  • More information about resetting an S7-300 CPU to the as-delivered status by switch is available in the manual "SIMATIC S7-300 CPU 31xC and CPU 31x: Setting Up", in section 9.5, in Entry ID: 13008499.
  • More information about resetting an S7-400 CPU to the as-delivered status by switch is available in the manual "SIMATIC S7-400 Automation System S7-400 CPU Specifications, in section 3.4, in Entry ID: 44444467.

Error details
Detailed error description
Help us to improve Online Support.
The page requested cannot be displayed. Please contact the webmaster.
Contact to webmaster