show the entry list
Industrial Ethernet S7-300/400 CPs -- Setting up and parameterizing hardware -- Initializing and parameterizing modules
What should you watch out for when a MAC address is entered for the PROFINET interface or GBIT interface in the configuration of the Industrial Ethernet CP343-1/CP443-1?
How do you configure a shared device when you are using a CPx43-1 Advanced as PROFINET IO controller and the GBIT interface of the module is networked?
Which "local_device_id" do you parameterize in order to establish a connection to FB65 "TCON" for open communication via Industrial Ethernet?
Which Industrial Ethernet CPs support the DHCP Option 12 (Host Name) and how do you configure the DHCP Option 12?
What should you watch out for when parameterizing the watchdog time when a ring redundancy is established with the Media Redundancy Protocol?
How do you use an Industrial Ethernet CP or SCALANCE S as a gateway?
How do you disable the "Link Layer Discovery Protocol" function at the ports of an IE CP of S7-300 or S7-400?
Where can you find sample S7 programs and documentation for communication via gateways and network components, and for security in networks on the SIMATIC NET Quick Start Collection?
What should you watch out for when operating a CP443-1EX20 V2.0 on a CPU V5.1?
Changing the configuration data of users for CP 343-1 IT and CP 443-1 IT
Loading the configuration via LAN into the IE-CP in "STOP" mode
Special points when setting the LAN medium for Industrial Ethernet CPs
Starting up automation systems with Industrial Ethernet without previous node initiation via MPI
Rejected diagnostics connection via TCP/IP protocol after changing the MAC address
Establishing an online connection to an S7-300/S7-400 CPU through several Ethernet interfaces
What should you pay attention to when formatting the file system in the S7-300 and S7-400 Industrial Ethernet CPs?
What should you watch out for when replacing the CP443-1 (6GK7443-1EX11-0XE0) with a CP443-1 (6GK7443-1EX20-0XE0 V1.0) in STEP 7 V5.4 SP3?
What is the meaning of the configuration option "Activate Web server" with CP443-1 EX20?
Why with CP443-1 Advanced is a different firmware version than the module displayed in the C-PLUG info text in the NCM S7 Diagnostics?
Which options are available for assigning the PROFINET IO controller a new IP address?
How can you configure an S7 CP during runtime?
How do you disable the S7 routing functions?
Which manufacturer ID, in other words OUI (Organizationally Unique Identifier), does SIEMENS AG use for the MAC addresses of network-compatible devices?
How can you protect the S7-300/400 against unauthorized access from the LAN (local area network)?
What should you watch out for when using the function block FB55 "IP_CONFIG" to configure an Industrial Ethernet CP?
Why are some of the newer versions of the names of SIMATIC NET modules not used in the hardware catalog?
Why can't my SIMATIC S7-300 Ethernet CP run as many S7 communication connections as specified?
How does connection multiplexing work and how do you configure it for SIMATIC S7-300 Ethernet CPs?
How can you configure an S7 CP during runtime?
Part number:

Description:
There are application areas in which it is best not to set up the communications connections via the configuration interface (NetPro) of STEP 7, but program-controlled via a specific application. This option is offered by the function block FB55 "IP_CONFIG".

This functionality is only supported by the following SIMATIC CPs:
 
Type MLFB
CP343-1 6GK7 343-1EX21-0XE0
CP343-1 6GK7 343-1EX30-0XE0
CP343-1 Lean 6GK7 343-1CX00-0XE0
CP343-1 Lean 6GK7 343-1CX10-0XE0
CP343-1 IT 6GK7 343-1GX20-0XE0
CP343-1 Advanced 6GK7 343-1GX21-0XE0
CP443-1 6GK7 443-1EX20-0XE0
CP443-1 Advanced 6GK7 443-1EX40-0XE0
CP443-1 Advanced 6GK7 443-1EX41-0XE0

Requirements:
You must have at least STEP 7 V5.2 SP1 to be able to implement SFB55/FB55.

Instructions:
Proceed as follows to configure a CP that is to keep its configuration during runtime:
 
No. Procedure
1 Open or create a STEP 7 project. Make your hardware configuration.
2 Open the Properties of your CP and in the "IP Configuration" tab you select the item "Set IP address in user program".


Fig. 01

3 Load the station. Once the CPU switches to the RUN state you see that the SF LED is still lit on the CP. This is because the CP has not yet received its complete configuration. Only once you have called FB55 "IP_CONFIG" does the CP apply the IP address from the data block and switch to the RUN state.
4 In order to add FB55 to your project you select "File -> Open" in the SIMATIC Manager, switch to the "Libraries" tab and there you select "SIMATIC_NET_CP".


Fig. 02

5 Now you select FB55 depending on your controller (300/400) and copy it to the blocks of your CPU.
6 Install the configuration DB and call FB55 in your user program.

Note:
Information on the setup and structure of the configuration DB is available in the manual "S7 CPs for Industrial Ethernet - Configuring and Commissioning", chapter 6 "Programmed Communication Connections". General information on FB55 is also in this manual in section 7.5 "FB55 IP_CONFIG for Programmed Communication Connections". The complete manual is available in Entry ID 8777865 or on your hard disk under 'Start -> SIMATIC -> Documentation -> English -> NCM S7 Manuals -> S7 CPs for Industrial Ethernet".

Attached is a sample configuration DB.

Attachment 1: DB101_e.pdf ( 16 KB )

7

If the configuration option is not selected (see point no. 2), calling FB55 does not succeed. Provided for such a case in the manual is a specific error message (STATUS) that is also supplied by the S7-300 series CPs.

STATUS = 0x8B10
"There is no setting for configuring via the user program."

Error message of the S7-400 CP:
With 400 series CPs the STATUS = 0x80A4 is returned. This status value is not documented for FB55 and comes from a lower-level SFC. It means:

"The K bus connection between CPU and CP is not set up".

The status value in this case is equivalent to status value 0x8B10 for S7-300 described in the manual.

Reason for the differences between S7-300 and S7-400:
The different status values are due to the system-specific realization of data transmission between CPU and CP in S7-300 and S7-400 respectively.

The attached download contains the archived STEP 7 project with the functions and data block described above. In the user program FB55 is called with a rising edge at input 0.0 and thus the CP is configured.

Attachment 2: STEP7_Proj.zip ( 269 KB )  

 Entry ID:21988384   Date:2005-09-06 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour