show the entry list

WinCC flexible ES -- Configuring and programming communication -- Configuring communication to S7 
What should you watch out for when connecting a SIMATIC HMI device configured with WinCC flexible ES to a SIMATIC ET 200 CPU? 
How do you configure a connection between WinCC flexible Runtime (PC/Panel) and a SIMATIC S7-300/S7400 via PROFIBUS/MPI? 
How do you integrate a WinCC flexible project in STEP 7? 
How can you use one and the same WinCC flexible operator panel configuration for multiple controllers? 
How can you visualize the current status of the CPU on a WinCC flexible operator panel? 
How can you have any number of automation systems addressed one after the other by the "Change Connection" function with WinCC flexible PC Runtime or a Panel? 
How do you use WinCC flexible to configure communication between an operator panel and an S7 station via S7 routing? 
What should you watch out for when setting up a connection between S7-200 and SIMATIC Panels or WinCC flexible PC Runtime and what are the options? 
Which ports are used by WinCC flexible? 
How can you increase the performance of HMI devices? 
Which settings do you need to make to access a panel and an S7-200 controller via TeleService? 
How do you configure a connection between WinCC flexible Runtime (PC or Panel) and a SIMATIC S7-300 / S7-400 via Industrial Ethernet? 
How do you configure a PROFINET connection to an S7 controller in WinCC flexible? 
How do you specify the MPI address of an FM in the HMI configuration tool if the address doesn't appear in the HW Config and is thus unknown? 
How do you connect a panel to a SIMATIC H station? 
What settings have to be made for a PROFIBUS DP connection between a panel or a PC with WinCC flexible Runtime and an S7-200? 
Why is the communication driver marked "orange" in WinCC flexible when another Ethernet communication is added to an existing MPI/DP? 
PROFIBUS communications between Windows-based operator panel (configured with WinCC flexible 2004) and WinAC Basis / WinAC RTX V4.0 
How do you configure communication between the WinCC flexible Runtime and WinLC via SOFTBUS on a PC? 
How do you configure communication between WinCC flexible Runtime or a Windows-based operator panel and an S7-200 (CP 243-1) via Ethernet? 

What should you watch out for when connecting a SIMATIC HMI device configured with WinCC flexible ES to a SIMATIC ET 200 CPU?Go to beginning
Part number:

Configuration Notes
Please note the following points if you wish to connect a SIMATIC HMI operator panel to an ET 200-CPU.

Properties of the ET 200-CPUs

  • ET 200S CPU
    The IM151-7 CPUs of ET 200S have an MPI/ DP interface.
    In the MPI subnetwork you can use the HMI operator panel to operate the ET 200S CPU via the integrated MPI interface.
    On the PROFIBUS DP the integrated DP interface of the ET 200S CPU can only be used as a DP slave. This means that in addition to the HMI operator panel you need a DP master (S7-300 CPU316-2DP, for example) that operates the IM 151-7 CPU as a DP slave.

    If the IM151-7 CPU is operated without DP master on the PROFIBUS DP, communication with the HMI operator works, but a bus error is displayed on the IM151-7 CPU.

    Note
    With the DP master module (order number 6ES7138-4HA00-0AB0), which you slot directly next to the ET 200S CPU, you can add a DP interface to the ET 200S, which is configured as DP master. With this master interface module it is then possible to operate the ET 200S without any other DP master on the PROFIBUS DP.

    Requirements
    In order to be able to use the DP interface on the master interface module you require a CPU, order number 6ES7151-7AA10-0AB0, and firmware version V2.1 or higher.

  • ET 200X CPU
    The BM147-1 CPUs of ET 200X have an MPI/ DP interface.
    In the MPI subnetwork you can use the HMI operator panel to operate the ET 200X CPU via the interface parameterized as MPI.
    On the PROFIBUS-DP the ET 200X CPU (BM 147-1) can only be used as a DP slave. This means that in addition to the HMI operator panel you need a DP master (S7-300 CPU316-2DP, for example) that operates the BM 147-1 as a DP slave.

    The BM147-2 CPUs of ET 200X have an MPI/ DP interface that can be parameterized as MPI or as a DP slave, and another DP master interface.
    In the MPI subnetwork you can use an HMI operator panel to operate the ET 200X CPU via the interface parameterized as MPI.
    On the PROFIBUS DP the ET 200X CPU BM 147-2 can operate on the one hand as a DP slave with an additional DP master (an S7-300 CPU 315-2DP, for example). On the other hand the BM147-2 CPU can also communicate as DP master with the HMI operator panel via the DP master interface.

Warning
The ET 200 CPU is configured in the SIMATIC Manager in a
SIMATIC S7-300 station.

Options for connecting an HMI operator panel to the ET 200 CPUs

Connecting the HMI operator panel via MPI to the ET 200 CPU
You can connect the HMI operator panel via MPI directly to an IM151 CPU or BM147 CPU.


Fig. 01

Setting in the STEP 7 Hardware Configuration
In the Properties dialog of the MPI/DP interface of the ET 200 CPU you set the type of interface to MPI and then connect the station to the MPI subnetwork.


Fig. 02

Settings in the STEP 7 Hardware Configuration of the SIMATIC HMI station
Double-click the HMI MPI/DP interface of the HMI station and network it with the ET 200 CPU via MPI.


Fig. 03

Enabling the connection in WinCC flexible ES
Open the HMI station with WinCC flexible ES. Under Communication > Connections you enable the connection already created to the ET 200 CPU.

Note
The "Cyclic operation" option must be deselected.


Fig. 04

Connecting the HMI operator panel via PROFIBUS DP to the ET 200 CPU

  1. Version: CPU 316-2DP as DP master, ET200 CPU as DP slave
  2. Version: ET200S CPU with DP master module
  1. Version: CPU 316-2DP as DP master, ET200 CPU as DP slave

The ET 200 CPU is operated as DP slave on the PROFIBUS DP subnetwork. This means that in addition to the HMI operator panel and the ET 200 CPU (IM151 CPU or BM147 CPU) you need a DP master (S7-300 CPU 316-2DP, for example) on the PROFIBUS DP subnetwork.


Fig. 05

Settings in the STEP 7 Hardware Configuration of the ET 200 CPU for supporting ALARM_S messages
In order for the ET 200 CPU to support the ALARM_S service, in the Properties of the DP interface of the IM151 CPU or BM147 CPU under Operating Mode you must enable the option Test, commissioning, routing.


Fig. 06

Settings in the STEP 7 Hardware Configuration of the S7-300 DP master
Once you have networked the ET 200 CPU with PROFIBUS DP, open the Hardware Configuration of the DP master station (CPU 316-2DP) and there you configure the ET 200 CPU as a DP slave.


Fig. 07

Settings in the STEP 7 Hardware Configuration of the SIMATIC HMI station
Double-click the HMI MPI/DP interface of the HMI station and network it with the ET 200 CPU via PROFIBUS.


Fig. 08

Enabling the connection in WinCC flexible ES
Open the HMI station with WinCC flexible ES. Under Communication > Connections you enable the connection already created to the ET 200 CPU.

Note
The "Cyclic operation" option must be deselected.


Fig. 09  

  1. Version: ET200S CPU with DP master module

The ET 200S is operated with the DP master interface module as DP master on the PROFIBUS DP. The HMI operator panel is connected to the master module via PROFIBUS.


Fig. 10

Settings in the STEP 7 Hardware Configuration
Network the DP master module of the ET 200S with a newly created PROFIBUS network.
The master interface module is located in the Hardware Catalog in the project tree from which you configured the IM151-7 CPU.


Fig. 11

Settings in the STEP 7 Hardware Configuration of the SIMATIC HMI station
Double-click the HMI MPI/DP interface of the HMI station and network it with the DP master module of the ET 200 CPU via PROFIBUS.


Fig. 12

Enabling the connection in WinCC flexible ES
Open the HMI station with WinCC flexible ES. Under Communication > Connections you enable the connection already created to the ET 200 CPU.

Note
The "Cyclic operation" option must be deselected.


Fig. 13

Connecting the HMI operator panel (MPI) via routing (CPU 316-2DP: DP Master) to the ET 200-CPU (DP-Slave)
THe ET 200 CPU (IM151 CPU or BM147 CPU) is operated as a DP slave on an S7-300 CPU 316-2DP (DP master). The HMI operator panel is connected to the S7-300 via MPI. Via routing (MPI <-> PROFIBUS DP) a connection is set up between the HMI operator panel and the ET 200 CPU.


Fig. 14

Settings in the STEP 7 Hardware Configuration of the ET 200 CPU for supporting ALARM_S messages
In order for the ET 200 CPU to support the ALARM_S service, in the Properties of the DP interface of the IM151 CPU or BM147 CPU under Operating Mode you must enable the option Test, commissioning, routing.


Fig. 15

Settings in the STEP 7 Hardware Configuration
Once you have networked the ET 200 CPU with PROFIBUS DP, open the Hardware Configuration of the DP master station (CPU 316-2DP) and there you configure the ET 200 CPU as a DP slave. The S7-300 station must also be networked with MPI.

 
Fig. 16

Settings in the STEP 7 Hardware Configuration of the SIMATIC HMI station
Double-click the HMI MPI/DP interface of the HMI station and network it with the DP master module of the S7 -300 CPU (CPU 316-2DP) via MPI.


Fig. 17

Enabling the connection in WinCC flexible ES
Open the HMI station with WinCC flexible ES. Under Communication > Connections you enable the connection already created to the ET 200 CPU.

Note
The "Cyclic operation" option must be deselected.


Fig. 18

Overview: HMI operator panels with ET 200 CPU
 

HMI operator panel

Communication
HMI operator panel
with
ET 200-CPU

Alarm_S messages supported

ProAgent
options package supported
KTP400 Basic - - -
KTP600 Basic X1) - -
KTP1000 Basic X1) - -
TP1500 Basic - - -
OP 73micro - - -
TP 170micro - - -
TP 177micro - - -
OP 77A X - -
OP 77B X X -
TP 170A X - -
TP 177A X - -
TP 170B X X -
TP 177B X X -
TP 177B 4" X X -
OP 170B X X -
OP 177B X X -
Mobile Panel 170 X X -
Mobile Panel 177 X X -
TP 270  X X X
TP 277  X X X
OP 270 X X X
OP 277 X X X
MP 177 X X X
MP 270 X X X
MP 270B X X X
MP 277 X X X
Mobile Panel 277 X X X
Mobile Panel 277 IWLAN - X X
Mobile Panel 277F IWLAN - X X
MP 370 X X X
MP 377 X X X
ProTool/Pro RT X X X
WinCC flexible RT X X X
1) Applies only for the DP version of this operator panel

Note
More information on configuring Alarm_S messages and the display on the operator panel is available in the Support Shop in Entry ID: 24013249.

How do you configure a connection between WinCC flexible Runtime (PC/Panel) and a SIMATIC S7-300/S7400 via PROFIBUS/MPI?Go to beginning
Part number:

Contents
The procedure is given in the attached PDF document with the following contents.

1 Introduction
2 Preliminary Considerations
   2.1 When should you use an HMI station and when a PC station?
   2.2 Which PROFIBUS CP should you select?
3 Connecting a Panel via PROFIBUS
   3.1 Requirements
   3.2 ‪‪Configuration in STEP 7 and WinCC flexible as well as on the panel
4 Connecting WinCC flexible Runtime to SIMATIC S7-300/400 Without
   Station Configuration Editor
   4.1 Requirements
   4.2 Connecting an HMI station
   4.3 Connecting a PC station
5 Connecting a WinCC flexible Runtime to SIMATIC S7-300/400 With
   Station Configuration Editor
   5.1 Requirements
   5.2 Connecting an HMI station
   5.3 Connecting a PC station

WinCC_flexible_Kommunikation_Profibus_V10_e.pdf ( 995 KB )

Keywords
300 series, 400 series, Connection, Connect, Operator panel, Display, Communication, Drivers, Controller, PLC, MPI/DP interface, IF1B MPI/DP, Baud rate, Address, Only master on the bus, Controller connection

How do you integrate a WinCC flexible project in STEP 7?Go to beginning
Part number:

Description
The following points are described below:

  1. Integration of a WinCC flexible project in STEP 7.
  2. Possible causes of error when it is not possible to integrate a WinCC flexible project in STEP 7.

Instructions
 
No. Integration of a WinCC flexible project in STEP 7
1

Proceed as follows to integrate a WinCC flexible project in STEP 7.

  1. Open the WinCC flexible configuration.
  2. Select the menu command "Project > Integrate in STEP 7...".
    The "Integrate in STEP 7 projects" dialog opens.
  3. Select the relevant STEP 7 project in the dialog box.
    If the project you desire is not listed, navigate via the search field to the folder in which the STEP 7 project is located.
    Integration is executed once you select the STEP 7 project.


Fig. 01

Note
The STEP 7 project does not have to be open for this.

2

Parameterization of the connection / communication partner
In the "Stand alone" mode you have set all the connection parameters to the controller manually.
In the "Integration" mode you can define the station via which the communication partner is to be addressed using the selection menu. The addresses are then transferred automatically.
Furthermore, using this measure with the tags, you can access the symbolic connection.

  1. Open the STEP 7 project in which you previously integrated the WinCC flexible project.
  2. Mark the HMI station and double-click to open the "Configuration" of the HMI station.
  3. Open the "Properties" of the operator panel's interface and define the interface and address.


Fig. 02

  1. Switch to the WinCC flexible configuration and open the "Connections" in the project tree via "Communication > Connections".
  2. Select the relevant station under the "Station".
    The "Partner" and all the other parameters are transferred automatically.

This completes integration of the WinCC flexible project.

Possible causes of error when it is not possible to integrate a WinCC flexible project in STEP 7.

If the function for integrating the WinCC flexible project is grayed out or not available, this might be due to the following reasons.

  • You must install WinCC flexible Integration, because WinCC flexible was installed before STEP 7.

    Instructions
  1. Via the Control Panel you call the WinCC flexible Setup and change the installation.
    Control Panel/Software/SIMATIC WinCC flexible  Button: Change/Delete
  2. Activate the integration of STEP 7.
    The "WinCC flexible Integration" and "STEP 7" check boxes must be checked.
    (You need the WinCC flexible installation CD for this.)

Note
If you install the STEP 7 software before installing WinCC flexible, the WinCC installation routine recognizes the installation of STEP 7 and automatically installs support for integration in STEP 7.
If making a custom installation of WinCC flexible, make sure to activate the option "Integration in STEP 7".

  • If STEP 7 is already installed and you make an update for STEP 7, e.g. by installing a Service Pack, then you have to reinstall STEP 7 Integration in WinCC flexible.

    Instructions
  1. Via the Control Panel you call the WinCC flexible Setup and change the installation.
  2. Deactivate the integration of STEP 7.
  3. Then restart the Setup and activate the integration of STEP 7.
    (You need the WinCC flexible installation CD for this.)

You cannot integrate Micro Panels, e.g. a TP177micro, into STEP 7.

How can you use one and the same WinCC flexible operator panel configuration for multiple controllers?Go to beginning
Part number:

Introduction:
When creating serial plants, the question always arises as to how you can use one HMI configuration for multiple plants without having to change the address parameters for the PLC in the configuration.

The aim is to create just one HMI configuration and to change the address parameters for the controller connection to the PLC at Runtime and store them permanently.

The following describes the procedure taking a practical example.
You can use the function on operator panels that support Script and Archive functions.
 
No. Procedure
1 Function description
The following parameters are assigned to the "Change connection" system function via IO fields:
  • Address
  • Slot
  • Subrack

The name of the connection is defined and stored, and cannot be changed.

The connection data predefined via the IO fields is written to an archive by script. When you restart the operator panel, a second script reads out this archived connection data.

The operator panel then sets up a connection to the PLC using this predefined connection data.

2 Create an HMI connection
First you configure a "standard connection" for your operator panel.
If the operator panel does not find any stored connection data, it attempts to use this fixed address to set up a connection to the PLC.


Fig. 01

3 Define tags
You need three internal tags to transfer the parameters to the "Change connection" system function.
A further internal tag is needed to ensure that the script used is called only once when the operator panel is restarted.

Two tags with controller connection were used for test purposes.

Note:
For later use, you must of course make sure that the data blocks and markers used to execute the program are identical in all the PLCs.

4 Script description for MP 277 / PC Runtime:
(The specifications in the "brackets" refer to the PC Runtime project.)

Two scripts are used in the sample projects:

  1. WinCE_Write_data / (WinPC_Write_data)
  2. WinCE_Read_data / (WinPC_Read_data)

WinCE_Write_data / (WinPC_Write_data)
The "WinCE_Write_data" script is executed via the "Save PLC data" button.
The connection data are stored via this script in a "Text" file.

You can change the storage location and the name of the file in line 13 (13 and 14).

In lines 37, 38 and 39 (63, 64 and 65) you can also change the tags used.

WinCE_Read_data / (WinPC_Read_data)
The "WinCE_Read_data" script is executed just once via the "Start" page of the operator panel.
This script reads out the previously stored connection data and executes the "Change connection" system function.

You can change the storage location and the name of the file in line 18 (21).

In lines 51, 52 and 53 (59, 60 and 61) you can also change the tags used.

The "Change connection" system function is executed with the tags used in line 65 (75).

Notes:

  • The source codes for Windows CE systems and PC Runtime systems are different.
  • The archive path depends on the operator panel you are using.
    Refer to the relevant manual to see which archive path your operator panel supports.
  • You should not use the internal flash memory of the operator panel, because it affects the service life of the operator panel.
5 Program description
When you start the operator panel, the plant picture "Screen 01" (Start screen) is called first.
Opening of the "Screen 01" screen causes the script "WinCE_Read_data" to be executed.

If there is no connection data stored in the archive, the operator panel first attempts to set up the connection defined and stored in the configuration.

If the correct connection data is stored, the "WinCE_Read_data" script reads out the connection data and sets up the connection to the relevant PLC via the "Change connection" system function.

You can specify and change the connection data via the plant screen "Screen 02".

Below is plant screen 02 "Change PLC connection data".


Fig. 02

Point 1: Permanent window
You can call "Screen 01" and "Screen 02" via the permanent window. You can also change the language and stop Runtime via the permanent window.

Points 2 - 4: Overview of "Plant Screen 02"

Point 2
Via the IO fields, you specify the connection data of the PLC via which the operator panel is to communicate.

Point 3
The "Save PLC data" is for executing the "WinCE_Write_data" script. The previously entered connection data is stored in an archive. If you enter new connection data, pressing the button overwrites the "old" data.

The "Change Connection" button is for executing the "Change connection" system function. The connection data is transferred from the IO fields from "Point 2" to the system function.
For test purposes, therefore, you can check in Runtime whether your connection data functions.

Point 4
Via the IO fields you can specify and read out tag values for test purposes in order to ensure that you are connected with the "right" PLC.

The attached download contains the archived WinCC flexible project with the functions described above.

Attachment 1: Project.zip ( 4517 KB )

Creation environment
The example can be used on all operator panels that support script and archive functions.
The following table lists the components that have been used to create this entry.
 
Component Product and version designation
PC operating system Microsoft Windows XP SP2
Standard tools -
Engineering tools STEP 7 5.4 SP4
HMI software WinCC flexible 2008 SP1
HMI devices MP 277 Touch, PC Runtime
Controllers CPU 315-2DP, CPU 317F-2PN/DP

Keywords:
Panel

How can you visualize the current status of the CPU on a WinCC flexible operator panel?Go to beginning
Part number:

This FAQ describes how to visualize the current status of a CPU and have it displayed reliably on a panel.

Please follow the instructions in the PDF file.

Attachment: CPU_Status_anzeigen_e.pdf ( 1066 KB )

Sample program:

1. Complete evaluation of the CPU status:

Attachment: CPU_Status_anzeigen.zip ( 6035 KB )
 
Components Product and version designation
HMI software WinCC flexible 2008 SP1
HMI Panel PC Runtime
CPU S7 300 CPU / S7 400 CPU
Software STEP 7 V5.4 SP2
 

2. Evaluate connection status without alarm display:

Attachment: CPU_Status_anzeigen_SP1.zip ( 1871 KB )
 
Components Product and version designation
HMI software WinCC flexible 2008 SP1
HMI Panel PC Runtime
CPU S7300 / S7400

Runnability and test environment:
The tables above list the components that have been used to create this entry and verify the functions described.

Keywords:
Life bit monitoring, Communication monitoring, Connection monitoring, Connection status, PLC connection interrupted, Stop, Run

How can you have any number of automation systems addressed one after the other by the "Change Connection" function with WinCC flexible PC Runtime or a Panel?Go to beginning
Part number:

This FAQ describes how to use the "Change Connection" function to address multiple controllers with just one configured connection. This FAQ covers all panels and the PC Runtime.

Please follow the instructions in the PDF file.

Attachment: 35508221_change_connection_e.pdf ( 1267 KB )

Sample program:

Attachment: 35508221_project_change_connection.zip ( 2281 KB )

Runnability and test environment:
The following table lists the components that have been used to create this entry and verify the functions described.
Components Product and version designation
HMI software WinCC flexible 2008 SP1
HMI Panel PC Runtime
CPU S7 300 CPU / S7 400 CPU

Note on using direct keys
The WinCC flexible function "Change Connection" does not change the connection of direct keys.

How do you use WinCC flexible to configure communication between an operator panel and an S7 station via S7 routing?Go to beginning
Part number:

Instructions:
If all the stations within a programmable logic controller are not connected to the same bus (subnetwork), these stations will not be directly contactable online. In order to establish a connection between these devices, there must be a router connected between them. A SIMATIC station can act as a router if it has suitable interfaces to the different subnetworks. The modules with communications capability (CPUs or CPs), which are intended to create gateways between the subnetworks, must support routing.
Refer to a component's technical documentation to establish whether it supports routing. Alternatively, open the component's object properties in NetPro or in HW Config. The "General" tab contains a brief description of the properties.
You can find information about which modules possess routing capability in Entry ID: 584459

Notes:

  • All stations must be networked in NetPro/HW Config, subject to the same requirements as with transfer via S7 routing.
  • In order to establish an S7 routing connection, all the communication partners within a STEP 7 project must be configured and loaded.


Fig. 01   
 

In Fig. 01 a routing connection has been established between the SIMATIC HMI station(1) and the SIMATIC 300 programmable logic controller. The SIMATIC 400 programmable logic controller acts as a router. This type of routing connection can be established directly in integrated projects. For this purpose, a connection is set up in the SIMATIC HMI station, and the SIMATIC 300 PLC is selected directly as the connection partner. The routing connection is detected automatically by the system.
The connection properties in WinCC flexible show that it is a routing connection.


Fig. 02  
 

You can find detailed explanations in the user manual (Entry ID 18796010) and in the online help for WinCC flexible.

Notes:

  • An S7 connection, configured via S7 routing, occupies an additional connection resource on a SIMATIC station which is used as a router. Make sure that this SIMATIC station has adequate connection resources. If this station's connection resources are inadequate, there is a possibility that an S7 connection may not be set up to / through this station. In this case, you will need to use a more high-performance SIMATIC station or change the configuration.
  • If there is any change to the network configuration of a station in the STEP 7 project (NetPro / HW Config), all the stations in the project will have to be reloaded.

What should you watch out for when setting up a connection between S7-200 and SIMATIC Panels or WinCC flexible PC Runtime and what are the options?Go to beginning
Part number:

Description
Below is a description of the settings you must make for configuring a connection between panels or WinCC flexible PC Runtime and S7-200.

Please follow the instructions in the PDF file (Attachment 1). The following points are covered in the document.

1 Connection via PROFIBUS
    1.1 Configuration in WinCC flexible
    1.1.1 Settings in the configuration
    1.2 Settings in STEP 7 Micro/WIN
2 Connection via Ethernet (CP243-1)
    2.1 Requirements
    2.1.1 Connection between S7-200 and WinCC flexible PC Runtime
    2.1.2 Connection between S7-200 and Windows-based operator panels
    2.2 Configuration of CP 243-1 with STEP 7 Micro/WIN
    2.3 Configuration
    2.3.1 WinCC flexible PC Runtime
    2.3.2 Windows-based operator panels
3 Connection via RS232/ PPI cable
    3.1 Connection between WinCC flexible PC Runtime and an S7-200 controller
4 Connection via TeleService
    4.1 Requirements
    4.2 Direct connection between a TS Adapter II-Modem and an S7-200 controller
    4.3 Direct connection between a TS Adapter II-Modem and an S7-200 controller and a panel via MPI
    4.4 Direct connection between a TS Adapter II-Modem and an S7-200 controller, an S7-300 controller and a panel via MPI

Attachment 1: S7-200_WinCCflexRT_Panels.pdf ( 1107 KB )

Important
This entry contains information for editing the registry. You should make a backup copy of the registry before editing it. More information on making a backup copy, restoring and editing the registry is available in the Microsoft Knowledge Base in Entry ID 256986. Incorrect use of the registry editor can cause serious problems that affect the complete system and make it necessary to reinstall the operating system. You use the registry editor at your own risk.

Keywords:
COM port; COM interface, serial interface, Micro Automation, HMI

Which ports are used by WinCC flexible?Go to beginning
Part number:

Configuration Notes:
The Ethernet ports are assigned by the IANA (Internet Assigned Numbers Authority). When using a firewall you must enable all the ports specified in the table. All the services listed are handled via the TCP/IP protocol, except archiving via UDP.

The following ports are used in WinCC flexible Runtime:
 
  Service Port
Web server Access to internal HTML pages (HTTP) 80
Access to internal HTML pages (HTTPS) 443 (SSL)
Sm@rtServer Connection with the Sm@rtServer

(access to the Sm@rtServer for downloading the Java applets with the Internet Explorer)
5800
Connection with the Sm@rtServer
(access to the Sm@rtServer with Internet Explorer for remote monitoring and operation)
5900
OPC

OPC via DCOM

Server Connection setup: 135
Communication dynamic 1)
Client Communication dynamic 1)
OPC via XML  (Client <=> Server) 80
Printing Printing of Windows CE panels via Ethernet 1032
Archiving Archiving on a server 2) UDP 137, 138
TCP 139
Miscellaneous Transfer via Ethernet Configuration PC dynamic 1)
Panel 2308 and 50523
Communication between S7 controller 102
Panel dynamic 1)
PROFINET IO communication 3) 34964
E-mail (SMTP server) 25
Modicon controller (Modicon channel MODBUS TCP/IP) 502

1) Dynamic port:
The Microsoft Windows operating system automatically assigns the relevant service a free port that can be between Port 1024 and 65534. You must enable this area when using a firewall.

2) Archiving:
Requirement for archiving via an Ethernet network is that the server is enabled.

3) PROFINET
Communication via PROFINET must be activated in the "Control Panel", in the "PROFINET" Settings dialog.

Note:
If you change the ports of the Sm@rtServer, you must change the links accordingly in the HTML pages used. More information on changing HTML pages is available in the Help system of WinCC flexible under "Example: Configuring an integrated web server".

How can you increase the performance of HMI devices?Go to beginning
Part number:

Description
Through continual innovation the performance of controllers has increased by five to ten fold in the past three years. The cycle times of the controllers became increasingly shorter. The cycle times of the S7-300 controllers, for example, now frequently lie between 9ms and 16ms.
The time left for the CPU to communicate with the HMI devices is therefore becoming ever shorter, because only a certain percentage of the total cycle time is available for communication. The percentage of the time the CPU uses for communication is a minimum of about 3.5% of a cycle time of 15ms.

The FC630 function is for improving the performance of HMI services. An SFC is called in the FC630, which increases the time assignment for the HMI services according to the value of the parameter TSx:

  • TSx = 0: restores the initial status
  • TSx = 1: default setting
  • TSx = 8: increases the CPU cycle time by approx. 50%

The TSx value increases the CPU cycle time by 6.25% per unit.

Evaluation of RET_VAL:

  • 0000: no error, time factor is valid and accepted.
  • 800x: error, the block must be restarted.

The valid factor is effective without any further modification until the power is switched off.

The "HMI" task
The CPU program is executed in different tasks ("subprograms"). In the "HMI" task, the CPU communication with the HMI devices is controlled by the operating system (data acquisition, data processing, data transfer and data fetching). The "HMI" task has a certain portion of the cycle time allotted to it. If this time expires, the "HMI" task is interrupted and the CPU continues with its cyclic program processing. The "HMI" task can be interrupted by higher-priority tasks. Higher-priority tasks include time interrupts and delay interrupts, for example.

Note
The FC630 cannot be used in S7-400 CPUs because there is not the requisite firmware support. Furthermore, HMI response times cannot be shortened because the "HMI" task already has the second highest priority in the S7-400 CPUs.

Difference between FC630 and the setting in the CPU properties (cycle load through communication)
In the CPU properties there is also the "Cycle load through communication" parameter. This parameter only affects the CPU message traffic. The FC630 comes into effect early on at data acquisition and in processing the data, which is why the S7-300 CPU's cycle time can greatly extend itself if the FC630 is not handled properly.

Bus protocols for which you can use the FC630
You can use the FC630 for communication via

  • MPI
  • PROFIBUS
  • PROFINET

Requirements before using FC630
Since incorrect use of the FC630 can lead to malfunctions, in particular the CPU cycle time might increase enormously, you should check the following before using the FC630.

  • How high are the cycle times of your CPU? It is particularly useful to operate with cycle times of between 9ms and 16ms, because the percentage of the time used for communication is a minimum of about 3.5% of a cycle time of 15ms. The percentage of the time used for communication with a cycle time of about 32ms is again a minimum of approx. 4.8%. This is why it is useful to implement the FC630 also with cycle times of between 25ms and 32ms. It is not generally useful to implement the FC630 for cycle times greater than 50ms. However, whether or not it is useful to implement the FC630 always depends on your system (number of HMI devices, number of tags polled ...).

Note
Via STEP 7 under "PLC > Diagnostics/Setting > Module status > Cycle time" you can read out of your module the longest, shortest and current cycle time since transition from STOP to RUN.
Via the local data of the OB1 you can also read out the runtime of the previous cycle, the minimum cycle time since the last start and the maximum cycle time since the last start.

  • Are there time critical subprocesses in the system that do not permit an increase in cycle time? If this is the case, you can also check whether the time critical subprocesses could be controlled via a cyclic interrupt. You should note here that cyclic interrupts interrupt the "HMI" task when called and thus influence HMI performance.

You can implement the FC630 function with S7-300 CPUs and C7 devices. Whether the FC630 can be implemented depends on the CPU type and the firmware version. The function described is valid for the CPU-31x modules as from firmware versions V2.3.2, V2.1.6 and V2.0.10.

The FC630 can also be used for the CPU319-3 PN/DP modules as from firmware version V3.2. However, the firmware version V3.2 contains an improved HMI Turbo that only works for the acyclic HMI services.

  • This does not speed up the cyclic HMI services, so the FC630 continues to be need to improve performance.
  • The new function - "Prioritized OCM communication" - has been introduced in all devices as from firmware version V3.2, but it can only be configured in the CPU315F-2 PN/DP modules onwards.
  • The HMI Turbo is only hidden for the modules CPU312 to 315-2DP and can be configured with the new function FC2551.

More information about "Prioritized OCM communication" is available in Entry ID: 49749632.

The attached download contains an archived sample STEP 7 project with the FC630 described above. Use of the FC630 is described in detail in the document below.

Description_Performance_FC630 ( 93 KB )

Performance_FC630.zip ( 30 KB )

Keywords
WinCC, ProTool, Panel, HMI, Operate, Monitor, Performance

 

Which settings do you need to make to access a panel and an S7-200 controller via TeleService?Go to beginning
Part number:

Configuration Notes:
Taking three examples we describe the settings required to set up a connection with the TS Adapter II modem to nodes on the network, like an S7-200.

In this sample configuration we will use:

  • TS Adapter II modem (order number: 6ES7 972-0CB35-0XA0)
  • S7-200 / CPU 224
  • S7-300 / CPU 315-DP
  • TP177B
No. Example 1:
1 Connect TS Adapter II modem (TeleService Adapter II with integrated modem) directly with an S7-200 controller.

( 22 KB )
Fig. 01

If you connect a TS Adapter II modem directly to the interface of the S7-200 (e.g. CPU224) without any other active nodes on the network, e.g. a panel, then online communication with STEP 7 - Micro/WIN only works if the TS Adapter II modem is configured to the MPI *) or Advanced PPI *) network type. All other settings such as Auto and PROFIBUS lead to the display of "BUSF" on the TS Adapter.

*) Notes:

  • If you configure the MPI network type on the TS Adapter II modem, "PG/PC is the only master on the network" must be enabled on the TS Adapter.
  • Advanced PPI is to be set on the TS Adapter II when there are multiple CPU2xx on the MPI/PPI network and one or multiple CPU interfaces being operated in Master mode.

 
No. Example 2:
1 Connect TS Adapter II modem (TeleService Adapter II with integrated modem) directly with an S7-200 controller and a panel via MPI.

( 30 KB )
Fig. 02

If you connect a TS Adapter II modem directly to the interface of the S7-200 (e.g. CPU224) and  there are other active nodes on the network, e.g. a panel, then online communication with STEP 7 - Micro/WIN only works if the TS Adapter II modem is configured to the MPI network type.

With this setting it is possible to download a project to the panel with WinCC flexible. Furthermore, with this setting you can set up an online connection to the controller with Micro/WIN.

Note:
In some cases it might happen that the panel changes to Transfer mode when the communication interface is updated in MicroWIN
(MicroWIN > Communication > "Double-click for update").

2 Settings on the panel:
On the panel you must enable "MPI Transfer" and "Remote Control" for Transfer settings
(Start menu > Control Panel > Transfer).

 
No. Example 3:
1 Connect TS Adapter II modem (TeleService Adapter II with integrated modem) directly with an S7-200 controller, an S7-300 controller and a panel via MPI.

( 37 KB )
Fig. 02

If you connect a TS Adapter II modem directly to the interface of the S7-200 (e.g. CPU224) and  there are other active nodes on the network, e.g. a panel, then online communication with STEP 7 - Micro/WIN only works if the TS Adapter II modem is configured to the MPI network type.

With this setting it is possible to download a project to the panel with WinCC flexible. Furthermore, with this setting you can set up an online connection to the controller with Micro/WIN.

Note:
In some cases it might happen that the panel changes to Transfer mode when the communication interface is updated in MicroWIN
(MicroWIN > Communication > "Double-click for update").

2 Settings on the panel:
On the panel you must enable "MPI Transfer" and "Remote Control" for Transfer settings
(Start menu > Control Panel > Transfer).

How do you configure a connection between WinCC flexible Runtime (PC or Panel) and a SIMATIC S7-300 / S7-400 via Industrial Ethernet?Go to beginning
Part number:

Contents
The procedure is given in the attached PDF document with the following contents.

  1. Introduction
        1.1 When should you use an HMI station and when a PC station?
        1.2 Which Ethernet CP should you select?
  2. Connecting a panel to SIMATIC S7 via Industrial Ethernet
        2.1 Requirements
        2.2 Configuration in STEP7 and WinCC flexible
  3. Connecting a WinCC flexible Runtime to SIMATIC S7 without Station Configuration Editor
        3.1 Requirements
        3.2 Connecting an HMI station
        3.3 Connecting a PC station
  4. Connecting a WinCC flexible Runtime to SIMATIC S7 with Station Configuration Editor
        4.1 Requirements
        4.2 Connecting an HMI station
        4.3 Connecting a PC station

Attachment 1: WinCC_flexible_Kommunikation_Ethernet.pdf ( 1403 KB )  

How do you configure a PROFINET connection to an S7 controller in WinCC flexible?Go to beginning
Part number:

Instructions:
The PROFINET IO is based on the Industrial Ethernet. If, for instance, you wish to use PROFINET communication for Mobile Panel 277, you will need to configure "Ethernet communication" in the configuration interface via "Communication > Connections".

Notes:

  • There is information available on how to configure an Ethernet connection in Entry ID: 24109937
  • "PROFINET IO direct-control keys" can be configured via PROFINET IO. You can find detailed information about this topic in the Online Help in the 2005 version or higher of WinCC flexible.

Keywords:
Direct-control keys, Connection

How do you specify the MPI address of an FM in the HMI configuration tool if the address doesn't appear in the HW Config and is thus unknown?Go to beginning
Part number:

 
Description:
The FAQ concerns those FMs that exchange data with an HMI device. The following modules are concerned:
 
FM type MLFB
FM353  F. STEPPER MOTOR 6ES7353-1AH01-0AE0
FM354  F. SERVO MOTOR 6ES7354-1AH01-0AE0
FM357  4 AXIS CONTROL 6ES7357-4AH01-0AE0

CPU-dependent FM addressing
In the S7-300 CPUs there are two different architecture models with regard to the bus, in which the FM addressing is displayed differently to the user in each case. A difference is to be made between CPUs with and without combined MPI/DP interface.

  • CPUs without combined MPI/DP interface
    In HW Config the MPI address "MPI addr.[CPU] + 1" is entered automatically for the FM module. This value could also be changed by the user if necessary.


    Fig. 01


    This case holds for all configurations with CPUs that are not included in the table below.
     
  • CPUs with combined MPI/DP interface
    In HW Config the MPI address of the FM module is not displayed. The user does not know which FM address is to be parameterized in the HMI configuration tool.


    Fig. 02


    This case holds for all configurations with CPUs that are included in the table below.
     
CPUs with integrated DP interface

CPU 315-2 PN/DP

CPU 315F-2 PN/DP
CPU 317 (all types)
CPU 318 (all types)
CPU 319 (all types)

HMI <-> FM connection configuration for CPUs without combined MPI/DP interface:
(address data of the following examples (screenshots): CPU: MPI=2, Slot=2; FM: MPI=3, Slot=4;)

Connection configuration with ProTool or WinCC flexible permits two access paths to the FM:

  • Access path 1


    Fig. 03



    Fig. 04

  • Access path 2


    Fig. 05



    Fig. 06
     

HMI <-> FM connection configuration for CPUs with combined MPI/DP interface:
(address data of the following examples (screenshots): CPU: MPI=2, Slot=2; FM: Slot=4;)

  • There is only Access path 1 to the FM.


    Fig. 07



    Fig. 08
     

Note:
For the examples in the masks above the configuration tool concerned was integrated in each case in STEP 7. In these cases entry of the FM address (MPI, slot and BGT numbers) is automatic and cannot be changed by the user as long as you click to select the FM or access point via which the FM is to be reached. Manual input of the FM address data is possible by clicking "Define the parameters yourself" (ProTool) or "No station" for station selection (WinCC flexible). In the case of a nonintegrated configuration tool you must always specify the FM address data manually.

How do you connect a panel to a SIMATIC H station?Go to beginning
Part number:

Connect panel with SIMATIC H station
You cannot connect a panel directly to a SIMATIC H station with the same MPI/PROFIBUS addresses and IP addresses.
The PDF document below describes how to connect panels to SIMATIC H stations.

Contents
1 Introduction
2 Unilateral panel connection to an H CPU
3 Redundant panel connection
4 Panel connection to H CPUs via two repeaters
5 Connection of a scriptable panel with "software solution" to an H CPU
   5.1 Basic functions
   5.2 Sample configuration for Industrial Ethernet with integrated WinCC flexible project
         5.2.1 STEP 7 configuration
         5.2.2 Connection parameterization in WinCC flexible
         5.2.3 Tag parameterization in WinCC flexible
         5.2.4 Script creation and implementation in WinCC flexible
         5.2.5 Sample scenario
6 Connection of a non-scriptable panel with a "software solution" to an H CPU
   6.1 Basic functions
   6.2 Sample configuration for MPI, PROFIBUS and Industrial Ethernet
         6.2.1 STEP 7 configuration
         6.2.2 Connection parameterization in WinCC flexible
         6.2.3 Tag parameterization in WinCC flexible
         6.2.4 Project tags in WinCC flexible
         6.2.5 Basic functions
         6.2.6 Connection testing

Download

23842653_WinCC_flexible_redundant_communication_e.pdf ( 1046 KB )

 Download, sample scripts

23842653_WinCC_flexible_redundant_communication.zip ( 4 KB )

Keywords
Operator panels, H system, H controller, Redundant, Redundancy, Change Connection, 22584322 , 21669205

What settings have to be made for a PROFIBUS DP connection between a panel or a PC with WinCC flexible Runtime and an S7-200?Go to beginning
Part number:

If you want to connect a WinCC flexible operator panel to an S7-200, make sure that the S7-200 can only be operated as DP slave.
The panel or PC must be implemented as DP master on the PROFIBUS DP network and the S7-200 as DP slave.

The following settings must therefore be made in the WinCC flexible configuration:

  • In WinCC flexible you configure a controller connection to the S7-200 via
    Project > Communication > Connections.


Fig. 1: Select controller protocol

  • To be able to set up communication between the S7-200 as DP slave and the PC as DP master, you must set a check mark to enable "Only master on the bus". 


Fig. 2: Only master on the bus

Example: 
Five PCs with WinCC flexible Runtime and PROFIBUS DP communicate with an S7-200. One PC is the DP master, i.e. the check mark for "Only master on the bus" is set only for this PC. There is no check mark for "Only master on the bus" set for the other PCs. 

Now, if the master PC fails, all communication on the PROFIBUS DP network is interrupted, because there is then no other master available on the bus. As soon as the master PC comes back online (WinCC flexible Runtime is started and the controller connection is enabled), the other PC stations can set up a connection again to the S7-200. 

Recommendation:
Declare all the PCs to be master by setting a check mark for "Only master on the bus" for all of them, because then communication does not depend on just one PC. 

The other settings for the PROFIBUS DP connection are to be entered accordingly.


Fig. 3: Other settings

Note: 
On a PC the PG/PC interface must be set as "S7ONLINE --> PROFIBUS".


Fig. 4: PG/PC interface

STEP 7 - Micro/WIN

With STEP 7-Micro/WIN the interface of the the S7-200 must be configured according to the parameters used in WinCC flexible.

Notes:

  • For a PROFIBUS DP communication at a baud rate > 187.5 kbaud you need a DP interface on the S7-200.
  • For the S7-22x without integrated DP interface you need an EM277 module for the PROFIBUS DP communication (baud rate > 187.5 kbaud).
  • More information on OP communication with S7-200 is available in "S7-200 and HMI Components" in Entry ID: 14188898.

Why is the communication driver marked "orange" in WinCC flexible when another Ethernet communication is added to an existing MPI/DP?Go to beginning
Part number:

Description:
You have two S7 PLCs and one WinCC flexible Runtime station (PC station).
Data exchange between the WinCC flexible Runtime station and PLC station 01 is to be via MPI/DP and via Ethernet between the WinCC flexible Runtime station and PLC station 02.
When you try to create the two connections in WinCC flexible Runtime, the communication drivers are marked "orange".


Fig. 01

To achieve this task, you need one hardware interface for each access point (MPI/DP and Ethernet). 
One access point is created in the PG/PC interface for each of the two hardware interfaces. You can choose any name for the access points.

Instructions:
In this example, the first access point (MPI/DP) is named "S7ONLINE" and the second access point (Ethernet) "S7ONLINE_1".
 
No. Procedure
1 Creating and setting up a second access point:


Fig. 02

  • Call the PG/PC interface.
    "Start > Settings > Control Panel > Setting the PG/PC Interface".
    (Point 1)
  • Under "Access Point of the Application" you select <Add/Delete>.
    (Point 2)
  • Under "New Access Point:" you enter the name of the access point - in this example "S7ONLINE_1" - and press the "Add" button.(Point 3) Then close the window with the "Close" button.
  • In the "Set PG/PC Interface" window (Fig. 03), you select the parameter assignment used.
    In this example, "TCP/IP -> Your network card".
    Now, under "Access Point of the Application", you see the following name: "S7ONLINE_1  -->  TCP/IP -> Your network card".
    Close the window with the "OK" button.


Fig. 03

This completes setting up a second access point.

2 Defining the PROFIBUS connection:
  • Open the PG/PC interface with
    "Start > SIMATIC > STEP 7 > Set PG-PC Interface" or with "Tools > Set PG/PC Interface..." in the SIMATIC Manager.
  • There, under "Interface Parameter Assignment Used:" you select the CP you are using. In this example it is CP5512 (PROFIBUS).
    The access point of the application in this case is preset with
    "S7ONLINE   (STEP 7) -> CP5512(PROFIBUS)".
3 Parameterizing connections in WinCC flexible:
  • Open "Connections" in WinCC flexible.
  • Create a new connection for "PROFIBUS Communication".
    For "Access point" you use the default entry "S7ONLINE".
  • Create another connection for "Ethernet Communication".
    For "Access point" you do not use the default entry "S7ONLINE", but change it to "S7ONLINE_1".


Fig. 04

This completes parameterization of the connection in WinCC flexible.

4 Configuring a PC network:
Open the network connections with
"Start > Settings > Network Connections" and there you open the Properties of your network card.
Use the IP address that you defined in the WinCC flexible configuration.


Fig. 05

Keywords: 
Parallel communication

PROFIBUS communications between Windows-based operator panel (configured with WinCC flexible 2004) and WinAC Basis / WinAC RTX V4.0Go to beginning
Part number:

QUESTION:  
What should you watch out for in the communications between a WinAC Basis/ WinAC RTX V4.0 and higher and a Windows-based operator panel configured with WinCC flexible 2004?

ANSWER:  
This entry provides instructions for configuring the link between the WinAC and a Windows-based operator panel configured with WinCC flexible 2004 via PROFIBUS.

Requirements:

  • MS Windows 2000 SP4 or MS Windows XP SP1
  • WinAC Basis V4.0 or RTX V4.0 and higher
  • WinCC flexible 2004
  • SIMATIC NET CD 11/2003
  • STEP 7 V5.3 SP1

Configuring the SIMATIC PC station for the WinAC

  • Open the SIMATIC Manager and create a new STEP 7 project.
  • Add a PC station via Insert > Station > SIMATIC PC Station.
  • Double-click Configuration to open the Hardware Configuration of the PC station.

Fig. 1: Adding a PC station to the STEP 7 project

  • Insert the relevant WinLC, for example WinLC Basis V4.1 (from the Hardware Catalog SIMATIC PC Station > Controller), into the rack of the PC station at Index 2.
  • Insert the relevant PROFIBUS CP, for example 5611, as IF module of the WinLC Basis and network this with PROFIBUS DP.

Warning:
WinLC RTX can be operated only with CP5613.

Fig. 2: Insert WinLC and CP5611

  • Save and compile the configuration.
  • Open the Station Configuration Editor on the WinAC computer.
  • The table in the Station Configuration Editor must match the assignment of the rack in the SIMATIC PC station.

Note:
The IF module is inserted in the Properties of the WinLC in the Station Configuration Editor. For this the CP must be in the configured mode.

  • In order to load the configuration into the WinAC the name of the PC station in the SIMATIC Manager must match the station name in the Station Configuration Editor on the WinAC computer.

Fig. 3: Station Configuration Editor

  • Also on the STEP 7 configuration PC you must change the PG/PC interface to the relevant type of transfer (here: S7ONLINE (STEP 7) --> CP5611 (PROFIBUS)).
  • Start the WinAC controller.
  • Load the STEP 7 project into the WinLC.

Note:
More detailed information on transferring the STEP 7 project to the WinAC is available in Entry ID: 18602609.

Configuring the SIMATIC HMI station for the Windows-based panel

  • Insert a SIMATIC HMI station via Insert > Station.

Fig. 4: Inserting a SIMATIC HMI station

  • Select the appropriate operator panel.

Fig. 5: Selecting the operator panel

  • Open the configuration of the SIMATIC HMI station.

Fig. 6: Configuration of the HMI station

  • Network the interface "HMI MPI/DP" with the PROFIBUS subnetwork of the WinLC.

Fig. 7: Networking HMI MPI/DP

  • Save and close the configuration.
  • Navigate in the SIMATIC Manager via the SIMATIC HMI STATION to WinCC flexible RT > Communications > Connections and double-click Connections in the right-hand project window. WinCC flexible 2004 opens.
  • Enable the displayed connection between the Windows-based operator panel and the WinLC.

Fig. 8: Enabling the connection in WinCC flexible 2004 ( 92 KB )  

  • You can then continue to configure the Windows-based operator panel in WinCC flexible 2004 (variables, pictures, messages ...).

How do you configure communication between the WinCC flexible Runtime and WinLC via SOFTBUS on a PC?Go to beginning
Part number:

Introduction:
This entry provides instructions for configuring the internal connection between a WinLC and WinCC flexible Runtime.

Contents:

  1. Requirements
  2. Configuration of WinLC and WinCC flexible RT
    2.1 Configuration in a SIMATIC HMI station
    2.2 Configuration in a SIMATIC PC station
  3. Configuration with WinCC flexible

1. Requirements

  • MS Windows 2000 Pro SP4 or MS Windows XP Pro as from SP1
  • WinAC Basis as from V4.0, WinAC RTX as from V4.0, WinAC Slot as from V3.3
  • WinCC flexible Advanced
  • WinCC flexible Runtime
  • STEP 7 as from V5.3
  • SIMATIC NET as from CD 11/2003

2. Configuration of WinLC and WinCC flexible RT
You can configure WinLC and WinCC flexible Runtime (WinAC) in the SIMATIC Manager both in a SIMATIC HMI station and in a SIMATIC PC station.

2.1 Configuration in a SIMATIC HMI station
The table below explains the procedure for configuring the WinLC and WinCC flexible RT in a SIMATIC HMI station.
 
No. Procedure
1 Create a STEP 7 project
  • Create a new STEP 7 project with the SIMATIC Manager.
  • Place a SIMATIC HMI station in the project with "Insert > Station".


Bild 01

2 Select the operator panel
  • Select the operator panel "WinCC flexible RT".


Bild 02

3 Open HW Config and add WinLC
  • Double-click on configuration to get to the hardware configuration for the HMI station.
  • The application WinCC flexible RT was automatically inserted into the HMI station rack in slot 3.
  • Add a WinLC to slot 2 from the hardware catalog "SIMATIC HMI station > Controller > WinLC".
  • Save and compile the configuration.


Bild 03

4 Start the Station Configuration Editor and set parameters
  • Start the Station Configuration Editor via the toolbar or the icon on the desktop (SIMATIC NET must be installed).
  • With "Add...", you place a WinCC flexible RT and a WinLC on the same slots as in the hardware configuration (here: WinCC flexible RT slot 3 and WinLC slot 2).


Bild 04

5 Copy the station name
  • Copy the station name from the Station Configuration Editor and then use it to name the HMI station in the SIMATIC Manager.


Bild 05

6 Activate the "S7RTM is installed" option
  • Right-click on the SIMATIC HMI station in the STEP 7 Manager to open the "Object properties...".
  • Switch to the "Configuration" tab and activate the option "S7RTM is installed".
  • Close the "SIMATIC HMI station" dialog window.


Bild 06

7 Parameterize the PG/PC interface
  • Open the "PG/PC interface" in the menu "Tools > Set PG/PC interface" of the STEP 7 Manager.
  • Set the access point to "S7ONLINE (STEP 7) -->  PC internal (local)".


Bild 07

8 Start the WinLC Controller
  • Start the WinLC Controller.


Bild 08

9 Transfer the hardware configuration
  • Change to the hardware configuration of the HMI station again and load it via "PLC > Download to Module".
  • Close the hardware configuration of the HMI station.

2.2 Configuration in a SIMATIC PC station
The table below explains the procedure for configuring the WinLC and WinCC flexible RT in a SIMATIC PC station.
 

No.

Procedure
1 Create a STEP 7 project
  • Create a new STEP 7 project with the SIMATIC Manager.
  • Place a SIMATIC PC station in the project with "Insert > Station".


Bild 09

2 Select the operator panel
  • Double-click on Configuration to get to the hardware configuration for the PC station.
  • Add a WinLC to slot 2 from the hardware catalog "SIMATIC PC Station > Controller > WinLC" and a "WinCC flexible RT" application to slot 3 from the hardware catalog "SIMATIC PC Station > HMI".


Bild 10

3

Open HW Config and add WinLC
  • Save and compile the configuration.
  • Start the Station Configuration Editor via the toolbar or the icon on the desktop.
  • With "Add...", add a WinCC flexible RT and a WinLC to the same slots as in the hardware configuration (here: WinCC flexible RT to slot 3 and WinLC to slot 2).


Bild 11

4 Start the Station Configuration Editor and set parameters
  • Copy the station name from the Station Configuration Editor and then use it to name the PC station in the SIMATIC Manager.


Bild 12

5 Parameterize the PG/PC interface
  • Open the "PG/PC interface" in the menu "Tools > Set PG/PC interface" of the STEP 7 Manager.
  • Set the access point to "S7ONLINE (STEP 7) -->  PC internal (local)".


Bild 13

6 Start the WinLC Controller
  • Start the WinLC Controller.


Bild 14

7 Transfer the hardware configuration
  • Change into the hardware configuration of the PC station again and load it via "PLC > Download to Module".
  • Close the hardware configuration of the PC station.

3. Configuration with WinCC flexible
 
No. Procedure
1 Open WinCC flexible  
  • Navigate in the SIMATIC Manager via the SIMATIC HMI STATION or SIMATIC PC STATION to "WinCC flexible RT > Communication > Connections" and double-click in the right-hand project window on "Connections".

    => WinCC flexible opens.


Bild 15

2 Activate the connection
  • Activate the connection displayed between WinCC flexible RT and the WinLC via SOFTBUS.

    Note:
    Alternatively you can also activate the connection at Runtime with the system function "SetConnectionMode".


Bild 16

You can then continue with additional configuration (tags, pictures, messages etc.) in WinCC.

How do you configure communication between WinCC flexible Runtime or a Windows-based operator panel and an S7-200 (CP 243-1) via Ethernet?Go to beginning
Part number:

Contents:  

  1. Requirements
    1.1 Requirements for S7-200 and WinCC flexible PC Runtime
    1.2 Requirements for S7-200 and Windows-based operator panel
  2. Configuring the CP 243-1 with STEP 7 Micro/WIN
  3. Configuring a WinCC flexible PC Runtime
  4. Configuring a Windows-based operator panel
    4.1 Operator panel settings
    4.2 Creating a WinCC flexible configuration
     
1. Requirements

1.1 Requirements for communication between the S7-200 and a WinCC flexible PC Runtime via Ethernet:

Software:

  • SIMATIC NET CD 11/2003
  • STEP 7 Micro/WIN V4.0
  • WinCC flexible Advanced

Hardware:

  • CPU 22x:
    CPU 222 or 224 release 1.1 or higher, CPU 226 or CPU 226 XM release 1.00 or higher
  • CP 243-1: (order number 6GK7 243-1-1EX00-0XE0) or CP 243-1IT (order number 6GK7 243-1GX00-0XE0)
  • PC with a standard Ethernet card
  • Network cable
  • Hub or switch
1.2 Requirements for communication between the S7-200 and a Windows-based operator panel via Ethernet:

Software:

  • STEP 7 Micro/WIN V4.0 or higher
  • WinCC flexible standard

Hardware:

  • CPU 22x: CPU 222 or 224 release 1.1 or higher, CPU 226 or CPU 226 XM release 1.00 or higher
  • CP243-1: (Order number: 6GK7 243-1-1EX00-0XE0) or CP 243-1IT (order number 6GK7 243-1GX00-0XE0)
  • Network cable
  • Hub or switch
  • Windows-based operator panel as of 170 series with Ethernet interface

Note:
The OP270 and TP270 do not have an on-board Ethernet interface. You can use a CF Ethernet card to extend the OP270 and TP270 by an Ethernet interface.
 

2. Configuring the CP 243-1 with STEP 7 Micro/WIN
The settings for the CP 243-1 are defined in STEP 7 Micro/Win via the Ethernet Wizard. For assistance with all the information go to STEP 7 Micro/WIN Online Help via F1.
 
No. Procedure
1 Starting the Ethernet Wizard 
  • Open STEP 7 Micro/WIN.
  • Start the Ethernet Wizard via "Tools > Ethernet Wizard...."
  • Click on "Next".


Fig. 01 - Ethernet Wizard

2 Confirm message
  • Click "Yes" to confirm the message that appears.

      => Your STEP 7 Micro/WIN configuration is compiled, and the symbolic addressing is activated.


Fig. 02 - STEP 7 Micro/WIN message

3 Specifying module position
If your PC is connected to the S7-200, click the "Read modules" button to determine the position of the CP 243-1 module automatically. Otherwise, the module position can also be entered manually.

Important:
WinCC flexible Runtime or the Windows-based operator panel can only establish a connection with a CP243-1 if the module is configured to "position 0". The TSAP for the remote station must be set to 02.00

  • Check if the CP is connected in the module position "ZERO" and change the module position if necessary.
  • Identify or enter the module position "ZERO".
  • Click on "Next".


Fig. 03 - Enter module position

4 Specifying IP address
  • Define an IP address for the CP 243-1. 

    Caution: 
    The IP address for this application may not be taken automatically from a server because the WinCC flexible Runtime or the Windows-based operator panel requires a fixed reference partner (CP 243-1) for the Ethernet communication.

    Note:
    The communication connection type for this module can be defined by the "Automatic Setting".

  • Click on "Next" to continue.


Fig. 04 - Set IP address


Note:
The BOOTP server is a pared-down DHCP server.

5 Parameterizing PtP connection
  • Specify the command byte for the module and the number of point-to-point connections with the CP 243-1.
  • Click on "Next".


Fig. 05 - Number of connections

6 Configuring connection 
  • The configuration for connecting the CP 243-1 to WinCC flexible Runtime or to a Windows-based operator panel must be defined as in Fig. 06.
  • Click OK to confirm the entries.

    Warning:  
    The TSAP must always be specified in four-digit format, with a leading zero (02.00).


Fig. 06 - Configuring connections

7 Using CRC protection
Set the CRC protection the way you want it. It is advisable to work without CRC protection first of all. The "Keep Alive Interval" can be specified with the default time.
  • Activate the CRC protection and change the time of the "Keep Alive Interval" if required.
  • Click on "Next".


Fig. 07 - CRC protection and Keep Alive Interval

8 Assigning memory
  • Specify a memory area for the configuration of the CP 243-1.
     
    Recommended:  
    If you click on Suggest address, the Wizard can identify a variable memory area.
     
  • Click on "Next".


Fig.08 - Memory for the configuration

9 Creating project components
If you click on "Close", the Ethernet Wizard generates the project components for the set configuration. Among other things, subprograms and the variable memory are created in the data block.
  • Click the "Close" button.


Fig. 09 - Creating the project components

10 Confirm message
  • Click "Yes" to confirm the message that appears.


Fig. 10 - Close Ethernet Wizard

11 Call ETH0_CTRL
  • In your STEP 7 Micro/WIN program, you must call the ETH0_CTRL subroutine in each cycle.
  • Finally, load the entire configuration into the S7-200.


Fig. 11 - Example of calling the ETH0_CTRL subroutine


3. Configuring a WinCC flexible PC Runtime
 
No. Procedure
1 Creating a PC project
  • Run WinCC flexible.
  • Create a project with the device type "PCs > WinCC flexible RT".


Fig. 12 - Creating WinCC flexible RT

2 Specifying connection parameters
  • Navigate to "Communication > Connections" and create a new connection in the right pane of the project window.
  • Select the communication driver "SIMATIC S7 200".
  • Under interface, select "ETHERNET".
  • Enter the IP address and the subnet mask for the WinCC flexible RT and the S7-200 (see Fig. 04 ( 56 KB ) ).


Fig. 13 - Setting connection parameters

3 Select access point
  • Open the PG/PC interface under "Start > Control panel > Set PG/PC interface
  • In the PG/PC interface you must set the access point S7ONLINE to "TCP/IP -> [Used network card]".


Fig. 14 - Set PG/PC interface

4 Configuring network card
The IP address and subnet mask for the PC, which are defined via the control panel, need to match the IP address and subnet mask in WinCC flexible (Fig. 13 ( 35 KB ) ).
  • Enter the IP address and the subnet mask that you have parameterized in Fig. 13 ( 35 KB ) .


Fig.15 - Parameterizing network card

5

Start WinCC flexible Runtime
  • Once you have completed the configuration in WinCC flexible, you can start the Runtime.

4. Configuring a Windows-based operator panel
The connection to the S7-200 must be configured in the WinCC flexible project. You must parameterize the configuration of the Ethernet adapter directly in the operator panel.

4.1 Operator panel settings
 
No. Procedure
1 Select Ethernet adapter
  • Open the Network menu command in the "Control Panel".
  • Select the driver for the Onboard Ethernet card in the "Adapters" tab and click on "Properties"


Fig. 16 - Network configuration

2 Specifying connection parameters
  • Select "Specify an IP address".
  • Set your IP address as 192.168.1.50 and your subnet mask as: 255.255.255.0 (see Fig. 17).

    Note:
    The IP address and subnet mask must match the IP address and subnet mask specified in WinCC flexible - as in Fig. 17.
     
  • Click "OK" to close the dialog. 


Fig. 17 - Setting IP address

3 Changing the device name
  • Click "OK" to confirm the message that appears.
  • Switch to the "Communication" menu in the "Control Panel".

    Note:
    In the "Device Name" tab, the device name must be changed (for example, ID7803) to enable communication.
     
  • Change the device name under "Device Name".
  • Click "OK" to close the dialog. 


Fig. 18 - Changing the device name

4 Saving the settings
  • Open the "OP" menu.
  • Click on the "Save Registry" button in the "Persistent Storage" tab in order to save the tab settings. 
  • Reboot the MP270B.


Fig. 19 - Saving settings


4.2 Creating a WinCC flexible configuration
 
No. Procedure
1 Select operator panel
  • Run WinCC flexible.
  • Create a project, for example for the device type "MP 270B 6" Touch".


Fig. 20

2 Specifying connection parameters
  • Navigate to "Communication > Connections" and create a new connection in the right pane of the project window.
  • Select the communication driver "SIMATIC S7 200".
  • Under interface, select "ETHERNET".
  • Enter the IP address and the subnet mask for the MP 270B and the S7-200 - as in Fig. 04 ( 56 KB ) .


Fig. 21 - Enter connection parameters

3 Transfer configuration
  • Once you have completed the configuration in WinCC flexible, you can transmit this to the MP270B.

 

 Entry ID:22309264   Date:2012-06-14 
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 
Topics
Help
Online Help
Guided Tour