Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 109742819, Entry date: 02/13/2017

Object-Oriented Programming in SIMOTION

  • Entry
  • Associated product(s)
Information, downloads and notes on the book “Object-oriented Programming in SIMOTION”

Welcome to the information page on the book “Object-oriented Programming in SIMOTION”.

The book "Object-oriented Programming with SIMOTION” is aimed at all persons who are keen to familiarise with this trendsetting development in the automation technology. Whether you are a budding engineer, technician or an experienced automation engineer:
It will help you to understand and use the object-oriented programming. The book was published by the publisher “Publicis Publishing" with ISBN-13: 978-3-89578-456-9.


The ever increasing requirements towards more flexibility in the engineering industry also implicate changes in the control systems programming. As the industry is already following the path of mechatronic systems, strong requirements to the software’s modularity and the programming method will result from this. Machines will more and more include function nodes, and this fact implies that that modularity must also be reflected in the software. The extensions on object-oriented programming as defined in IEC 61131-3 ED3 largely support this desired modularisation in the software.

The book “Object-oriented Programming with SIMOTION” is proper for all persons who wish to familiarise with the object-oriented programming (OOP) in the automation technology.

  • The book deals in its first part with the fundamentals of the object-oriented programming;
    The basis is the implementation in SIMOTION according to IEC 61131-3 ED3 (chapter 1 to 6).
  • The second part is a general introduction to the SIMOTION system (chapters 7 and 8).

Appropriate examples illustrate the particular issues. These examples build on each other, resulting at the end in a completely OOP-created machine module.

Notes regarding software versions

To test the examples, you need at least the engineering software SCOUT V4.5 .

The engineering system SCOUT is available in two fundamental product lines:

  • SCOUT as an optional package with STEP 7 V5.5
    This software package requires a STEP 7 V5.5 installed.
  • SCOUT as a stand-alone-package.
    This software package suites for users who only want to design SIMOTION CPUs.
    This package does not allow designing SIMATIC S7 CPUs though.
    You must remove an installed STEP 7 V5.5 version from your computer in this case.


  • It is impossible to change later between the optional package and the stand-alone-package.

  • Both packages also include SCOUT TIA which can be used to designSIMOTION-CPUs in TIA Portal.
    This purpose requires an installed TIA Portal V14 application, e.g. STEP 7 V14, Startdrive V14, or WinCC V14, already be installed.

  • STEP 7 V5.5, STEP 7 V14, or WInCC V14 can be ordered separately, if need be.

For the article codes, please, look here:
Article codes Name Version
6AU1810-1BA45-0XT7 SIMOTION Engineering System SCOUT V4.5 Optional Package
incl. SCOUT TIA on DVD, Demo/Trial Version with Trial License
V4.5 HF1
6AU1810-1BA45-0XA0 SIMOTION Engineering System SCOUT V4.5 Optional Package
incl. SCOUT TIA on DVD with Full License
V4.5 HF1
6AU1810-1BA45-0XE0 SIMOTION Engineering System SCOUT V4.5 Optional Package
incl. SCOUT TIA on DVD with Upgrade License
V4.5 HF1
6AU1810-1CA45-0XT7 SIMOTION Engineering System SCOUT Stand-alone V4.5 incl. SCOUT TIA on DVD, Demo/Trial Version with Trial License V4.5 HF1
6AU1810-1CA45-0XA0 SIMOTION Engineering System SCOUT Stand-alone V4.5 incl. SCOUT TIA on DVD with Full License V4.5 HF1
6AU1810-1CA45-0XE0 SIMOTION Engineering System SCOUT Stand-alone V4.5 incl. SCOUT TIA on DVD with Upgrade License V4.5 HF1

Sample Programs

We have developed a series of sample programs which build on each other.
These deliberately chosen simple examples shall make the use of object-oriented mechanisms completely transparent.
For a download of the sample programs contained in the book, please go here. For the use of the examples, the “Notes on the use of the sample programs” shall apply:    109742819_Conditions_en.txt (1,6 KB).
With a download and/or the use, you agree with these conditions.

The examples follow the hierarchy of the chapters in the book. This means that a given sample project only includes the sources of the related chapter.
The test of the individual issues might require that further programs be assigned to the sequence system.
If you are using a hardware different from the one used in the project, add the appropriate hardware into the project and copy the sources beneath the CPU added.
For more information on how to change the hardware, please also refer to the SIMOTION documentation.

Notes regarding the download of examples
  • The examples are archived in proper projects each, ordered by the chapters in the book.
  • To use the projects within the Engineering SCOUT, copy the archived project to a local folder of the PC.
  • You can now add the project using the SCOUT function "Retrieve" to the projects data management.
  • SCOUT opens the retrieved project after successful retrieving.

ChapterNotes Download
3.3.6 and 3.3.7The project includes the counter classes examples. Counter.zip (703,6 KB)
3.4.1The project includes the valve examples.
To test the derivatives, the programs must be assigned to the sequence system.
Registration required Valvec_1.zip (584,6 KB)
The project includes the valve-related examples using the interface for the HMI interfacing.
The sources include the chapter number as a comment for illustration purposes.
Registration required Valvecon.zip (1,6 MB)
3.5.9The project includes the examples for the valves periphery neutralization.
To test the functions, the related program must be assigned to the sequence system.
Registration required Neutrper.zip (930,4 KB)
3.6.2The present project shows the use of automates within the classes.Registration required Statemac.zip (1,0 MB)
3.7.2The examples dealing with the abstract CDrive class are included in this project. Registration required Abstract.zip (1,3 MB)
4.1.3The present example includes the programs automatically created by the “easyProject” project generator. Thus it can be considered as the result of an automatic generation. The equipment module “Pusher” has been created twice in this project.
You can repeat on your own this generation using the project generator. The project generator can be found within "Utilities&Applications" of the SCOUT supply.
Registration required Pusher.zip (913,4 KB)
You must integrate the equipment module "PusherX" into the project generator. To do so, unzip the zip-file to a local folder of your computer.
Afterwards copy the unzipped folder "PusherX" together will all its sub-folders and files beneath the project generator into the folder "LW:\ProjectGenerator_V1_4_2\SIMOTION\EquipmentModules\V4_5".
The equipment module is available for a project on the next project generator start.

Registration required PusherX.zip (87,6 KB)

diverseThe uncompilable program examples are concentrated in the archived project NonCompP.zipsind.

After having retrieved and opened the project in SCOUT, you will find the assignment to the related chapter in the book as a distinct source.
Any source has got a chapter number.

Registration required NonCompP.zip (1,3 MB)

Further links

  • For an overview of the SIMOTION system, please visit our pages atVideo- und Tutorial.

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