Professional Documents
Culture Documents
Manual VC With Simit and Plcsim Simosim Advanced v100
Manual VC With Simit and Plcsim Simosim Advanced v100
Commissioning with
SIMIT, PLCSIM
Advanced and
SIMOSIM Advanced
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2024 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: http://www.siemens.com/industrialsecurity.
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Machine description ............................................................................. 4
1.3 Components used ................................................................................ 5
2 Software setup ................................................................................................... 8
2.1 TIA Portal ............................................................................................. 8
2.2 SIMIT .................................................................................................... 9
2.2.1 Structure of the SIMIT project ............................................................ 10
2.3 SIMOTION – SIMOSIM Advanced ..................................................... 20
3 Operating the digital twin................................................................................ 22
3.1 Starting the simulation ........................................................................ 22
3.2 Controlling the simulation ................................................................... 22
3.2.1 Production mode ................................................................................ 22
3.2.2 Manual mode ...................................................................................... 24
3.3 Error handling ..................................................................................... 25
4 Additional information .................................................................................... 28
5 Appendix .......................................................................................................... 32
© Siemens AG 2024 All rights reserved
1 Introduction
This application example demonstrates possibilities of virtual commissioning using
SIMIT, SIMATIC S7-PLCSIM Advanced and SIMOTION SIMOSIM Advanced. For
this purpose, a simple demo machine was designed. Goal of the machine is filling
and capping bottles travelling on a conveyor. The PLC program for this machine
was prepared in TIA Portal including SCOUT TIA and virtually commissioned with
help of a digital twin created in SIMIT.
1.1 Overview
This application example shows how to use SIMIT for the simulation of different
parts of your machine to virtually commission your TIA Portal / SCOUT TIA project.
Therefore, following topics are implemented and will be explained in this document:
• Position and speed axis simulation
• PROFIsafe telegram 30 simulation
• External encoder simulation
• Digital input and output simulation
• Analog input and output simulation
• I-Device coupling between SIMATIC and SIMOTION including F-Proxy
• Safety signals simulation
• Visualization of simple movements
© Siemens AG 2024 All rights reserved
• Simulation of products
• Basic simulation of processes
1 2 3 4
5 6 7
8 9
The machine is equipped with a control panel (Figure 1-2). The panel provides
basic control of the machine without need of a HMI. It is possible to adjust the liquid
flow, the liquid volume, or the line speed through sliders. By pressing the
Emergency Stop button the corresponding stop reaction, defined in the safety
program of the machine, is triggered.
Limitations
The application example does not provide information on the following topics
• Basics of TIA Portal configuration
https://support.industry.siemens.com/cs/ww/en/view/109773506
• Basics of SIMIT
https://support.industry.siemens.com/cs/ww/en/view/109780242
https://support.industry.siemens.com/cs/ww/en/view/85014317
2 Software setup
2.1 TIA Portal
The example application is based on a SIMATIC CPG Template 1. Main operation,
the conveyor and the external encoder functionalities are covered in an equipment
module EM00. All functionalities regarding the fill station are placed in an
equipment module EM01 and for the cap station in an equipment module EM02.
Non-CPG folder contains logic to control a signal tower and button lights.
All associated motion control functionalities are implemented in SCOUT TIA and
designed in the same structure as the PLC program.
Figure 2-2 Program structure SIMOTION
2.2 SIMIT
© Siemens AG 2024 All rights reserved
The SIMIT simulation software in this application example was used to provide:
• Visualization of designed machine
• Simulation of drives
• Simulation of different types of IOs
• Simulation of control panel
• Simulation of material flow and filling process
• Simulation of the I-Device interface
Visualization
The “Visualization” chart contains a simplified model of the machine in a scale of
1 pix: 2 mm. This model is used to observe the movement of individual axes during
the simulation. The chart uses the SIMIT Control Library to simulate the signal
© Siemens AG 2024 All rights reserved
tower or the control panel3. The chart further contains the safety door mechanism
and interface to control generation of bottles. The bottle and axes movements are
displayed by animations in SIMIT4.
NOTE All actions regarding the control or observing of the digital twin behavior during
the simulation should be taken in this chart.
3
2
4
1
Axes
© Siemens AG 2024 All rights reserved
• Chart “ConveyorAxis_ExtEncoder”
The conveyor axis is only speed controlled, therefore uses telegram 1, together
with PROFIsafe telegram 30. For communication with the external encoder,
which is placed on the belt, telegram 81 was used 6. The signals from the light
barriers are connected to the external encoder as measuring inputs.
1
© Siemens AG 2024 All rights reserved
I-Device
• I-Device coupling between PLC and SIMOTION
Each equipment module has its own coupling chart. On SIMOTION side
the I-Device data consist of an array of byte with the length of 400 byte.
On PLC side there are global variables from an UDT for the data from and
to SIMOTION. The UDT consist of control- and status information and a
couple of additional parameters for all equipment modules.
1 2
Each EQ in the project has its own chart for the communication between PLC and
SIMOTION.
© Siemens AG 2024 All rights reserved
IOs
• Chart “AI 4xU_I 2-wire ST_1”
The analog values of the input signals coming from simulated potentiometers
on the control panel are transformed as a measurement of a physical value
into the raw value that can be used as analog input in the PLC.
ProcessSimulation
© Siemens AG 2024 All rights reserved
• Chart “CapAtStationVisibility”
The visibility of the “MainCap” which represents the cap at station (1) in chart
“Visualization” is controlled by RS block (2) in chart “CapAtStationVisibility”.
• Chart “Constants”
All constants which are used in the SIMIT project are defined here.
• Chart “ConvSpeedLinCalc”
This chart recalculates the conveyor speed from RPM to mm/s.
• Chart “FillBottleTimeCalc”
The time needed to fill the bottle based on the opening of the proportional
valve is calculated here.
• Chart “GenAtDistanceCalc”
The distance between bottles, so they are equally distributed on the belt, is
calculated here.
• Chart “SimulateBottle1”
This chart contains whole logic regarding generation, movement and filling of
bottle 1.
2
© Siemens AG 2024 All rights reserved
4
5
• Chart “LightBarrierSignals”
This chart collects signals incoming from particular “SimulateBottleX” charts
and sends final signal to the measuring input probe of the external encoder in
the chart “ConveyorAxis_ExtEncoder”.
• Chart “SafetyDoor”
This chart checks if the safety door slider in the chart “Visualization” is in
closed position and sends signal to both channels of the safety input in the
chart “F-DI 8x24VDC HF_1”.
Table 3-1 shows procedure step-by-step how to successfully start the digital twin in
the production mode.
Table 3-1 Production mode
Screenshots Description
1. Open the “Visualization“ chart in SIMIT.
Screenshots Description
4. Homing to the end stop procedure of
stations starts. After it is done, stations
proceed to the ready positions and the
conveyor starts to move.
Table 3-2 shows how to control the digital twin in the manual mode.
Table 3-2 Manual mode
Screenshots Description
1. Go to the TIA project, select the HMI (1)
and start simulation (2).
Screenshots Description
6. All axes should be now enabled with no
errors. It is needed to home axes first (1).
After that, it is possible to jog axes (2).
The conveyor can be moved as well (3).
case, the machine switch to aborted state and alarm “Station not back in time” can
be seen on the HMI.
4 Additional information
This chapter contains additional information about the usage of SIMOTION
SIMOSIM Advanced.
HWCN Exporter
Use the HWCN Exporter from SIOS instead of direct import.
Figure 4-1 HWCN Exporter
© Siemens AG 2024 All rights reserved
SIMIT
When an isochronous communication is configured between the SIMOTION and its
connected drives (e.g. for the SINAMICS Integrated), the time slice for the
SIMOTION must be set to Bus synchronous. The configured DP Integrated master
system shows the needed cycle time for the settings in the project manager. The
warning sign indicates that the settings in the project manager are not correct.
Figure 4-3 Cycle time
Define a time slice with the needed cycle time. In this example 2ms. In addition to
that, the Operating mode must be set to Isochronous.
SIMOTION SIMOSIM Advanced requires the use of the SIMOSIM Virtual Ethernet
Adapter. Therefore, set the communication interface in the distribution editor of the
PLCSIM Advanced coupling in SIMIT to TCP/IP.
© Siemens AG 2024 All rights reserved
For the first download the use of the X127 as device access point is needed. After
that the other interfaces can be used.
5 Appendix
5.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts.
Please send queries to Technical Support via Web form:
siemens.com/SupportRequest
© Siemens AG 2024 All rights reserved
Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
support.industry.siemens.com/cs/sc
The Siemens Industry Mall is the platform on which the entire siemens Industry
product portfolio is accessible. From the selection of products to the order and the
delivery tracking, the Industry Mall enables the complete purchasing processing –
directly and independently of time and location:
mall.industry.siemens.com
Frauenauracher Str. 80
91056 Erlangen, Germany
mailto: tech.team.motioncontrol@siemens.com
No. Topic
https://support.industry.siemens.com/cs/ww/en/view/109761007
\9\ SIMIT – Control Library
https://support.industry.siemens.com/cs/ww/en/view/109775634
\10\ SIMIT components for the simulation of fail-safe modules of the S7-1500 /
ET200 MP / ET200 SP
https://support.industry.siemens.com/cs/ww/en/view/109771692