You are on page 1of 69

Application description 03/2015

SIMIT Getting Started


SIMIT Simulation Framework V8.1, SIMMATIC PCS 7 V8.1

https://support.industry.siemens.com/cs/ww/en/view/77362399
Warranty and liability

Warranty and liability


Note: The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These application examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be held liable for any damages/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice. If there are any deviations
between the recommendations provided in these Application Examples and
other Siemens publications e.g. catalogs the contents of the other documents
have priority.

We do not accept any liability for the information contained in this document.
Any claims against us based on whatever legal reason resulting from the use
of the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of
a deficiency or breach of a condition which goes to the root of the contract
Siemens AG 2015 All rights reserved

(wesentliche Vertragspflichten). The damages for a breach of a substantial


contractual obligation are, however, limited to the foreseeable damage, typical for
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of the Siemens AG.

Security Siemens provides products and solutions with industrial security functions that
infor- support the secure operation of plants, solutions, machines, equipment and/or
mation networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.industry.siemens.com.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 2
Table of contents

Table of contents
Warranty and liability ................................................................................................... 2
1 SIMIT at a glance ................................................................................................ 4
1.1 What is the SIMIT Simulation Framework? .......................................... 4
1.2 The aim of the "color_gs" project ......................................................... 6
1.3 Installation of the SIMIT Simulation Framework .................................. 7
1.3.1 Project window ..................................................................................... 7
1.3.2 Tools window ...................................................................................... 11
2 First works for the project .............................................................................. 16
2.1 Presentation of the project ................................................................. 16
2.2 Configuring the PLCSIM interface in the SIMATIC Manager ............. 20
2.3 Configuring the PLCSIM interface in SIMIT ....................................... 25
2.4 Verifying communication between PLCSIM and SIMIT ..................... 30
2.5 Scaling the process variables ............................................................ 33
2.6 The current status of your project ...................................................... 36
3 Creating the actuator and sensor level ......................................................... 37
3.1 Creating the "color_gs" model ............................................................ 37
3.2 Designing the "CM_NK111" chart ...................................................... 39
3.3 Creating further charts with the CMT Import function ........................ 41
3.3.1 Exporting the XML files from PCS 7 ................................................... 41
3.3.2 Creating the template ......................................................................... 42
Siemens AG 2015 All rights reserved

3.3.3 CMT Import ........................................................................................ 49


3.4 The current status of your project ...................................................... 51
4 Building models for physical relations ......................................................... 52
4.1 Building a model for the raw material tank ......................................... 52
4.2 Building models for the reactors ......................................................... 55
4.3 The current status of your project ...................................................... 57
5 Creating the graphical interface (optional) ................................................... 59
5.1 Creating the visualization ................................................................... 59
5.2 The current status of your project ...................................................... 67
6 Literature .......................................................................................................... 69
7 History............................................................................................................... 69

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 3
1 SIMIT at a glance
1.1 What is the SIMIT Simulation Framework?

1 SIMIT at a glance
1.1 What is the SIMIT Simulation Framework?
Description
There are three essential factors that must be considered in the implementation
phase of a system:
Quality standards
Cost efficiency
Time savings
Besides these, even system individuality and high availability are playing an ever
increasing role. The engineering phase extends far into the operating phase of
the system. This results in projects with higher complexity, a reduction in the time
frame for engineering and therefore more pressure on each member of the project.
In this area, SIMIT can contribute to an increase in cost efficiency. SIMIT is
a simulation platform for virtual commissioning of the user software in automation
systems. In doing so, SIMIT places a wide spectrum of the plant simulation at your
disposal. Starting with the simulation of input/output signals, through the simulation
of field equipment, to the modeling of the whole process (see Figure 11).
Siemens AG 2015 All rights reserved

Figure 11

A simulation with SIMIT Simulation Framework (hereinafter called SIMIT) enables


the testing of automation software with real hardware (Hardware in the Loop, or
"HiL") or without real hardware (Software in the Loop, or "SiL"). The system
simulation is created in SIMIT. This reflects the behavior of the system and is
equipped with a real controller (HiL), connected via an interface module for
PROFIBUS or PROFINET, or an emulator (SiL) (see also Figure 11).
A simulation with SIMIT can therefore bring cost savings and increased quality in
automation projects. Due to its wide spectrum, SIMIT supports you in each phase
of your project. This allows possible sources of error to be detected early and
solved economically during this part of the planning phase. Likewise, faults can
be simulated without any risk to man and machine.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 4
1 SIMIT at a glance
1.1 What is the SIMIT Simulation Framework?

The simulation in SIMIT is subdivided into three levels:


Signal level
Device level
Process level

Signal level
Plant signals are simulated in the signal level. SIMIT offers supporting tools (see
chapter 2) for the definition and scaling of the signals.
An initial function check can be done within a short time using your personal
computer in your office. PLCSIM (an emulation software for automation systems)
provides a software interface that allows the simulation data to be exchanged
between SIMIT and the emulated automation system (PLCSIM). The automation
software can therefore be developed and tested on your personal computer prior
to the commissioning phase without requiring any real hardware or plants.
Therefore, you can already perform signal tests at the signal level to eliminate
connection failures.

Device level
The device level displays devices such as valves or motors of the plant. To do this,
SIMIT comes with pre-made components. They can be connected to the signals
from the signal level.
Siemens AG 2015 All rights reserved

Furthermore, SIMIT offers templates and tools that allow the automatic creation
of the device level, through import of configuration data from PCS 7.
This enables you to test the run-time behavior (e.g. opening a valve) and the
feedback (e.g. when limit switches are reached) (see chapter 3). It increases the
quality of the simulation and has the advantage that the automation software is
implemented in the real plant with a high quality assurance.

Process level
The physical model of the plant is represented in the process level. With a variety
of library components from the base library as well as the FLOWNET and
CONTEC libraries that can be purchased in addition to the base library, SIMIT
provides you with a platform that allows you to create a physical model. The
Component Type Editor (CTE) is an additional tool that gives you a high degree
of flexibility. You can develop your own components or adapt existing ones to your
own applications.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 5
1 SIMIT at a glance
1.2 The aim of the "color_gs" project

1.2 The aim of the "color_gs" project


In the course of the document "SIMIT Getting Started" you will get familiar with
the following applications:
The SIMIT Simulation Framework as a central software for creating
simulations. You will learn how to configure and use existing components for
your simulation using the SIMIT library. You will also learn how to visualize
your process with SIMIT. To this end, SIMIT provides you with an editor, which
allows you to create the user interface. Thus, you can monitor the simulation
process and, if necessary, intervene and control (optional) when the situation
requires it.
PLCSIM as an interface between PCS 7 and the SIMIT simulation software.
You will learn how to configure PLCSIM and how to establish communication
between PLCSIM and SIMIT.
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 6
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

1.3 Installation of the SIMIT Simulation Framework


The SIMIT Simulation Framework is basically divided into four panes
(see Figure 12):

Figure 12
1 2 3
Siemens AG 2015 All rights reserved

1. Project window
2. Working window
3. Tools window
4. Properties window

1.3.1 Project window

Standard applications such as, for example, saving/opening of projects, can be


done via the menu bar and the standard toolbar.

The Project window displays the currently open project in the familiar Windows
Explorer structure. At the very top there is the name of the currently open SIMIT
project. The project manager is located one level below. The project manager
shows you the current project in list view, which gives you easy access to the
elements in the project.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 7
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

In the "Couplings" folder, directly beneath the project manager, you can find the
function "New coupling". This function allows you to define the communication
interface.
SIMIT version 8.1 provides you with the following couplings (installation
dependent):
PROFIBUS DP
PROFINET IO
OPC SERVER
OPC CLIENT
SHM
PLCSIM
PRODAVE
VIRTUAL CONTROLLER

Note: The "couplings" subject plays a central role when configuring a SIMIT project
Siemens AG 2015 All rights reserved

and will therefore be illustrated via a PLCSIM coupling, in chapter 2.2.

The "Charts" folder contains all the simulation models you created. This folder also
contains the charts needed for process visualization. A new chart is created in the
"Charts" folder by double clicking on "New chart".

The "Monitoring" folder is located beneath it. This folder contains a number of
analysis tools that enable the monitoring of process values.
The following tools are available for analyses purposes:
Trend picture
Messages
Archive
The function "Trend picture" enables you to visualize waveforms and export them
for documentation. The alarm logging in SIMIT allows you to assign events, define
messages and export them as needed. The archiving of the signal can be done
over the entire simulation period. For further information about monitoring, please
consult chapter 5 "Diagnostics & Visualization" of the User Manual "SIMIT (V8.1)".

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 8
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

Another module that is available in connection with the standard package, is the
"Scripting". This tool gives you access to process signals on deterministically set
times during the execution time. This allows you to automatically engage in the
process and to output information during the simulation. For further information on
the topic, refer to chapter 6 "Automatic Control Interface" of the Operating Manual
"SIMIT (V8.1)".

The snapshots function takes snapshots of the process and saves them in the
same folder. The saved state of the process can be then loaded at any time
through the shortcut menu of the saved snapshot. The simulation is continued
subsequently from this state.
The last three functions in the project window are organized as follows:
Find & replace
Consistency check
Start
Siemens AG 2015 All rights reserved

The first mentioned function allows you to search for elements in your project and
make substitutions if required.
With the consistency check, you can test your project for configuration errors.
The last function in the project navigator is the "Start" function. This function
enables you to start the simulation. During this mode, SIMIT changes its
background color from blue (see Figure 13) to orange (see Figure 14).

Note: Before you start the search function, you should save the project.
Otherwise, the elements that are not saved will not be displayed.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 9
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

Figure 13 SIMIT interface in editing mode

Figure 14 SIMIT interface in simulation mode


Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 10
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

1.3.2 Tools window

"Components" task card


In the "Components" task card, SIMIT provides a set of libraries to aid the design
of simulations. Each of the six different task cards consists of further panes that
provide different functions. The "components" task cards are organized as follows:
Basic Components
User Components
Project Components
Preview
The basic component is similar to the PCS 7 block library and includes all libraries
provided by SIMIT. This document focuses on the communication, connectors and
standard libraries.
In the pane "User Components", you can store copies of components from the
base library. In it, you can edit the copied component, which is available for the
configuration of your simulation. If you have created your own components, these
are also to be found in the "User Components" folder.
You can find more information about how to create your own components in the
User Manual "SIMIT-Component Type Editor (CTE)" \6\.
Siemens AG 2015 All rights reserved

Note: You can only create components with the Ultimate Package.

In order for the created component to be assigned to the project, it must be saved
in the "Project Components" tab. Once saved, you can use the component again
after successfully retrieving the project. However, the previously created
component must be archived with the project.
In the last pane "Preview", you can view detailed information about selected
components. A total of five attributes, assigned to a component, are displayed:
Symbol
Name
Version
Library
ID

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 11
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

An example of an integrator is displayed in Figure 15 with the attributes


mentioned above.
Figure 15 Preview for the "INT" component

In the preview of the integrator, you can also see the connections of the
component. The connections marked with a green arrow represent the inputs of
the component. The connections marked in red represent the outputs of the
component. Generally, only the inputs are labeled.
Siemens AG 2015 All rights reserved

The label on the component provides information about the function. In the "INT"
example, the typical integral sign is shown as a symbol. In this example, the
component is saved in the standard library.

"Controls" task card


This tab contains all the components you need for the input and output of process
variables. The components from the "Inputs" pane enable you to specify process
variables for the execution time. The "Output" pane provides you with all the
components you need to display process values.
As from SIMIT version 7.1, you can also draw 3D objects for visualization purposes
from the "Others" tab. For the integration of a 3D object you need an object that
exists in .wrl format.
The signal isolator is another element in the "Others" tab. This allows you to
disengage signals from processes during the execution time. The disengaged
signal can be then manipulated through an input component such as the slide.

"Macros" task card


The macro function allows multiple sub-components to be combined into one
whole component. The generated component can be then inserted into a chart.
In Figure 16, a macro component is represented with three inputs and one output.
The simulation model of an ordinary second order differential equation can be then
inserted in a chart as a component (see Figure 17). The led out inputs and
outputs can be controlled and monitored during simulation.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 12
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

Figure 16 System model of a spring-mass-damper system

Frequently used circuits can be easily summarized. The inputs and outputs, which
Siemens AG 2015 All rights reserved

should be visible in the macro components are connected in the Macro Component
Editor as shown below:
Figure 17 View of the macro component created in the chart

Select the desired input or output, for example, the output "Y" of the integrator,
and drag it into any cell in the sheet bar.
After saving the macro, you can add the components you created in a chart.

Note: For more information about the functions of the Macro Component Editor,
consult chapter 3.4 "The Macro Component Editor" in the User Guide
"SIMIT (V8.1)" \5\.

"Graphic" task card


The "Graphic" task card provides you with drawing tools for creating graphics.
With the existing graphic elements you can visualize your simulation in a chart
according to the requirements. Besides static graphic elements, SIMIT also offers
you the possibility to create dynamic ones. In addition to process simulation, even
the visualization of processes plays an important role in SIMIT. It is therefore
explained in more detail in chapter 5.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 13
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

"Projects" task card


If you have created several simulation models with SIMIT, the "projects" function
offers you a method for reusing existing part-models. This requires you to select
the desired project by clicking "Open project" in the "Projects," task card. You can
then drag the chart and drop it to a folder in your current project. There, it can be
edited or copied, just like all the other charts.

"Signals" task card


To access all the signals saved in the project, open the "Signals" task card.
The signals can be, for example:
Inputs/outputs of components
Component states
Inputs/outputs of couplings

Figure 18 Filtering by all signals of the component "CM_FC111_Selection"


Siemens AG 2015 All rights reserved

For the representation of a component output in a trend picture, you first need to
find the appropriate signal. In the "Signals" task card, you can drag the
components and drop them in the "Source" window " or write down the name of
the component in the source window. Once you find the components, you can drag
and drop them in the Properties window of the trend builder.
In Figure 18, an example of the filtering is shown according to all signal types
for the component "CM_FC111_Selection". However, for example, you can also
search for a specific name of an output. In this case, this would mean that the
name of the output, e.g. "Y", must be entered in the "Name" section. SIMIT will now
search for all signals with the name "Y". Due to the name entry "Y", the search
gives a variety of results. One way to reduce the number of hits is to refine the
search by adding more filter criteria, such as the data type.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 14
1 SIMIT at a glance
1.3 Installation of the SIMIT Simulation Framework

Properties window
In the Properties window, the properties for the currently selected object are
displayed. In the following Figure 19, the properties of the component "INT" are
given as an example. There you can change the settings of the object; such as
change of name or position. If the project manager or the current coupling is
selected, the properties of the project or the coupling are shown in the Properties
window.
Figure 19 Properties of the "INT" component

Note: When the simulation is running, you can access the Properties window for
components by selecting the component with the right mouse button.

For further insight into the possible setting options for components via the
properties window, consult chapter 7.1 "The Basic Library" of the User Manual
"SIMIT (V8.1)" \5\.
Siemens AG 2015 All rights reserved

Working window
In SIMIT, each editor opens in the working window. Once you have opened,
for example, the chart editor, SIMIT provides you with the toolbar displayed in
Figure 110.
Figure 110 Toolbar in the SIMIT working window

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 15
2 First works for the project
2.1 Presentation of the project

2 First works for the project


2.1 Presentation of the project
After the brief theoretical introduction to the SIMIT simulation program, you will
deepen your theoretical knowledge in the following chapter by means of a practical
example. The "color_gs" project will be used for the engineering station (SIMATIC
Manager). In the following chapter, the counterpart is created step by step in
SIMIT, building on the "color_gs" project.

Note: The "color_gs" project used here has been modified and does not match the
original, which can be downloaded from the following link:
https://support.industry.siemens.com/cs/ww/en/view/103141812
The following modifications have been made:

Modified plant hierarchy

Reduction to one process picture

Process tags created from control module types


Siemens AG 2015 All rights reserved

Description of the plant


The liquid raw material is stored in a raw material tank and pumped as needed
from there into one of the two reactors. The flow volume is regulated by valves,
so that the respective level is reached in the container.

Task for the SIMIT Getting Started


First you have to create the SIMIT project. Then you connect the coupling to
PLCSIM and create the input and output signals. In the second step, you will
create the actuator and sensor level for the raw material tank and the reactors
using data from the PCS 7 project (see Figure 21). In the following step, you
will design the physical models for the raw material tank and the reactors.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 16
2 First works for the project
2.1 Presentation of the project

Figure 21 Visualization interface of the simulation (optional)


Siemens AG 2015 All rights reserved

Here, you will learn how to easily add the recurring simulation models, such as
those of the valve, to your chart through templates and the import function.
This speeds up the model creation for a simulation model significantly.
In addition, you will create a macro component that summarizes parts of your
simulation into one component. In the last step, after creating a model for the
"color_gs" project, you will generate the visualization of the modeled process
(optional).

Explanation of the model


The labels were taken from the PCS 7 project "color_gs". The meaning of the
individual components is as follows.

Table 21
Abbreviation Meaning Comment
LI Level Indicate Level measurement
NK Valve Shut-off valve
NP Motor The pump that transports
the raw material from A to B

Plant construction for the "color_gs" project


The "color_gs" project is created on a PC station with SIMATIC Manager and
SIMIT installations (see Figure 22).

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 17
2 First works for the project
2.1 Presentation of the project

Figure 22 Interaction between STEP 7 and SIMIT on a PC station


Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 18
2 First works for the project
2.1 Presentation of the project

Description
This document "SIMIT Getting Started" includes the following configuration steps:
Configuration of the PLCSIM coupling, both in the SIMATIC Manager and in
SIMIT. The PLCSIM coupling is an interface configuration between PLCSIM
(SIMATIC Manager) and SIMIT. With this coupling, you can read and write the
inputs and outputs of the simulated AS from SIMIT.
Creating models for the device level and process level in SIMIT. You will learn
how to create models for the physical correlations in a simple manner, so as
to test the program of your automation system.
Visualization of the user interface in SIMIT. You will create a picture "Flow
Chart" that allows you to control and monitor the modeled process.

Note: Please note that this document does not discuss the function of the PCS 7
project "color_gs". Further information can be found in the manuals "Process
Control System: PCS 7 Getting Started Part 1 (V8.1)" \3\ and "Process Control
System: PCS 7 Getting Started Part 2 (V8.1)"\4\.
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 19
2 First works for the project
2.2 Configuring the PLCSIM interface in the SIMATIC Manager

2.2 Configuring the PLCSIM interface in the SIMATIC


Manager
Before you start configuring SIMIT, you must first retrieve the "color_gs" project in
the SIMATIC Manager, change the settings and load PLCSIM.

Procedure
The following table summarizes the required configuration steps:
Table 22
Step Action
1. Open the SIMATIC Manager.
2. Retreive the "color_gs" project via the menu command "File Retrieve".
Siemens AG 2015 All rights reserved

3. Give the same name to the PC station as the one of your computer.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 20
2 First works for the project
2.2 Configuring the PLCSIM interface in the SIMATIC Manager

Step Action
4. Open PLCSIM either from the toolbar in SIMATIC Manager or from the menu
command "Extras Simulate module"

Note:
To use the SIMIT PLCSIM in the SIMIT environment you need the PLCSIM
version 5.4 SP5 or higher.
5. In the drop down list, set the PG/PC interface to PLCSIM (TCP/IP).

6. Open the hardware configuration in the SIMATIC Manager (component view).


Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 21
2 First works for the project
2.2 Configuring the PLCSIM interface in the SIMATIC Manager

Step Action
7. Save the hardware configuration and download it to PLCSIM.

1 2

Note:
Once you have downloaded the hardware configuration to PLCSIM, the IP
address in PLCSIM changes to the one set in the hardware configuration
(see illustration in step 5, below right IP = 172.20.47.20).
The PG/PC interface of PLCSIM is set to PLCSIM (TCP/IP), since the current
Siemens AG 2015 All rights reserved

version of PLCSIM does not support any symbolic connection names (named
connections). You can find more information in the Configuration Manual
"Process Control System PCS 7 Operator Station".

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 22
2 First works for the project
2.2 Configuring the PLCSIM interface in the SIMATIC Manager

Step Action
8. Compile the S7 program. To do this, select "Charts Compile" in the shortcut
menu of the Component view.
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 23
2 First works for the project
2.2 Configuring the PLCSIM interface in the SIMATIC Manager

Step Action
9. Load the S7 program. To do this, select "Charts PLC Download" in the
shortcut menu of the Component view.
Siemens AG 2015 All rights reserved

Once you have downloaded the "color_gs" project in the virtual AS, SIMIT gains
access to the data from PLCSIM via the software interface "PLCSIM (Prosim)".
This assumes, however, that PLCSIM and SIMIT are installed on the same
computer.

Note: PLCSIM must be started before you launch a simulation with a PLCSIM
coupling.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 24
2 First works for the project
2.3 Configuring the PLCSIM interface in SIMIT

2.3 Configuring the PLCSIM interface in SIMIT


Now that you have finished configuring the virtual AS, read the following chapter to
learn how to configure the PLCSIM interface in SIMIT and how to assign the PCS 7
process image to the input and output signals.

Procedure
The following table summarizes the required configuration steps:

Table 23
Step Action
1. Open SIMIT and create a new project.
Siemens AG 2015 All rights reserved

2. Click on "Add a new coupling" in the opening view "Getting started".

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 25
2 First works for the project
2.3 Configuring the PLCSIM interface in SIMIT

Step Action
3. Select "PLCSIM" and click "Add".

Note:
The number of selectable couplings depends on the licensing.
4. Change the name of the coupling as desired or accept the default name of the
PLCSIM coupling "PLCSIM".
Siemens AG 2015 All rights reserved

Note: When selecting a coupling, you specify the communication partners with which
SIMIT exchanges data. The coupling to PLCSIM involves an exchange with the
signals of peripheral signals, which are defined in the HW Config of PCS 7.

The following table summarizes the steps necessary to create the input and output
signals using the Import Wizard:

Note: Input and output signals can also be entered manually.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 26
2 First works for the project
2.3 Configuring the PLCSIM interface in SIMIT

Table 24
Step Action
1. In SIMATIC Manager, open the symbol table of the PCS 7 project. "Component
view S7 program Symbols"
Siemens AG 2015 All rights reserved

2. In the Symbol editor, sort all symbols according to their address.


3. Select the appropriate symbols.
4. Export the symbols. "Symbol Table Export".

Note:
You can also export all symbols. However, it is clearer if you export only the
symbols used.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 27
2 First works for the project
2.3 Configuring the PLCSIM interface in SIMIT

Step Action
5. Save the export file in *.asc format.
6. In SIMIT, open the coupling editor of the created coupling.
To do this, double click the coupling and then click on the "Import" symbol.
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 28
2 First works for the project
2.3 Configuring the PLCSIM interface in SIMIT

Step Action
7. Select the file you previously exported.
Choose "New signals" under "Mode".
Siemens AG 2015 All rights reserved

Then click on "Import".


8. Once done, all signals have been created in SIMIT and you can instantly share
data between SIMIT and PLCSIM.

Note: The input signals of the control Ex.y are output signals from SIMIT. Conversely,
output signals of the control Ax.y become input signals of SIMIT.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 29
2 First works for the project
2.4 Verifying communication between PLCSIM and SIMIT

2.4 Verifying communication between PLCSIM and SIMIT


In order to prevent communication errors between PLCSIM and SIMIT, the
following procedure shows you how you can test the connection in a simple way.

Procedure
The following table summarizes the required testing steps:

Table 25
Step Action
1. In SIMATIC Manager, open the PCS 7 project in the component view.
2. Right-click the "Blocks" folder in the S7 program, and select the shortcut menu
command "Insert new object Variable Table".
Siemens AG 2015 All rights reserved

Give a descriptive name to the variable table and click "OK".


The variable table opens.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 30
2 First works for the project
2.4 Verifying communication between PLCSIM and SIMIT

Step Action
3. In the variable table, enter a variable that you want to monitor. To this end,
select row 1 and add the desired variable from the menu "Insert Symbol".
Siemens AG 2015 All rights reserved

4. Click on the "Start" button in the toolbar or in the SIMIT project navigator to start
the simulation.

The color scheme changes from "blue" to "orange".

5. In PCS 7, create a connection between the variable table and PLCSIM. Do this
by clicking on the symbol "Monitor Variable Monitor" in the open variable table.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 31
2 First works for the project
2.4 Verifying communication between PLCSIM and SIMIT

Step Action
6. Set the value of the variable "DI_NK111_FbkClose" in SIMIT to the value "true".
To do this, click on the selected symbol next to the symbol name.

The symbol receives a dark blue border.

7. Check to see whether the variable in the variable table also has the value "true".
Siemens AG 2015 All rights reserved

8. If you set the value to "false" in SIMIT, the value is displayed accordingly in the
variable table of PCS 7.
9. You can also check the connection with PLCSIM. Do this by adding the input
byte used in PLCSIM. If you have set the value of the variable
"DI_NK111_FbkClose" to "true" in SIMIT, this will be displayed according to bit 1
of the input byte in PLCSIM.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 32
2 First works for the project
2.5 Scaling the process variables

2.5 Scaling the process variables


In PCS 7, process values are converted into a raw value via channel blocks,
such as "Pcs7AnIn" or "PCS7AnOu". The raw value is converted into a voltage
or current value depending on the expected measurement type. The raw value is
usually processed in the PCS 7 program as a 16 bit variable. Depending on the
configured digital/analog converter, the least significant bits are truncated so that
the number of bits correspond to those of the analog converter. Therefore, in
a 12 bit converter, the four least significant bits of the 16 bit variable are not further
considered.
The data exchange between PCS 7 and SIMIT via the programming interface is
performed in full, i.e. the raw value is read or written in 16 bits (corresponds to two
bytes).
In SIMIT there are two ways of converting a raw value to the corresponding
physical value.

Scaling with standard components


One way is to use standard components that first convert the raw value from
"Unsigned" to "Signed" (e.g. Output type 10V) and then perform a linear map
according to the following formula:
Siemens AG 2015 All rights reserved


() = =

The following table summarizes the meaning of the values , , and , ,


the formula:
Table 26
Value Meaning
Input value (raw value)
Output value (process value)
Lower limit of process value
Upper limit of process value
Lower limit of raw value
Upper limit of raw value

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 33
2 First works for the project
2.5 Scaling the process variables

The following figure shows the graphical interpretation of the formula:


Figure 23 Graphical interpretation for the linear transformation
Siemens AG 2015 All rights reserved

All values in the nominal range between -27848 and +27648 are converted into
a process value. In PCS 7, the process values that exceed the nominal range are
further converted by the channel block until they are outside the boundaries of the
overflow or underflow. In SIMIT however, no further conversion takes place if the
raw value exceeds the nominal range. Once the limit is reached, the converted
process value remains constant.
The scaling structure with components from the SIMIT standard library is displayed
in Figure 24 for a complete chain, i.e. from the input to the output. The output type
is preset to 10V on PCS 7.
Figure 24 Scaling a raw value with SIMIT standard components

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 34
2 First works for the project
2.5 Scaling the process variables

Scaling in the coupling editor


The scaling of process variables can be also carried out directly in the coupling
editor. Due to the number of conversion components necessary for a type
conversion, it is recommended to perform the scaling in the coupling editor.
This achieves an increase in clarity.
The following table summarizes the required configuration steps:
Table 27
Step Action
1. Open the coupling editor in SIMIT.
2. Select the line with the symbol name "AI_Level_LI111".
3. Insert "Bipolar" in the "Scaling" column.
4. Enter the value "0" in the "Lower" column and "500" in the "Upper" column.

5. Repeat steps 1 to 4 for all the other process values that have to be scaled. You
Siemens AG 2015 All rights reserved

can find the values to be set in Table 28 and Table 29.

The following table summarizes values to be set for the scaling of the input raw
values:

Table 28 Scaling of input variables


Symbol name Scaling Lower Upper
AI_Level_LI112 Bipolar 0 500
AI_Level_LI113 Bipolar 0 500
AI_Flow_FC111 Bipolar 0 100
AI_Rbk_NK112 Bipolar 0 100

The following table summarizes values to be set for the scaling of the output raw
values:

Table 29 Scaling of output variables


Symbol name Scaling Lower Upper
AO_NK112_Control Bipolar 0 100
AO_FC111_Ctrl_MV Bipolar 0 100

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 35
2 First works for the project
2.6 The current status of your project

2.6 The current status of your project


In preparation for the actual creation of the process simulation for the "color_gs"
project, you have completed the following tasks:
You have retrieved the PCS 7 project "color_gs" and downloaded the
configured hardware in the virtual AS (PLCSIM).
You have created a PLCSIM coupling in SIMIT and imported the symbol table
you had previously exported from PCS 7 into SIMIT.
You have tested the communication between PCS 7 and SIMIT.
You have scaled all variables to provide the physical relation.
At the current state of your project you are now able to perform signal tests. At this
stage of the simulation, you can see whether the signals are communicated from
the control to the signal level (see Figure 25). Tests such as the opening and
closing of valves can be validated at this stage. You are still unable to simulate
the time response or the transient response of processes. This requires you to
describe the process in detail and simulate it in SIMIT. The following chapters
present a possible process simulation for the "color_gs" project.
Figure 25 Signal test with SIMIT and PLCSIM
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 36
3 Creating the actuator and sensor level
3.1 Creating the "color_gs" model

3 Creating the actuator and sensor level


In the previous chapter, we have configured the PLCSIM coupling. The PLCSIM
data can be accessed for writing and reading. If the AS sends control signals,
these are sent in real application to actuators, which then perform an action that
changes the process in some way. This could be, for example, a level increase or
the sinking of a mass flow. This change must be detected by sensors and sent
back to the AS.
In the following chapter, the actuator and sensor level are replicated. In the first
instance you will create the "RMT1" part manually, i.e. without a wizard. In the
second step you will learn about the SIMIT auxiliary function that enables effective
"engineering". With this, you will create the remaining parts of the "color_gs"
project.

3.1 Creating the "color_gs" model


First, create the hierarchy that describes the model "color_gs". The hierarchy
consists of two folders and their subfolders. The "model" folder is where all process
models created for the simulation (e.g. related to the raw material tank) are stored
(see chapter 4). The "Plant1" folder, is where all actuators and sensors present in
the process (e.g. valves and motors) are stored.
Siemens AG 2015 All rights reserved

Procedure
The following table summarizes the steps necessary to create the folder structure
of the SIMIT project:
Table 31
Step Action
1. Right-click the "Charts" folder in the project navigation and select the shortcut
menu command "New folder".

2. Rename the newly created folder to "Model".


3. Repeat steps 1 to 2 and create the "Plant1" folder.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 37
3 Creating the actuator and sensor level
3.1 Creating the "color_gs" model

Step Action
4. Create the subfolder "LI111" in the "Model" folder. Right-click the "Model" folder
and select the shortcut menu command "New folder".
5. Create the chart "LI111" in the folder "LI111" by double-clicking "New chart" in
the folder "LI111".
6. Repeat steps 4 through 7 and create the entire hierarchy of the SIMIT project.
You can find the necessary information in Table 32.

The following table summarizes the hierarchy folders and the charts contained
within:

Table 32 Project folder structure


Folder Subfolder Subfolder Trend chart
model Reactor1 Reactor1
Reactor2 Reactor2
Plant1 RMT1 FC111 CM_FC111
LI111 CM_LI111
LI112 CM_LI112
LI113 CM_LI113
Siemens AG 2015 All rights reserved

NK111 CM_NK111
NK112 CM_NK112
NK113 CM_NK113
NK114 CM_NK114
NP111 CM_NP111
NP111Red CM_NP111Red

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 38
3 Creating the actuator and sensor level
3.2 Designing the "CM_NK111" chart

3.2 Designing the "CM_NK111" chart


The following procedure describes how to build the charts manually.

Inserting components
The following table summarizes the steps necessary to insert the necessary
components:

Table 33
Step Action
1. Open the chart "CM_NK111". Charts Plant1 RMT NK111 double-
click "CM_NK111".
2. Drag and drop the following basic components from the task card "Components"
to the chart:
"XOR"
"MUL"
"DriveV1"
"Connector" (3 times)
"Input" (2 times)
"Output"
Siemens AG 2015 All rights reserved

3. Arrange the components according to the following figure:

Configuring the components in the chart


Select each component and change the properties of the respective tab (see
Figure 31) according to the following table:
Figure 31

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 39
3 Creating the actuator and sensor level
3.2 Designing the "CM_NK111" chart

Table 34
Component Tab Attribute Value
Output General Signal PLCSIM
DO_NK111_Ctrl
2x Input General Signal PLCSIM
DI_NK111FbkOpen
General Signal PLCSIM
DI_NK111FbkClose
3x Connector General Signal CM_NK111/HI
General Signal CM_NK111/LO
General Signal CM_NK111/Y
XOR General Name XOR_NK111
Input IN1 False
IN2 False
MUL General Name MUL_NK111
Input IN1 3.0
IN2 0.5
DriveV1 General Name CM_NK111_DriveV1
Siemens AG 2015 All rights reserved

Note: In order to configure the "input" and "output" components, there are several
options available:
1. The value of the signal is entered manually. This method is not
recommended as the name must be known and it is very easy to end up
with typing errors, which need to be addressed at a later point in time.
2. The value of the signal is added from the "Signals" task card via drag and
drop.
3. Drag the signal from the "Signals" task card and drop it to the chart while
holding down the "Shift" key. It automatically creates the appropriate "Input"
or "Output" component. This is the most effective and recommendable
method.

The "XOR" component at the entry of the valve enables the reversal of High and
Low signals. This is relevant for the safe position of the valve. The component MUL
at the inputs "TOpen" and "TClose" should provide a dynamically adapted
behavior. The monitoring time is hereby reduced by half.

Interconnection of components
Interconnect the components as illustrated in Figure 32:
Figure 32

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 40
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

3.3 Creating further charts with the CMT Import function


General
Since the creation of charts for actuators and sensors is very complex, it is
recommended to use the automatic model creation features offered by SIMIT.
In this application example, the automatic model creation is described by the
function "CMT Import".

Note: For more information on the various functions provided by SIMIT for the
automatic creation of models, consult chapter 4 "Automatic model creation"
of the Operating Manual "SIMIT (V8.1)"\5\.

Requirements
To use the function "CMT Import" for automatic model creation, it is required to
have a corresponding XML file, exported from PCS 7. The PCS 7 project must
also be created with the help of CMTs (control module types). Existing templates
in SIMIT will also be needed to create the corresponding charts.

3.3.1 Exporting the XML files from PCS 7


Siemens AG 2015 All rights reserved

The following table summarizes the steps necessary to export the XML file from
PCS 7:

Table 35
Step Action
1. Open the PCS 7 multiproject "color_gs_MP" in the component view of the
SIMATIC Manager.
2. Select the projekt "color_gs_prj" and then choose the command "Edit
Export XML".
3. In the dialog that opens up, choose an appropriate place to save and give
the XML file a meaningful name. Then click "Save" to perform the export.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 41
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

3.3.2 Creating the template

The creation of templates is done in the task card "Templates". There you can
create "User Templates" and "Project Templates". The project templates are
automatically stored in the folder "ppatt" of the project path. They are an integral
part of the project and are archived with the project during archiving. "User
Templates" are not stored in the project path and not archived. They are available
for all the projects being edited on the PC.

Procedure
You can use the chart you created in chapter 3.2 for the valve "NK111" for the
creation of the template.
The following table summarizes the steps necessary for the creation of templates
for a valve:
Table 36
Step Action
1. Choose the task card "Template" in the toolbox view.
2. Select the chart "CM_NK111" in the project navigation
3. Drag the chart "CM_NK111" and drop it onto the project templates.
The template "CM_NK111" will be now created.
Siemens AG 2015 All rights reserved

4. Rename the template. Assign it the name of the control module type
"Bottling_ValveLean". Right click Shortcut menu command "Rename".
5. Double-click on the template to open it.
6. Select the individual components and configure the properties as described in
Table 37. Activate the wildcard function for the replacements by clicking on
the symbol.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 42
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

The following table summarizes the properties of the components necessary for
configuring the template "Bottling_ValveLean":
Table 37
Component Tab Attribute Value
Output General Signal COUPLING
Ctrl\PV_Out
2x Input General Signal COUPLING
FbkOpen\PV_In
General Signal COUPLING
FbkOpen\PV_In
XOR General Name XOR_{$ChartName}
Input X2 V\SafePos
MUL General Name MUL_{$ChartName}
Input X2 V\MonTiDynamic
DriveV1 General Name {$ChartName}_DriveV1
3x Connector General Name {$ChartName}/HI
General Name {$ChartName}/LO
General Name {$ChartName}/Y
Siemens AG 2015 All rights reserved

The following figure shows the pre-made template "Bottling_ValveLean":


Figure 33

Further templates
The following tables and figures summarize the information for the creation of
additional templates. They are created directly in the task card "Templates".
They are created at the same time as the creation of a chart (see chapter 3.2).

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 43
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

"AMON__Std"
The following table summarizes the necessary components and their properties for
the creation of the template "AMON_Std":

Table 38
Component Tab Attribute Value
Connector General Name {$ChartName}/PV
AConnector General Name {$ChartName}_Amp
Input Value 250.0
Sine (base General Name {$ChartName}_Sine
macro)
Input CycleDuration 5.0
ADD General Name {$ChartName}_ADD
Input X2 250.0
Switch (control) General Name {$ChartName}_Switch
Selection General Name {$ChartName}_Selection
Input General Signal COUPLING
PV\PV_In
Phys2Raw General Name {$ChartName}_Phys2Raw
Siemens AG 2015 All rights reserved

Parameter Phys_Lower_Limit PV\Scale\Low


Parameter Phys_Upper_Limit PV\Scale\High
Signed2Unsigned General Name {$ChartName}_Signed2Unsigned
Parameter Width 2 byte

The following figure shows the arrangement and the interconnections of the
individual components:

Figure 34

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 44
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

"Bottling AnalogVlv"
The following table summarizes the necessary components and their properties for
the creation of the template "Bottling AnalogVlv":
Table 39
Component Tab Attribute Value
Output General Signal COUPLING MV\PV_out
MUL General Name {$ChartName}_MUL
Input X1 V\MonTiDynamic
X2 0.5
DriveV4 General Name {$ChartName}_DriveV4
3x Connector General Name {$ChartName}/HI
General Name {$ChartName}/LO
General Name {$ChartName}/Y
3x Input General Signal COUPLING FbkOpen\PV_In
General Signal COUPLING FbkClose\PV_in
General Signal COUPLING Rbk\PV_In
Unsigned2Signed General Name {$ChartName}_Unsigned2Signed
Parameter Width 2 byte
Raw2Phys General Name {$ChartName}_Raw2Phys
Siemens AG 2015 All rights reserved

Parameter Phys_Lower_Limit MV\Scale\Low


Phys_Upper_Limit MV\Scale\High
Phys2Raw General Name {$ChartName}_Phys2Raw
Parameter Phys_Lower_Limit MV\Scale\Low
Phys_Upper_Limit MV\Scale\High
Signed2Unsigned General Name {$ChartName}_Signed2Unsigned
Parameter Width 2 byte

The following figure shows the arrangement and the interconnections of the
individual components:
Figure 35

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 45
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

"Bottling_Dose"
The following table summarizes the necessary components and their properties for
the creation of the template "Bottling_Dose":
Table 310
Component Tab Attribute Value
Connector General Name {$ChartName}/PV
PTn General Name {$ChartName}_PTn
Input X 1.0
Switch (controls) General Name {$ChartName}_Switch
Selection General Name {$ChartName}_Selection
Input General Signal COUPLING INPUT_U\PV_In
Phys2Raw General Name {$ChartName}_Phys2Raw
Parameter Phys_Lower_Limit INPUT_U\Scale\Low
Parameter Phys_Upper_Limit INPUT_U\Scale\High
Signed2Unsigned General Name {$ChartName}_Signed2Unsigned
Parameter Width 2 byte
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 46
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

The following figure shows the arrangement and the interconnections of the
individual components:
Figure 36

"Bottling_MotorLean"
The following table summarizes the necessary components and their properties for
the creation of the template "Bottling_MotorLean":
Siemens AG 2015 All rights reserved

Table 311
Component Tab Attribute Value
Output General Signal COUPLING Start\PV_Out
MUL General Name {$ChartName}_MUL
Input X1 U\MonTiDynamic
X2 0.5
DriveP1 General Name {$ChartName}_DriveP1
3x Connector General Name {$ChartName}/FbkRun
General Name {$ChartName}/Dir
General Name {$ChartName}/Y
4x Pushbutton General Name StartLocal_{$ChartName}_Push
(controls)
General Name StopLocal_{$ChartName}_Push
General Name Trip_{$ChartName}_Push
General Name Maint_{$ChartName}_Push
4x BConnector General Name StartLocal{$ChartName}_BCon
General Name StopLocal{$ChartName}_BCon
General Name TripLocal{$ChartName}_BCon
General Name MaintLocal{$ChartName}_BCon
5x Input General Name COUPLING FbkRun\PV_In
General Name COUPLING StartLocal\PV_In
General Name COUPLING StopLocal\PV_In
General Name COUPLING Trip\PV_In
General Name COUPLING Maint\PV_In

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 47
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

The following figure shows the arrangement and the interconnections of the
individual components:
Figure 37

"Bottling_PID"
The following table summarizes the necessary components and their properties for
the creation of the template "Bottling_PID":
Table 312
Component Tab Attribute Value
Siemens AG 2015 All rights reserved

Connector General Name {$ChartName}/PV


PTn General Name {$ChartName}_PTn
Input X 1.0
Switch General Name {$ChartName}_Switch
Selection General Name {$ChartName}_Selection
Input General Name COUPLING PV\PV_In
Phys2Raw General Name {$ChartName}_Phys2Raw
Parameter Phys_Lower_Limit PV\Scale\Low
Phys_Upper_Limit PV\Scale\High
Signed2Unsigned General Name {$ChartName}_Signed2Unsigned
Parameter Width 2 byte

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 48
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

The following figure shows the arrangement and the interconnections of the
individual components:
Figure 38

Note: For process tag types and sample models of the PCS 7 library APL, SIMIT
provides pre-matching base templates.
Siemens AG 2015 All rights reserved

3.3.3 CMT Import

The previous chapter described how to create the template you need for the
CMT import. This chapter describes how to perform the CMT import correctly.

Note: Before you start the CMT import, remove the scaling of the analog values from
the coupling, as this is already done in the templates.

Procedure
The following table summarizes the steps required to perform the CMT import:
Table 313
Step Action
1. Start the CMT import via the menu command "Automatic model creation
CMT Import".
This opens the dialog window "CMT Import".
2. In the section "CMT file", enter the path to the XML file that you created in
chapter 3.3.1.
3. In the section "Template folder", enter the path to the project's template folder
("ppatt").
4. Enter "PLCSIM" in the "Coupling" section.
5. Activate the option "Remove elements with empty replacements".

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 49
3 Creating the actuator and sensor level
3.3 Creating further charts with the CMT Import function

Step Action
6. When you click on the "Preview" button, a preview window will oopen up.
This allows you to see which folders and charts have been created. In the
charts, you can also see what substitutions have been done.
Siemens AG 2015 All rights reserved

7. Click the "Import" button


8. Since all charts and folders have been already created, you will get the
"Overwrite" window. Click the button saying "Yes, all". This replaces all the
charts (excluding CM_NK111 empty).
9. Once the import is successfully completed, you will be shown the "Import
complete" window. It gives information on how many charts were generated and
how many elements have been deleted (see step 5).

Note:
4 connector inputs have been deleted in the chart "CM_NP111Red", as the
corresponding signals are not present.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 50
3 Creating the actuator and sensor level
3.4 The current status of your project

3.4 The current status of your project


As an introduction to the process simulation you have developed simple models
for valves, motors and sensors. Now you have got acquainted with the SIMIT
library and learnt about various components such as the valve.
You have also learnt how to shorten the engineering time, in case of recurring
functions, by using the "Automatic model creation" ("CMT Import"). At this stage
of your project, you can already carry out a process tag test (see Figure 39)

Figure 39 Process tag test with SIMIT


Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 51
4 Building models for physical relations
4.1 Building a model for the raw material tank

4 Building models for physical relations


So far you have used pre-made components from the SIMIT library to replicate
the physical behavior of actuators and sensors (such as the behavior of a valve).
The creation of models for processes and the associated physical relations will not
be covered in full for pre-made components. This process can be somewhat more
complex.

Preliminary consideration
First, one must consider how to replicate the process to be simulated. Here, the
effort needed for the development of the process model should not exceed the
benefits. A simple process model is usually sufficiently accurate to test the
automation program.
This relation is examined more closely in the current Application Example.
Therefore, the following procedure suggests and explains simple modelling for
the remaining models.

Requirements
The following conditions apply for the creation of physical relations:
The physical relation to be simulated (or a simplified form of it) must be known
The device level must be already created in SIMIT
Siemens AG 2015 All rights reserved

4.1 Building a model for the raw material tank


The following procedure describes how to build models for the level in the raw
material tank and the incoming and outgoing volume flows.

Creating the chart "LI111"


The following table summarizes the first steps and the necessary components for
creating the models:
Table 41
Step Action
1. Create the subfolder "LI111" in the "Model" folder.
2. Create a new chart in the subfolder "LI111".
3. Rename the new chart to "LI111" and open it.
4. Drag the following components from the library and drop them in the chart:
"MinMax" (3 times)
"MUL" (3 times)
"ADD" (twice)
"SUB"
"RS_FF"
"Selection" (twice)
"INT"
"Connector" (15 times)
"Compare"
5. Arrange the components as shown in Figure 41 and connect them accordingly.
6. Then select the each component and change its properties as described in
Table 42.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 52
4 Building models for physical relations
4.1 Building a model for the raw material tank

Figure 41

Table 42 Properties of the "LI111" components


Component Tab Attribute Value
3x MinMax General Name Max_LI111
Parameter MinMax MAX
General Name Min_1_LI111
Parameter MinMax MIN
General Name MIN_2_LI111
Siemens AG 2015 All rights reserved

Parameter MinMax MIN


3x MUL General Name MUL_1_LI111
Input X2 0.1
General Name MUL_2_LI111
Input X2 0.1
General Name MUL_3_LI111
Input X2 -1.0
ADD General Name ADD_1_LI111
RS_FF General Name RS_FF_LI111
Input C False
Parameter Initial_State False
Selection General Name Selection_1_LI111
Input X1 15.0
ADD General Name ADD_2_LI111
INT General Name INT_LI111
Input UL 500.0
Selection General Name Selection_2_LI111
Input X0 100.0

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 53
4 Building models for physical relations
4.1 Building a model for the raw material tank

Component Tab Attribute Value


SUB General Name SUB_LI111
Input X1 500
X2 50
Compare General Name Compare_LI111
Parameter Comparison >
15x Connector General Name CM_NP111_Red/Y
General Name CM_NP111/Y
General Name CM_NK111/Y
General Name CM_NK111/Y
General Name CM_NK113/Y
General Name RMTx_Empty
General Name CM_NK111/Y
General Name CM_NK111/Y
General Name CM_NK114/Y
General Name RMTx_Empty
General Name Reactor1
General Name Reactor2
Siemens AG 2015 All rights reserved

General Name CM_FC111/PV


General Name CM_LI111/PV
General Name RMTx_Empty

Description of the chart "LI111"


The chart builds the physical model for the level in the raw material tank. The core
component of the model is the integrator "INT_LI111". It allows the level in the raw
material tank to be simulated.
If the input to the integrator is anything but zero, the level increases or decreases
steadily to the upper limit. The "MinMax" components enable the simulation of
the volume flow. This process tests which pump or valve reaches the limit of the
volume flow. This is then also converted to liters per second (for each reactor to
be filled). All the volume flows are summed up and then multiplied by "-1.0", as the
volume is being taken away from the raw material tank. It is possible to refill the
raw material tank from the graphic interface until the limit of 450 liters is reached.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 54
4 Building models for physical relations
4.2 Building models for the reactors

4.2 Building models for the reactors


You have already developed the volumes flowing towards the reactors when you
modeled the raw material tank. These will now be passed on from chart "LI111" to
the charts "Reactor 1" and "Reactor 2" via the "Connector" components "Reactor1"
and "Reactor2".

"Reactor1"
To build a model for "Reactor1", open the chart "Reactor1", which you have
already created (see chapter 3.1). Insert the components summarized in the
following table and adjust the properties accordingly.
Table 43
Component Tab Attribute Value
INT General Name INT_Reactor1
Input UL 500.0
BConnector General Name RESET_Reactor
Connector General Name Reactor1
Connector General Name CM_LI112/PV
Siemens AG 2015 All rights reserved

Connect the components as shown in Figure 42.

Figure 42

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 55
4 Building models for physical relations
4.2 Building models for the reactors

"Reactor2"
To build a model for "Reactor2", open the chart "Reactor1", which you have
already created (see chapter 3.1). Insert the components summarized in the
following table and adjust the properties accordingly.
Table 44
Component Tab Attribute Value
INT General Name INT_Reactor2
Input UL 500.0
Connector General Name Reactor2
Connector General Name CM_LI113/PV

Connect the components as shown in Figure 43.

Figure 43
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 56
4 Building models for physical relations
4.3 The current status of your project

4.3 The current status of your project


At the current state of your project you can already test the program of the AS
(e.g. step sequencers, see Figure 44). Until now you have created all actuators
and sensors in the folder "Plant1", and associated their inputs and outputs with
the symbolic addresses. Besides this, there are replicas of your plant's physical
processes in the "Model" folder.
The next step, which improves the usability of SIMIT, is the graphical
representation of the entire simulation in a chart. In the next chapter you will design
a visual representation of your plant. With this you can control and monitor the
simulation.
Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 57
4 Building models for physical relations
4.3 The current status of your project

Figure 44 Step sequencer test


Siemens AG 2015 All rights reserved

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 58
5 Creating the graphical interface (optional)
5.1 Creating the visualization

5 Creating the graphical interface (optional)


In the previous chapters you have created models for the actuators, sensors and
the physical relation of your system. The project can already run and can be used
for the validation of your automation program. For a better overview, it is advisable
to design a common interface onto which the entire plant is displayed and
monitored. The following procedure describes how to build such an interface.
The following procedure enables you to visualize the "color_gs" project as shown
in Figure 51.
Figure 51
Siemens AG 2015 All rights reserved

5.1 Creating the visualization


SIMIT already provides you with components for the Human Machine Interface
(HMI) in the task card "Controls". These can be used to monitor and control
signals. For example, we can observe the current flow with the component "Digital
display". The output component "Slide switch" gives you, for example, control over
the actuating angle of the valves.
In the task card "Graphic", you can find graphic elements that allow you to draw
vessels, valves and motors.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 59
5 Creating the graphical interface (optional)
5.1 Creating the visualization

Preparations
The following table summarizes the necessary initial steps for the preparation of
the visualization:
Table 51
Step Action
1. Create a new chart in the folder "Charts".
2. Rename the chart to "Visualization".
3. Open the WinCC project in WinCC Explorer.
4. Open the picture "RMT1.Pdl" in the Graphics Designer.
5. Select all components by pressing "Ctrl + A" and copy them with "Ctrl + C".
6. In the Graphics Designer, create a new picture with the menu command "File
New".
7. Add the previously copied components to the newly created picture with
"Ctrl + V".
8. Remove all the unnecessary block icons and the bar graphs of the tanks, as
shown in the following figure.
Siemens AG 2015 All rights reserved

9. Select the block icon of the valve "NK111" (1).


10. Move the block icon to a blank area of the picture.
11. Right-click on the block icon and select the command "User Object
Ungroup". The block icon is ungrouped into the individual elements.
12. Delete all elements except the status display (extended) with the object name
"symbol".

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 60
5 Creating the graphical interface (optional)
5.1 Creating the visualization

Step Action
13. Right-click on the status display (advanced) and select the command
"Configuration dialog".
14. In the configuration dialog, switch to the tab "Assign Pictures".
15. Search the Basic picture for an open valve and note the index. In the present
example it is the index 2.
Siemens AG 2015 All rights reserved

16. Close the configuration dialog.


17. Go to the object properties of the status display (advanced). Take note of
the values for the width and height (Properties Geometry Width/Height).
18. Go to the object properties of the status display (advanced) and copy the file
name for the open Basic picture of a valve. "Properties State Index
(enter the value 2) Basic picture (copy value).

19. Switch to the project path of your WinCC project.


20. Open the "GraCS" folder. "\wincproj\OS\GraCS" and search for the
corresponding picture file.
21. Open the file with MS Paint (or any other suitable program) and save the
image as a .png file.
22. Set the Index back to the value "0".
23. Move the status display (extended) back to the place where the block icon was
in the beginning.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 61
5 Creating the graphical interface (optional)
5.1 Creating the visualization

Step Action
24. Create a copy of it.
25. Insert the copy instead of the block icon for the valve "NK112".
26. Repeat steps 12 through 28 for the other two valves.
Note:
The status display (extended) has the object name "Symbol2".
27. Repeat steps 12 through 28 for the pumps. Do not delete the graphic object
"SymbolCS". Move this object to the place where the block icon was in the
beginning.
Note:
The status display (extended) has the object name "Symbol4" and is
transparent. The index for the symbol to be copied is "8". The status display
can be deleted at the end of processing.
28. Open the object properties of the complete picture.
29. Perform the following settings:
"Properties Picture object Background color white"
"Properties Picture object View Global color scheme no"
30. Execute the menu command "View Grid..." and select the option "Show
grid".
31. Create a hard copy of the screen.
32. Paste this in MS Paint (or any other suitable program).
Siemens AG 2015 All rights reserved

33. Cut out the plant area.


34. Paste this into a new picture.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 62
5 Creating the graphical interface (optional)
5.1 Creating the visualization

Step Action
35. Take note of the size (width and height) of the picture and save it as
a .PNG file.
Siemens AG 2015 All rights reserved

36. Return to the Graphics Designer.


37. Save the picture you created and close the Graphics Designer.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 63
5 Creating the graphical interface (optional)
5.1 Creating the visualization

Creating the visualization


The following table summarizes the necessary steps for the creation of the
visualization:
Table 52
Step Action
1. Insert a rectangle in the chart "Visualization" (Graphic task card).
2. Adapt the object properties as follows:
"General" tab "Name" = background
"View" tab Width / Height (see step 35 Table 51)
"Layout" tab choose Fill color Picture Background picture
3. Insert another rectangle into the chart.
4. Adapt the object properties as follows:
Tab "General Name = LI111_Back"
Tab "Layout Fill color = Black"
5. Place the rectangle on top of the raw material tank and enlarge it.
Siemens AG 2015 All rights reserved

6. Insert another rectangle.


7. Take over the following properties from the rectangle "LI111_Back":
Tab "View X position"
Tab "View Width"
8. Adjust the following properties:
Tab "General Name = LI111_Front"
Tab "Layout Fill color = yellow"
Tab "View Height=1"
Tab "View Position Y = Position Y LI111_Back + Height LI111_Back"
9. Create a new animation of the type "Scaling".
10. Adjust the properties of the scaling as follows:
Full-scale value = 500
Scaling Y = 100* Height (LI111) + 100
Distance Y = -1*(100* Height (LI111))
Signal = CM_LI111_Selection/Y
11. Perform steps 3-10 for the visualization of the two reactors.
12. Insert an "Ellipse" graphic element.
13. Drop it on top of the NP111 symbol.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 64
5 Creating the graphical interface (optional)
5.1 Creating the visualization

Step Action
14. Adjust the properties as follows:
General tab:
Name = NP111
Layout tab:
Fill color = Picture (Motor On Symbol)
Line color = No color
View tab:
Width = 35
Height = 35
15. Create a new animation of the type "Visibility".
16. Adjust the properties of the animation as follows:
Signal = CM_NP111_DriveP1/FB_Run
Activate "Visibility" if signal is "True"
Deactivate visible when offline.
17. Repeat steps 12-16 for the remaining actuator symbols. Use ellipses instead
of rectangles for the valves. For the width and height of the valves, refer to your
notes (see step 17 Table 51).
18. Add two pushbuttons (Controls task card) to the chart and assign them as
shown in Figure 51. Place a text field next to them that displays their task.
19. Adjust the properties of the first pushbutton as follows:
Siemens AG 2015 All rights reserved

General tab:
Name = Filling_LI111
Terminal tab:
Signal = RS_FF_LI111/S
20. Adjust the properties of the first pushbutton as follows:
General tab:
Name = Reset_Reactor1
Terminal tab:
Signal = Reset_Reactor/IN
21. Add 5 switches and two more pushbuttons to the chart and arrange them as
shown in Figure 51.
22. Adjust the properties of the switches as described in Table 53.
23. Add 3 digital inputs to the chart and arrange them as shown in Figure 51.
24. Adjust the properties of the digital inputs as described in Table 53.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 65
5 Creating the graphical interface (optional)
5.1 Creating the visualization

Table 53
Component Tab Attribute Value
5x switches General Name Test_Alarm_LI111
Connection Signal CM_LI111_Switch/X
General Name Test_Alarm_LI112
Connection Signal CM_LI112_Switch/X
General Name Test_Alarm_LI113
Connection Signal CM_LI112_Switch/X
General Name Trip_NP111
Connection Signal Trip_CM_NP111_Switch/X
General Name Maint_NP111
Connection Signal Maint_CM_NP111_Switch/X
2x pushbuttons General Name StartLocal
Connection Signal StartLocal_CM_NP111_Push/X
General Name StopLocal
Connection Signal StopLocal_CM_NP111_Push/X
3x digital inputs General Name Amplitude_LI111
Connection Signal CM_LI111_Amp
General Name Amplitude_LI112
Siemens AG 2015 All rights reserved

Connection Signal CM_LI112_Amp


General Name Amplitude_LI113
Connection Signal CM_LI113_Amp

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 66
5 Creating the graphical interface (optional)
5.2 The current status of your project

5.2 The current status of your project


You have provided the last graphic elements (e.g. valves, motors and tanks)
with an animation. You have made all the relevant configurations that control the
animation. Now your project has reached a stage where the first function check
can be performed.

Function check for the "color_gs" project


For a first function check, it is recommended that the set PLCSIM coupling is set
to "Unassigned" (see Figure 52). As a result, SIMIT starts the simulation without
writing to or reading from the PLCSIM software interface.
Figure 52
Siemens AG 2015 All rights reserved

If it is set to "Unassigned", you can start the simulation by clicking the "Start"
button.

Figure 53

If you do not have any compilation errors, the SIMIT color scheme changes from
blue to orange. This means that you have no logical errors in your project.
To exclude functional errors as much as possible, press all the switches and see
the effect on the animation. For example, the tank "LI111" must fill after pressing
the button "Filling LI111". Likewise, all valves should change state when the
corresponding switches are turned on.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 67
5 Creating the graphical interface (optional)
5.2 The current status of your project

Once the first test is finished, you can now run the second function check in the
virtual AS with the real program. For this purpose, the following conditions must
be met:
PLCSIM must be turned on and the AS program must be loaded
(see chapter 2.3).
The OS must be compiled, and WinCC must be in runtime and have
a connection to the AS. When compiling the OS make sure that the interface
"Industrial Ethernet" is used (see Figure 54).

Figure 54
Siemens AG 2015 All rights reserved

Check whether the sequential control system passes and all SIMIT input and
output signals are properly controlled and monitored. If all signal checks are
successful, the test is complete and the simulation project is able to run.

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 68
6 Literature

6 Literature
Table 61
Subject area Title
\1\ Siemens Industry http://support.industry.siemens.com
Online Support
\2\ Article download https://support.industry.siemens.com/cs/ww/en/view/77362399
page
\3\ PCS 7 Process control system: SIMATIC Process Control System PCS 7
Getting Started - Part 1 (V8.1 with APL)
https://support.industry.siemens.com/cs/ww/en/view/103141812
\4\ PCS 7 Process control system: SIMATIC Process Control System PCS 7
Getting Started - Part 2 (V8.1 with APL)
https://support.industry.siemens.com/cs/ww/en/view/103180503
\5\ SIMIT - Operating SIMIT (V8.1)
manual https://support.industry.siemens.com/cs/ww/en/view/93842565

\6\ SIMIT - Device SIMIT - Component Type Editor


manual https://support.industry.siemens.com/cs/ww/en/view/93763171
Siemens AG 2015 All rights reserved

7 History
Table 71
Version Date Change
V1.0 08/2013 First edition V7.1
V2.0 03/2015 First edition V8.1

SIMIT Getting Started


Entry ID: 77362399, V2.0, 03/2015 69

You might also like