show the entry list

WinCC -- Configuring and programming communication -- Communication to S7 (without PROFIBUS)  
Why does the communication between WinCC and S7-1500 not support raw data? 
How do you communicate with multiple controllers consecutively in WinCC? 
How do you set the PG/PC interface with a TCP/IP connection in the S7 Protocol Suite? 
How do you integrate an existing WinCC project into a STEP 7 project? 
Can I use the Slot PLC with WinCC V5.0? 
What are the requirements for an online connection between WinCC and an S7 with MPI (CP5611)? 
Which license do you need for communication via TCP/IP with WinCC? 
What are the options for accessing an S7-200 with WinCC? 
How do you set up a link via modem to an S7? 
How can you link WinCC to S7 PLCSIM? 
Which settings have to be made in WinCC to communicate with an S7 controller via the TS Adapter? 
Which hardware and software is required in the WinCC system to communicate with an S7 via a CP343-1? 
Which settings are required to access an S7 CPU with WinCC and SIMATIC NET via a CP5611, CP5613 or CP1613? 

Why does the communication between WinCC and S7-1500 not support raw data?Go to beginning
Part number:

Description
Due to the high demands for security it is not possible to transfer raw data tags in communication between WinCC and S7-1500.

Additional Keywords
RAW values, RAW tags, Raw data tags

How do you communicate with multiple controllers consecutively in WinCC?Go to beginning
Part number:

Description
You want to create a WinCC project for a plant in which there are multiple controllers. These controllers all process the same user program. In WinCC you resolve this task by configuring just one controller. To communicate with the other controllers you simply change the connection parameters in Runtime.

Note that with this procedure the WinCC Runtime is connected only with the controller selected. During operation you also only receive the alarms and process values of this controller.

Instructions

  1. Create a new WinCC project.
  2. Double-click "Tag Management" to open it.
  3. Right-click "Tag Management" in the open window and insert the driver "SIMATIC S7 Protocol Suite".


    Fig. 01
     
  4. Right-click "TCP/IP" and select "New connection...".
  5. Enter the name of the connection (in the example: PLC1).
  6. Right-click the newly created connection and select "Connection parameters".


    Fig. 02
     
  7. Enter the IP Address, Rack Number and Slot Number of the first controller.


    Fig. 03
  8. Double-click "Graphics Designer" to open it.
  9. Run the dynamic wizard "Create redundant connection". The wizard is in the "System Functions" tab.


    Fig. 04
     
  10. Configure a button for each controller in a screen.
  11. Create the following C action for the "Mouse click" event of the button.


    Fig. 05

    The tags "@PLC1@AlternateConnectionAddress" and "@PLC1@ForceConnectionAddress" are created automatically by the Dynamic Wizard. The "PLC1" part corresponds to the name of the connection (see Step 5).
    Replace the connection parameters "IP, 192.168.0.2,,0,2,02" with the parameters of the controller concerned. Enter the parameters in this order: IP,"IP Address","Slot number","Rack Number","Connection Resource".
  12. Under Global Script you open the C Editor and delete the project action created by running the Dynamic Wizard.


    Fig. 06

Security notes
Siemens offers products and solutions with industrial security functions which support the secure operation of plants, solutions, machines, devices and/or networks. They are important components in a comprehensive industrial security concept. The Siemens products and solutions continue to be developed under this aspect. Siemens recommends that you keep yourself regularly informed about product updates.
For the safe operation of Siemens products and solutions it is necessary to take appropriate security measures (cell protection concept, for example) and to integrate each component in an overall industrial security concept which is state of the art. This should also cover the third-party products used. Additional information about Industrial Security is available here:
http://www.siemens.com/industrialsecurity
In order to keep yourself informed about product updates, we recommend subscribing to our product-specific newsletter. Additional information about this is available at:
http://support.automation.siemens.com.

How do you set the PG/PC interface with a TCP/IP connection in the S7 Protocol Suite?Go to beginning
Part number:

Description
When configuring a new channel you must match logical device names with the access point of the communication processor. The following video shows you how to make these settings.

Note
The video was made with SIMATIC WinCC V7.0 SP3. The procedure is identical for SIMATIC WinCC V7.2.

 
Video Ideal for Download/Link
Download of the video to your PC (for optimum viewing) Windows PC 1)

( 72277 KB )

Viewing on YouTube (Siemens Channel) Mobile devices

1) Download the files into a folder of your choice (the path must not include any special characters or umlauts!) and unpack the video (ZIP archive). Double-click the unpacked "mp4" file to start the video.

 Additional information
 
Document Link
WinCC Communication V7.2 manual Entry ID: 73568736
Demo project WinCC V7.2 Entry ID: 76879225
FAQs about WinCC Communication configuration Link
FAQs about WinCC Communication diagnostics Entry ID: 22892720
Table 01

How do you integrate an existing WinCC project into a STEP 7 project?Go to beginning
Part number:

Configuration Notes
The following WinCC components must be installed to be able to import a WinCC project into a STEP 7 project:

  • SIMATIC Device Drivers
  • Object Manager 
  • AS-OS Engineering

These components are on the WinCC Installation CD (Fig. 01). Furthermore, WinCC and STEP 7 have to be installed on the same computer. By importing the WinCC project into a STEP 7 project you can use the existing compression tool (packer) for archiving the WinCC project.


Fig. 01

Note
More information on installing additional components (taking the example of "Smart Tools") in different versions of WinCC is available in Entry ID: 10880206 .

Instructions
You have the following options for importing a previously separate WinCC project into your STEP 7 project:

1. Procedure for WinCC V6.0 SP4 and higher
 
No. Procedure
1 In the SIMATIC Manager you execute the menu command "Options > OS Import...".


Fig. 02

2 Press the button marked to open the selection window shown in Fig. 04.


Fig. 03

3 Select the Projectname.mcp file that you wish to import and press the "Open" button.


Fig. 04

4 Check the project path for the OS to be imported and press the "Import OS" button.


Fig. 05

Note
More information on importing WinCC projects with the SIMATIC Manager is available in the WinCC Information System > Working with WinCC > The Integration of WinCC in SIMATIC Manger > Managing WinCC Projects and Objects with SIMATIC Manager > Importing a WinCC Project with SIMATIC Manager.

2. General procedure for all versions of WinCC
 
No. Procedure
1 Insert an Operator Station (OS) into your STEP 7 project.


Fig. 06

2 Change the name of the OS to the one in your WinCC project.


Fig. 07

3 In the Windows Explorer, delete the WinCC project created in the STEP 7 project path, which is generated because of the newly created OS. 
Sample project path: 
C:\Programs\Siemens\Step7\EXAMPLES\exie\wincproj\'Name of the OS'
4 Now store the existing WinCC project in the STEP 7 project path using the Project Duplicator via the menu item "Save as...". You start the Project Duplicator in the Start menu under "Start > Simatic > WinCC > Tools".

Note
More information on importing WinCC projects with the SIMATIC Manager is available in the WinCC Information System > Working with WinCC > The Integration of WinCC in SIMATIC Manger > Managing WinCC Projects and Objects with SIMATIC Manager > Importing a WinCC Project with SIMATIC Manager.

Creation environment
The instructions in this entry were created in the following environment.
 
Component Product and version designation
PC operating system Microsoft Server 2003 SP2
Standard tools STEP 7 V5.4 SP4
HMI software WinCC 7.0
Options ---
Controllers ---

Can I use the Slot PLC with WinCC V5.0?Go to beginning
Part number:


You are using a Slot-PLC in the WinCC version V5.0. Here you must deactivate the cyclical services in the system parameters of the channel unit.

What are the requirements for an online connection between WinCC and an S7 with MPI (CP5611)?Go to beginning
Part number:

Please check the following points in your project.
 
No. Procedure
1 S7DOS must be installed. S7DOS is installed automatically in WinCC version V5.0 + SP2 and higher.

If necessary, you can install it from the WinCC CD.

  • Start WinCC Setup and in the "Select Components" dialog you choose "Communication > S7DOS"


Fig. 01

2 The access point defined in the PG/PC interface must match the logical device name of the MPI channel. For example, to use the "S7ONLINE" access point, you must set the PG/PC interface on your MPI communications processor.
  • In the Control Panel you open the "Set PG/PC Interface" program.
  • Select "S7ONLINE" as Access Point and then select your MPI communications processor.
    If it is not shown in the window, you can install it using the "Select..." button.


Fig. 02

3 A communication channel must exist.
  • Open your WinCC project and add your channel to the Tag Management.
  • To do this, right-click to open the "Add new driver" dialog box and install the "SIMATIC S7 Protocol Suite.CHN" WinCC communications driver.


Fig. 03

4

The access point must be correct. Set the logical device name of the MPI channel to the "S7ONLINE" access point that you selected under (2).

  • In Tag Management you double-click on the communications driver "SIMATIC S7 PROTOCOL SUITE".
  • Right-click on the "MPI" channel and click on the menu command "System Parameter".
  • Click on the "Unit" tab and select the item "S7ONLINE" item in the drop-down list for "Logical device name".


Fig. 04

5 You must create a connection.
  • Then right-click to add a new connection to your S7 or S7 program and give it a name. Example: "S7Programm_AS1".


Fig. 05

6 The connection properties must be correct.
  • In the dialog that opens (in point 5) you click on the "Properties" button and set the connection parameters there. In this case, the CPU has the MPI address "30" and the MPI segment has the ID "0". The CPU is slotted in rack number 0, slot 3.


Fig. 06

    Keywords:
    Connection, Communication settings, MPI interface

    Which license do you need for communication via TCP/IP with WinCC?Go to beginning
    Part number:

    Instructions
    For SIMATIC WinCC you must install SIMATIC NET for the drivers required. As from WinCC V6.0 + SP3 an additional license for Softnet S7 Lean is also supplied. This licenses SIMATIC NET for 8 connections. If you need more connections, you need a SIMATIC Softnet S7 license. With this license you can configure up to 64 connections.

    What are the options for accessing an S7-200 with WinCC?Go to beginning
    Part number:

    Configuration Notes:
    The following options are available for communication between WinCC and an S7-200:

    • Communication via OPC    

      S7-200 PC Access
      With the OPC server of S7-200 PC Access you can set up communication between the S7-200 and WinCC via OPC. When implementing the S7-200 OPC server it is of advantage to integrate the symbols of the STEP 7 Micro/WIN project. The S7-200 PC Access OPC server can be linked with the S7-200 via the following types of connection:
    • PPI via PC/PPI cable  
      • USB/PPI cable (order number: 6ES7 901-3DB30-0XA0)
      • RS232/PPI cable (order number: 6ES7 901-3CB30-0XA0)
      • RS232/PPI cable (order number: 6ES7 901-3BF21-0XA0)
    • MPI and PROFIBUS via PROFIBUS CPs 
      • CP5611, CP5511, CP5512
    • External and internal modems and modem module S7-241
    • Ethernet for Local Area Networks (LANs) and Wide Area Networks (WANs) via CP243-1 or CP243-1 IT.

    With the S7-200 PC Access OPC server data can be read simultaneously from up to eight S7-200 target systems.

    Note:
    More information on the S7-200 OPC server is available in the S7-200 PC Access Online Help in Entry ID: 19301654 .

    SIMATIC NET OPC Server
    In addition you can set up the connection via the OPC server of SIMATIC NET. Which version of SIMATIC WinCC is released for which version of SIMATIC NET and which version of SIMATIC NET is supplied with SIMATIC WinCC is given in Entry ID: 21927773
    For this link you need an S7-2xx module, firmware version 1.22 or higher. A detailed description of Ethernet communication between an S7-200 and WinCC as well as a relevant example are available in Entry ID: 14587200 .

    • Communication via "Modbus Serial"
      Via the "Modbus Serial" channel you can use the PC/PPI cable to directly access the inputs, outputs and tag words of the S7-200 CPU. You can also address multiple CPUs. The only requirement is that the CPUs are connected together via PROFIBUS DP. For this the command library for the Modbus protocol must be loaded into the CPU.

    Note:
    The "Modbus Serial" channel is not included in the basic package of WinCC. You can procure this channel from the engineering consultants Ingenieurbüro Allmendinger (www.allmendinger.de).

    • Communication via "Modbus Serial Modem"
      You can establish a connection between your WinCC station and the S7-200 via a telephone line using the "MODBUS Serial Modem" channel. You can access inputs, outputs and tag words. However, you will require the S7-200 communication module, the EM241, for this purpose. This module facilitates special communication requirements, like remote maintenance, telecontrol, signaling or remote data transmission over wide distances. The one drawback that should be mentioned is that connecting and disconnecting by dialing using the modem is slow.
       
      Note:
      The "Modbus Serial" channel is not included in the basic package of WinCC. You can procure this channel from the engineering consultants Ingenieurbüro Allmendinger (www.allmendinger.de).

    • Communication via PROFIBUS DP
      Connection via PROFIBUS DP is a fast form of communication, however it can only be used to control the inputs and outputs of the S7-200. In order to communicate via PROFIBUS DP, you require the S7-200 communication module, the EM277. How to set up a connection to an S7-200 via PROFIBUS DP is described in detail in Entry ID 21915525.


    How do you set up a link via modem to an S7?Go to beginning
    Part number:

    Instructions:
    SIMATIC S7 permits you to set up an MPI connection via the TeleService Adapter. Using this option you can monitor even very remote PLCs and have their data displayed. The following procedure is proposed for this.
     
    No. Procedure
    1 Requirements for S7 modem connection
    • Requirement for the TeleService software is STEP 7 V3.1 or higher.
    • For operation you need the TeleService Adapter, connection cables for the modems and two Hayes-compatible modems.
    • For commissioning the TS Adapter you need a zero modem cable for parameterizing the adapter.
    • The S7 Protocol Suite must be installed in the WinCC project. You must set up an S7-MPI connection for configuring the tags.
    2 Installation

    The modems must be installed in the operating system. The TS software is installed on the OS using the Setup.
    3 Commissioning the TS Adapter

    It is possible to parameterize the TS Adapter using the zero modem cable for a direct connection or parameterizing via the modem if there is an active modem connection. The description of the default parameters and possible parameterizations are available in the TeleService manual.
    4 Commissioning the OS

    On the PC you must go to the Control Panel and in Set the PG/PC Interface select and configure the TeleService Adapter. Specify "MPI (WinCC)" as Access Point of Application. In the Properties of the TS Adapter you can switch between direct connection and modem.


    Fig. 01        
     

    Now a new telephone directory and telephone directory entry have to be created corresponding to the TS description.

    Now, if the connection is selected and successfully set up via the menu command "Connection > Setup", the PLC data is available just as with a regular MPI connection. 


    How can you link WinCC to S7 PLCSIM?Go to beginning
    Part number:

    Instructions
    As from S7-PLCSIM V5.4 (WinCC V6.2) you can select any networked node for setting up a simulation connection. S7-PLCSIM simulates:

    • The CPU of the node selected.
    • All the nodes belong to the CPU.
    • The subnet of the node selected.

    How to parameterize S7-PLCSIM is described in the S7-PLCSIM manual in Entry ID: 36450139.
    In WinCC you just have to change the logical device name of your connection to "PLCSIM".
     
    No. Procedure
    1 Right-click to open the system parameters of your connection under WinCC Explorer > Tag Management > SIMATIC S7 PROTOCOL SUITE > "Connection" and select the "Unit" tab. There you set "Logical device name" to "PLCSIM". You must then close and then restart WinCC.

    Note:
    Do not forget to reset the logical device name after finishing simulation.

    For further information on S7-PLCSIM, please refer to the following links:
     
    Description Entry ID
    S7-PLCSIM -- Creating S7 programs -- Loading and testing S7 programs 22957061
    S7-PLCSIM -- Product information -- System description 23328207
    S7-PLCSIM -- Diagnosing errors -- Analyzing error messages 22784233

    Note
    Up to S7-PLCSIM V5.3 you could only use a default connection via MPI at address "2". For that you had to create a new connection in WinCC via MPI.

    Which settings have to be made in WinCC to communicate with an S7 controller via the TS Adapter?Go to beginning
    Part number:

    Configuration Notes:
    Specific settings are required in WinCC to be able to access a controller with SIMATIC WinCC via the TeleService Adapter.

    Configuration of TS Adapter:
     
    No. Procedure
    1 Install the TeleService software.

    The default settings of the adapter correspond to the settings of a standard SIMATIC system. It is therefore not necessary to make any changes.

    2 Install the adapter on the controller and using a zero modem cable connect it to the serial interface of your computer (default: COM1).

    If you connect your adapter to a different serial interface, you must adapt the configuration of the TS Adapter in the PG/PC interface. Open this and configure the connected serial interface in the Properties of the TS Adapter. The transmission rate should match that set on the TS Adapter.


    Fig. 01

    There are two options for accessing the TS Adapter with WinCC.

    MPI access point:
     
    No. Procedure
    1 Configure the PG/PC interface.
    • Open this via "Start > Settings > Control Panel > PG/PC Interface".
    • As Access Point you select "MPI (WinCC)" and the TS Adapter as the Interface Parameter Assignment Used .


    Fig. 02

    2 In WinCC you add a new driver in the Tag Management.
    • In WinCC, right-click on the Tag Management and then click on the menu command "Add new driver".
    • Select the "SIMATIC S7 PROTOCOL SUITE.CHN" driver and click on "Open".


    Fig. 03

    3 The TS Adapter communicates via the MPI protocol. Therefore you must set the system parameters of MPI.
    • Open the SIMATIC S7 PROTOCOL SUITE driver in the Tag Management.
    • Right-click on the MPI connection and select the "System Parameters" menu command.


    Fig. 04

    4 Set the system parameters as shown in Fig. 05.
    • Click on the "Unit" tab and select the "MPI" item in the drop-down list for "Logical device name".


    Fig. 05

    5 Now create your connection and variables. Check the connection properties.
    6 Now it is possible to communication with the TS Adapter.

    S7ONLINE access point:
     
    No. Procedure
    1 Configure the PG/PC interface.
    • Open this via "Start > Settings > Control Panel > PG/PC Interface".
    • As Access Point you select S7ONLINE (STEP 7) and the TS Adapter as the Interface Parameter Assignment Used.


    Fig. 06

    2 In WinCC you add a new driver in the Tag Management.
    • In WinCC, right-click on the Tag Management and then click on the menu command "Add new driver".
    • Select the "SIMATIC S7 PROTOCOL SUITE.CHN" driver and click on "Open".


    Fig. 03

    3 The TS Adapter communicates via the MPI protocol. Therefore you must set the system parameters of MPI.
    • Open the SIMATIC S7 PROTOCOL SUITE driver in the Tag Management.
    • Right-click on the MPI connection and select the "System Parameters" menu command.


    Fig. 04

    4 Set the system parameters as shown in Fig. 07.

    If you cannot select S7ONLINE as logical device name, enter it manually. It is important that it is written in uppercase characters.
    The WinCC Explorer closes automatically in order to adopt these changes.


    Fig. 07

    5 Now create your connection and variables. Check the connection properties.
    6 Now it is possible to communication with the TS Adapter.

    Which hardware and software is required in the WinCC system to communicate with an S7 via a CP343-1?Go to beginning
    Part number:

    Configuration Notes:
    For communication between a CP343-1 and WinCC, on the WinCC side you need either a general network card (e.g. 3-Com) or a CP1613 card in the WinCC PC.

    • If you choose a general network card, you will need the SIMATIC NET "Softnet S7" license to be able to communicate with an S7. The corresponding SIMATIC NET driver must be installed.
    • If you choose a CP1613, you will need the SIMATIC NET "S7-1613" license to be able to communicate with an S7. The corresponding SIMATIC NET driver must be installed.

    Note:
    The relevant SIMATIC NET license ("Softnet S7") is included in the WinCC delivery package.

    Which settings are required to access an S7 CPU with WinCC and SIMATIC NET via a CP5611, CP5613 or CP1613?Go to beginning
    Part number:

    Configuration Notes:
    The steps below describe the procedure for a CP5613. The procedure applies accordingly to the other cards.
     
    No. Procedure
    1 Install SIMATIC NET.
    2 Install the CP5613 in a free PCI slot.
    3 Start the PC.
    4 After the PC has started up, SIMATIC NET automatically starts the Commissioning Wizard and recognizes the CP5613.
    5 Assign the required addresses and parameters to the card and enable the option "Use module only for PG mode".


    Fig. 01  
     
    6 Create a new project using the Configuration Wizard.
    7 Follow the configuration wizard through to the end and load the parameters into the CP (menu item: "Load PLC > Load in module").
    8 Set the access points for the CP in the Configuration Console.


    Fig. 02  
     
    9 Select the relevant card and open the Properties ("Right-click > Properties").
    10 Assign the appropriate interface parameters to the card.


    Fig. 03  
     

    Note:
    If some of the settings are to be entered later, you can call these dialogs again via "Start > SIMATIC > SIMATIC NET > Settings > Commissioning Wizard".

    11 In the WinCC Explorer under "Tag Management" you configure the channel for your CPU and enter the associated device names in the system parameters.


    Fig. 04  
     
    12 Configure tags and pictures.
     

     Entry ID:21915432   Date:2014-10-24 
    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