×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 100450795, Entry date: 09/10/2014
(2)
Rate

How do you use a controller to load from a VM (VMware Player/Workstation) via a PROFIBUS/MPI CP connected via PCI or PCIe?

  • Entry
  • Associated product(s)

Description
This FAQ response gives you step-by-step instructions for loading a device from a virtual machine (VMware Player/Workstation) by means of PROFIBUS or MPI of the host system.

Background
Different procedures are required depending on the configuration.

Configuration 1
Field PG M3 or PC with PROFIBUS CP
If you are using a PROFIBUS-CP with PCI or PCIe connection, then it is not possible to download directly via the CP into the controller, because VMware Workstation/Player cannot display PCI/PCIe modules in virtual machines. Therefore you have to use the "S7-Routing" function. The procedure is described below.

Configuration 2
Field PG M4 or PC with CP5711, PC Adapter USB A2
You can load configurations directly from a virtual machine into controllers via PROFIBUS CPs which are connected via USB (CP 5711, PC Adapter USB A2). VMware provides USB support for virtual machines. It is not necessary to use the workaround with "S7-Routing".

Hardware and software requirements
The following hardware and software components were used for Configuration 1:

Field PG M3 or PC with PROFIBUS CP

  • Ethernet card with connected network
  • PCI/PCIe PROFIBUS/MPI card (onboard with Field PG M3 CP 5611)
  • Windows operating system (some CPs only support 32-bit operating systems!)
  • SIMATIC NET PC Software Edition 2008
  • VMware Workstation/Player

Virtual machine with

  • Windows operating system
  • Configuration software STEP 7 V5.5 SP3
  • Virtual Ethernet module
  • Configuration (main memory, CPU, etc.) according to requirements of operating system and STEP 7

Instructions for STEP 7 V5.x
Proceed as follows to load the configuration from a virtual machine into a CPU315-2 DP via the PROFIBUS CP5611 using "S7-Routing".
The procedure applies also for other PROFIBUS devices and CPs.

  1. In the VMware set the virtual Ethernet interface to "Bridged" mode.


    Fig. 01
     
  2. In your S7 project you configure and program the desired PROFIBUS device (here: CPU315-2 DP) and connect the PROFIBUS interface with a PROFIBUS segment.
     
  3. Insert a PC station in your project.


    Fig. 02
     
  4. Change the name to the computer name of your host system.


    Fig. 03
  5. In the Properties of the PC station you set that an xdb file is to be generated.


    Fig. 04
     
  6. Open HW Config and in the PC station you configure an Ethernet CP.
    Note that the MAC address and IP address must match the real Ethernet card of the host system.
    Network the Ethernet CP.
     
  7. Configure the PROFIBUS CP which is connected to your host system.
    If you want to download via PROFIBUS, then configure PROFIBUS mode as the type.


    Fig. 05

    Network the PROFIBUS CP with the same subnet as the S7 CPU.
    Close the step by saving and compiling the configuration. Close the HW Config.


    Fig. 06
  8. Open NetPro and under "Stations" insert a PG/PC station in your project.
     
  9. Open the Properties of the PG/PC station and in the "Interfaces" tab you add a new interface. Add the virtual (bridged) Ethernet interface of the VMware.


    Fig. 07

    Network the interface with the same subnet with which the PC station is networked.
     
  10. Go to the "Assignment" tab and assign the PG/PC interface "TCP/IP", for example, to the interface.


    Fig. 08

    Then enable the "S7ONLINE Access" checkbox. Now the Ethernet line of the PG/PC is marked yellow.


    Fig. 09
     
  11. Save and compile the project. Copy the resulting xdb file into a folder of the host operating system.
     
  12. In the host you open the component configurator via the icon in the taskbar.
    Load the generated xdb file into the component configurator via the "Import Station" switch.


    Fig. 10
     
  13. Connect the physical Ethernet port of your PC, with a switch, for example, to receive an active link status on the interface.
     
  14. Now you can download the configuration from your project in the virtual machine into the S7 CPU.


    Fig. 11

    Figure 11 shows the target address of the CPU (PROFIBUS Address 3) and the first 'hop' on the way to the target station: the IP address of the host system.

Instructions for STEP 7 in the TIA Portal
Proceed as follows to load the configuration from a virtual machine into a CPU315-2 DP via the PROFIBUS CP5611 using "S7-Routing".

When configuring, pay attention to the memory and CPU requirements of the TIA portal.

The procedure applies also for other CPs and versions of SIMATIC NET.

  1. In the VMware Workstation/Player set the virtual Ethernet interface to "Bridged" mode.


    Fig. 12
     
  2. In your S7 project you configure and program the desired PROFIBUS device (here: CPU315-2 DP) and connect the PROFIBUS interface with a PROFIBUS segment.
     
  3. Insert a PC station in your project.


    Fig. 13

    Change the name to the computer name of your host system.


    Fig. 14
     
  4. In the Properties of the PC station you set that an xdb file is to be generated.
     
  5. Open HW Config and in the PC station you configure an Ethernet CP.
    Make sure that the MAC address and IP address match the real Ethernet card of the host system.
    Network the Ethernet CP.
     
  6. Configure the PROFIBUS CP which is connected to your host system.
    If you want to download via PROFIBUS, then configure PROFIBUS mode as the type.
    Network the PROFIBUS CP with the same subnet as the S7 CPU.


    Fig. 15
     
  7. Compile the PC station.


    Fig. 16
     
  8. Copy the resulting xdb file into a folder of the host operating system.
     
  9. In the host you open the component configurator via the icon in the taskbar.
    Load the generated xdb file into the component configurator via the "Import Station" switch.


    Fig. 17
     
  10. Connect the physical Ethernet port of your PC, with a switch, for example, to receive an active link status on the interface.
     
  11. Now you can download the configuration from your project in the virtual machine into the S7 CPU.
    For this you select "Online > Extended download to device" and select your interface setting.


    Fig. 18
    In order to inform STEP 7 where the Engineering PC is located, you select the Ethernet segment with which the host system is connected as the connection with interface/subnet.

Download
The download includes the "S7_Project.zip" folder.
It includes an example with a STEP 7 V5.5 SP3 and a STEP 7 V13 project.

S7_Project.zip ( 1760 KB )

Creation Environment
The screens and downloads in this FAQ response were created with

  • STEP 7 V5.5 SP3
  • STEP 7 V13
  • VMware Player
  • SIMATIC NET Edition 2008

You can also do the configuration using other versions of the software like SIMATIC NET V12, for example.

Disclaimer
Note that the described procedure is designed only for downloading configurations into controllers.
When using a VMware product, you must observe the valid specifications for productive operation of each SIMATIC product.

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 at:
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.

Additional Keywords
PCI Express, PCI-Express, Ethernet CP, 5611, 5612, 5613, 5614, 5622, 5623, 5624, 5711, PROFIBUS CP

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.