Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 109739660, Entry date: 01/31/2017

SIMATIC S7‑PLCSIM Advanced: Co‑Simulation via API

  • Entry
  • Associated product(s)
With S7-PLCSIM Advanced as independent simulation system you can, for example, simulate and test a STEP 7 program created by you.

With the SIMATIC S7‑PLCSIM Advanced virtual controllers for the simulation of a S7-1500 or ET 200SP CPU are created and used for the comprehensive simulation of functions. Therefore no real controllers are required to test a STEP 7 program.
The virtual controllers can also be tested in the context of a system or machine. The user interface (API) is used to connect the virtual controller to a system or machine simulation (co-simulation).

A STEP 7 program created in STEP 7 V14 controls a conveyor system. For a comprehensive function test, the STEP 7 program is loaded via S7-PLCSIM Advanced into a virtual S7-1500 controller. This controller interacts via the API with a co-simulation (plant simulation), in order to validate the STEP 7 program in the context of the plant.

Advantages of the application example

  • Introduction to the use of API
  • C# example code on which you can establish your own application

Topics not covered by this application
This application example does not contain a description of the following topics:

  • Basics of object-oriented programming
  • Basics of programming environment, such as, for example, Microsoft Visual Studio
  • Basics of TIA Portal configuration

Sufficient knowledge of these topics is assumed.

Documentation and example project
  Documentation (2,0 MB)
Registration required TIA Portal V14 Project (system control) (7.3 MB)
Registration required System simulation (application and Visual Studio Project (913.2 KB)

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
Rate entry
no rating
Requests and feedback
What do you want to do?