Documente Academic
Documente Profesional
Documente Cultură
https://support.industry.siemens.com/cs/ww/en/view/77362399
Warranty and liability
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
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.
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
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
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.
Figure 12
1 2 3
Siemens AG 2015 All rights reserved
1. Project window
2. Working window
3. Tools window
4. Properties window
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.
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
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)".
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.
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
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.
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\.
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.
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
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:
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).
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
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
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.
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).
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".
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
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.
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
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:
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
Note:
You can also export all symbols. However, it is clearer if you export only the
symbols used.
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
Step Action
7. Select the file you previously exported.
Choose "New signals" under "Mode".
Siemens AG 2015 All rights reserved
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.
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
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.
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.
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.
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.
() = =
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
5. Repeat steps 1 to 4 for all the other process values that have to be scaled. You
Siemens AG 2015 All rights reserved
The following table summarizes values to be set for the scaling of the input raw
values:
The following table summarizes values to be set for the scaling of the output raw
values:
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".
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:
NK111 CM_NK111
NK112 CM_NK112
NK113 CM_NK113
NK114 CM_NK114
NP111 CM_NP111
NP111Red CM_NP111Red
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
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
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.
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.
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.
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
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).
"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
The following figure shows the arrangement and the interconnections of the
individual components:
Figure 34
"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
The following figure shows the arrangement and the interconnections of the
individual components:
Figure 35
"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
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
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
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
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".
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
Note:
4 connector inputs have been deleted in the chart "CM_NP111Red", as the
corresponding signals are not present.
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
Figure 41
"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
Figure 42
"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
Figure 43
Siemens AG 2015 All rights reserved
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
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
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
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
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.
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
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.
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.
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
7 History
Table 71
Version Date Change
V1.0 08/2013 First edition V7.1
V2.0 03/2015 First edition V8.1