You are on page 1of 34

Virtual

Commissioning with
SIMIT, PLCSIM
Advanced and
SIMOSIM Advanced

SIMATIC S7-1500T / SIMOTION SIMOSIM Advanced


Siemens
5.4 / S7-PLCSIM Advanced V5.0 Upd2 / SIMIT V11.1 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109827359 Support
Legal information

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.

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 2
Table of contents

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

5.1 Service and support ........................................................................... 32


5.2 Industry Mall ....................................................................................... 33
5.3 Application support ............................................................................. 33
5.4 Links and literature ............................................................................. 33
5.5 Change documentation ...................................................................... 34

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 3
1 Introduction

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 Machine description


The machine is designed to carry out the filling process and placing the cap on
bottles travelling on the conveyor. Layout of the machine is described in Figure 1-1.
The machine consists of three functional units. First is the conveyor together with
an external encoder to move bottles. Second is the fill station, which consists of
two axes to enable movement in axis X and Z, a fill nozzle, and a light barrier. Third
is the cap station, which also consists of two axes to enable movement in axis X
and Z, a cap holder, and a light barrier.

Figure 1-1 Machine layout

1 2 3 4

5 6 7

8 9

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 4
1 Introduction

(1) Fill station axis Z


(2) Fill station axis X + fill nozzle
(3) Cap station axis Z
(4) Cap station axis X + cap holder
(5) Conveyor
(6) Bottle
(7) External encoder on conveyor
(8) Light barrier at fill station
(9) Light barrier at cap station

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.

Figure 1-2 Control panel of the machine


© Siemens AG 2024 All rights reserved

1.3 Components used


This application example has been created with the following hardware and
software components:
Table 1-1
Component Article number

STEP 7 Professional V17 Upd5 6ES7822-1..07-..

SCOUT TIA 5.4.3.0 6AU1810-1..54-..


SIMATIC S7-PLCSIM Advanced 5.0 Upd2 6ES7823-1F.04-0Y.5
SIMOTION - SIMOSIM Advanced 05.40.74.06
SIMIT S V11.1 6DL8913-0A...

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 5
1 Introduction

This application example consists of the following components:


Table 1-2
Component File name
Documentation Manual_VC_with_SIMIT_and_PLCSIM_SIMOSIM_Advanced_V100.pdf
SIMIT project SIMIT_SIMOSIMAdv_DemoFillingStation_V100.simarc
STEP 7 project TIA_SIMOSIMAdv_DemoFillingStation_V100.zap17
© Siemens AG 2024 All rights reserved

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 6
1 Introduction

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

• Basics of Virtual Commissioning


https://support.industry.siemens.com/cs/ww/en/view/109758943

• Basics of SIMOTION SIMOSIM Advanced


https://support.industry.siemens.com/cs/ww/en/view/109781536

• Description of SIMOTION Handling Basic functionality


https://support.industry.siemens.com/cs/ww/en/view/85016068

• Description of SIMOTION Handling Advanced Application


© Siemens AG 2024 All rights reserved

https://support.industry.siemens.com/cs/ww/en/view/85014317

• Description of SIMATIC CPG Template functionality


https://support.industry.siemens.com/cs/ww/en/view/109475572

In order to understand this application example, it is assumed that readers have


adequate knowledge of these topics.

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 7
2 Software setup

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.

Figure 2-1 Program structure PLC


© Siemens AG 2024 All rights reserved

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

1 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/109475572

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 8
2 Software setup

The machine has two modes:


• Manual – jogging with axes, individual homing, moving the conveyor
• Production – automated homing, automated process of filling and capping
bottles
The library SIMOTION Handling Basic 2 was used to control the movement of fill
and cap stations during production mode. The SIMOTION program-unit
“EM01_CM03_FillStationKin” contains all functionalities regarding automated
process of filling and the program-unit “EM02_CM03_CapStationKin” contains all
functionalities regarding automated process of placing the cap on the bottle. The
safety program in the PLC handles inputs from the Emergency Stop button or a
safety door as well as axes through PROFIsafe telegrams. The machine can be
fully controlled with a simplified HMI from SIMATIC CPG Template.
The communication between PLC and SIMOTION is implemented via I-Device
communication. The I-Device communication takes place on the SIMOTION in the
program units "CyclicInput- and CyclicOutputData".
On the PLC, the data of the I-Device communication can be found in the PLC
variables "IDeviceComSimotion".

NOTE Password for the safety program on the PLC is “siemens”.

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

2 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/85016068

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 9
2 Software setup

2.2.1 Structure of the SIMIT project

Figure 2-3 SIMIT project structure

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 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/109775634


4 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/109767324

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 10
2 Software setup

Figure 2-4 Chart “Visualization”


(1) Signal tower
(2) Model of machine
(3) Safety door mechanism
(4) Control panel
(5) Interface to control generation of bottles

3
2

4
1

Axes
© Siemens AG 2024 All rights reserved

• Station axes charts


The axes of fill and cap station use for communication standard SIEMENS
telegram 105, together with PROFIsafe telegram 30. For the simulation of
drives with those settings, standard blocks were used 5. The speed setpoint is
integrated to actual position, which is used for the simulated encoder and in the
“Visualization” chart for individual axis. The actual position is derived back to
actual speed to provide feedback to the simulated drive.

Figure 2-5 Chart “CapStationAxisX”


(1) Actual position to actual speed calculation
(2) Speed setpoint to actual position calculation

5 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/109758943

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 11
2 Software setup

• 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.

Figure 2-6 Chart “ConveyorAxis_ExtEncoder”


(1) Signals from light barriers
(2) Speed setpoint used to simulate movement of bottles

1
© Siemens AG 2024 All rights reserved

6 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/109761007

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 12
2 Software setup

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.

Figure 2-7 I-Device coupling in the SIMOTION

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.

Figure 2-8 I-Device coupling in the PLC


© Siemens AG 2024 All rights reserved

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 13
2 Software setup

Figure 2-9 Chart “IDeviceExtEncoder”


(1) Signals from PLC to SIMOTION
(2) Signals from SIMOTION to PLC

1 2

Each EQ in the project has its own chart for the communication between PLC and
SIMOTION.
© Siemens AG 2024 All rights reserved

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 14
2 Software setup

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.

Figure 2-10 Chart “AI 4xU_I 2-wire ST_1”

• Chart “AQ 2xU_I HF_1”


The analog values of the output signals incoming from the PLC are
recalculated to physical values.

Figure 2-11 Chart “AQ 2xU_I HF_1”


© Siemens AG 2024 All rights reserved

• Chart “DI 8x24VDC ST_1”


The digital inputs of the PLC are simply interconnected with corresponding
signals from SIMIT.

Figure 2-12 Chart “DI 8x24VDC ST_1”

• Chart “DQ 8x24VDC_0.5A ST_1”


The digital outputs of the PLC are simply interconnected with corresponding
signals in SIMIT.

Figure 2-13 Chart “DQ 8x24VDC_0.5A ST_1”

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 15
2 Software setup

• Chart “F-DI 8x24VDC HF_1”


The safety inputs of the PLC are interconnected through “FDI_8x” block, which
was taken from SIMIT Library for F-Components, with signals from SIMIT7.

Figure 2-14 Chart “F-DI 8x24VDC HF_1”

ProcessSimulation
© Siemens AG 2024 All rights reserved

The folder “ProcessSimulation” contains the logic behind simulation of processes,


movements and actions of the “Visualization” chart.

• 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”.

Figure 2-15 Chart “CapAtStationVisibility”

7 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/109771692

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 16
2 Software setup

• Chart “Constants”
All constants which are used in the SIMIT project are defined here.

Figure 2-16 Chart “Constants”

• Chart “ConvSpeedLinCalc”
This chart recalculates the conveyor speed from RPM to mm/s.

Figure 2-17 Chart “ConvSpeedLinCalc”


© Siemens AG 2024 All rights reserved

• Chart “FillBottleTimeCalc”
The time needed to fill the bottle based on the opening of the proportional
valve is calculated here.

Figure 2-18 Chart “FillBottleTimeCalc

• Chart “GenAtDistanceCalc”
The distance between bottles, so they are equally distributed on the belt, is
calculated here.

Figure 2-19 Chart “GenAtDistanceCalc”

• Chart “SimulateBottle1”
This chart contains whole logic regarding generation, movement and filling of
bottle 1.

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 17
2 Software setup

With switching on “Generate bottle(s)” on the control panel chart


“Visualization”, the signal for the generation of bottle 1 (Figure 2-20, 1) is set.
With setting this signal, the objects “Bottle1” and “Fill1” become visible. In
addition to that, the calculated linear speed of the conveyor is fetched to the
input of the integral block “ControlBottle1” (Figure 2-20, 2). This block outputs
the current position of the belt, through which objects “Bottle1”, “Fill1” and
“Cap1” are moved (Figure 2-21). The integrated speed is used to generate
signals for measuring inputs (Figure 2-20, 3). As the bottle 1 passes through
the fill station, the output of ramp block “ControlBottle1” (Figure 2-20, 4)
controls scaling of object “Fill1” in the chart “Visualization”, which represents
filament of the bottle 1 (Figure 2-22). The RS block “ControlCap1” (Figure 2-20,
5) controls the visibility of object “Cap1” (Figure 2-23).

Figure 2-20 Chart “SimulateBottle1”

2
© Siemens AG 2024 All rights reserved

4
5

Figure 2-21 Control of “Bottle1”

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 18
2 Software setup

Figure 2-22 Control of “Fill1”

Figure 2-23 Control of “Cap1”


© Siemens AG 2024 All rights reserved

• Charts of bottles 2-5


The control logic of bottles 2 to 5 is the same. The only difference is the logic
when every additional bottle is generated. (Figure 2-24).

Figure 2-24 Generation of bottle 2 in chart “SimulateBottle2”

• 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”.

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 19
2 Software setup

Figure 2-25 Chart “LightBarrierSignals”

• 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”.

Figure 2-26 Chart “SafetyDoor”


© Siemens AG 2024 All rights reserved

2.3 SIMOTION – SIMOSIM Advanced


With SIMOTION SIMOSIM Advanced one or several SIMOTION D CPUs can be
simulated in combination with a behavior model in SIMIT.
The following SIMOTION devices can be simulated:
• CPU D425-2 (DP und DP/PN)
• CPU D435-2 (DP und DP/PN)
• CPU D445-2 (DP/PN)
• CPU D455-2 (DP/PN)

The following functionality is supported:


• Synchronization of simulation progress through SIMIT
• OPC UA communication
• HMI communication
• IP-based communication
• TPCAM, TPPATH, TPCAM_EXT
• Peripheral devices and drives can be simulated in SIMIT

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 20
2 Software setup

The following functionality is not supported:


• CLib
• OA-Packages
• TPDCBADM, TPTControl, TPdcblib
• SINAMICS Integrated is not simulated. Drives must be simulated in SIMIT
• Externally configured I/O components are not simulated

Depending on the configured firmware of the SIMOTION, the corresponding


NOTE version of SIMOTION SIMOSIM Advanced must be installed. A parallel installation
of different versions of SIMOTION SIMOSIM Advanced is possible 8.
© Siemens AG 2024 All rights reserved

8 For more info, please refer to: https://support.industry.siemens.com/cs/ww/en/view/109781536

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 21
3 Operating the digital twin

3 Operating the digital twin


3.1 Starting the simulation
The simulation will be started by clicking on the “Start/Play” button. An orange
background indicates that the simulation is active. The SIMATIC S7-PLCSIM
Advanced and SIMOTION SIMOSIM Advanced instances are automatically started
in the background.
Figure 3-1 Starting the simulation in SIMIT

3.2 Controlling the simulation


The application example can be controlled either by the control panel from the
“Visualization” chart in the SIMIT or by the simulated HMI from the TIA portal.
© Siemens AG 2024 All rights reserved

3.2.1 Production mode

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.

2. Drag “Safety door“ slider all the way to the


right to close the safety door and switch-
on the safety signal.

3. Switch the machine from manual mode to


production mode by pressing “Production“
button (1). Acknowledge all errors by
pressing “Reset“ button (2). Start the
production mode by the pressing “Start“
button (3).

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 22
3 Operating the digital twin

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.

5. Choose amount of bottles (1), which will


be circulating on the conveyor, and press
“Generate bottle(s)“ switch (2). As long as
the switch is on, generation of bottles
continues cyclically.

6. The process of automated filling and


capping has started and the machine is
now fully operating.
© Siemens AG 2024 All rights reserved

7. It is possible now to:


• Simulate response of the safety
program by pressing “E-Stop“
button (1)
• Stop production mode by
pressing “Stop“ button (2). The
machine will be in stopping state
until all bottles are gone from
conveyor. Therefore, stop
generating new bottles to fully
stop the machine.
• Change the liquid flow by
adjusting the slider (3)
• Change the liquid volume by
adjusting the slider (4)
• Change the line speed by
adjusting the slider (5)

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 23
3 Operating the digital twin

3.2.2 Manual mode

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).

2. Open the “Visualization“ chart in SIMIT.

3. Drag “Safety door“ slider all the way to


the right to close the safety door and
switch-on the safety signal.
© Siemens AG 2024 All rights reserved

4. Acknowledge all errors by pressing


“Reset“ button (1). Start the Manual
mode by the pressing “Start“ button (2).

5. As visible on the HMI, the machine is in


manual mode and the aborted state after
start of the simulation. The machine can
be reset either by the control panel in
SIMIT or by pressing reset button on the
HMI (1). Start the manual mode by
pressing start button (2) and go to
“Manual Control“(3).

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 24
3 Operating the digital twin

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).

3.3 Error handling


During the simulation several error scenarios can occur. The machine switch to
aborted state, the signal tower shows red and the type of the error can be seen on
the HMI. To acknowledge, it is necessary to press “Reset” button on the control
panel or the HMI.

Station not back in time


If the line speed was set too high, it is possible that one of the stations might not
return to ready position in the time before arrival of new bottle (Figure 3-2). In such
© Siemens AG 2024 All rights reserved

case, the machine switch to aborted state and alarm “Station not back in time” can
be seen on the HMI.

Figure 3-2 Station not back in time

Mechanical end stop reached


If one of station axes reaches its mechanical end stop, it will result in following error
(Figure 3-3). In such case, machine switch to aborted state and alarm “Name of
axis Following error” can be seen on the HMI.

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 25
3 Operating the digital twin

Figure 3-3 Axis X of fill station reached mechanical end stop

Emergency button pressed


In case of an emergency, “E-Stop” button on the control panel can be pressed to
trigger the safety program in the PLC (Figure 3-4). The machine switches to
aborted state and alarm “Emergency button pressed” can be seen on the HMI.
Figure 3-4 Emergency stop button pressed
© Siemens AG 2024 All rights reserved

Safety door opened


It is possible to open the safety door by sliding the slider to the left (Figure 3-5). In
such case, the safety program in the PLC is triggered, the machine switches to
aborted state and the alarm “Safety door are opened” can be seen on the HMI.

Figure 3-5 Safety door in the chart “Visualization”

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 26
3 Operating the digital twin

Technological error on SIMOTION


As soon as an error occurs in the SIMOTION technological object, they are
displayed in the signaling system on the HMI.
Not the detailed error number but the information which object caused the error.
Figure 3-6 Technological error on SIMOTION
© Siemens AG 2024 All rights reserved

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 27
4 Additional information

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

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 28
4 Additional information

Figure 4-2 PLCSIM Advanced import


© Siemens AG 2024 All rights reserved

HWCN Exporter SIOS link:


NOTE https://support.industry.siemens.com/cs/ww/en/view/109770995

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.

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 29
4 Additional information

Figure 4-4 Settings Project manager

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

Figure 4-5 Communication interface

For the first download the use of the X127 as device access point is needed. After
that the other interfaces can be used.

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 30
4 Additional information

Figure 4-6 Device access points

Simulation with multiple instances


At first, the simulation starts with an empty memory card where only the X127 with
the default IP address 169.254.11.22 is accessible. If multiple SIMOTION
SIMOSIM Advanced instances are used within one project it will be hard to
distinguish the instances before the download from SCOUT TIA.
© Siemens AG 2024 All rights reserved

To be sure to download the right project to the right SIMOTION SIMOSIM


Advanced instance, it is recommended to start the instances one by one. To do so
follow the steps down below.
1. Deactivate all other SIMOTION SIMOSIM Advanced instances
2. Start the simulation in SIMIT with only one active instance
3. Download the corresponding SIMOTION station
4. Stop the simulation
5. Repeat the steps 1. to 4. until all stations are downloaded
6. Use X130 or X150 as device access point

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 31
5 Appendix

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

SITRAIN – Digital Industry Academy


We support you with our globally available training courses for industry with
practical experience, innovative learning methods and a concept that’s tailored to
the customer’s specific needs.
For more information on our offered trainings and courses, as well as their
locations and dates, refer to our web page:
siemens.com/sitrain

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

Industry Online Support app


You will receive optimum support wherever you are with the "Siemens Industry
Online Support" APP. The app is available for iOS and Android:
support.industry.siemens.com/cs/ww/en/sc/2067

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 32
5 Appendix

5.2 Industry Mall

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

5.3 Application support


Siemens AG
Digital Factory Division
Factory Automation
Production Machines
DI FA PMA APC
© Siemens AG 2024 All rights reserved

Frauenauracher Str. 80
91056 Erlangen, Germany
mailto: tech.team.motioncontrol@siemens.com

5.4 Links and literature


Table 5-1
No. Topic
\1\ Siemens Industry Online Support
https://support.industry.siemens.com
\2\ Link to this entry page of this application example
https://support.industry.siemens.com/cs/ww/en/view/109827359
\3\ Basics of TIA Portal configuration
https://support.industry.siemens.com/cs/ww/en/view/109773506
\4\ Basics of SIMIT
https://support.industry.siemens.com/cs/ww/en/view/109780242
\5\ Basics of Virtual Commissioning
https://support.industry.siemens.com/cs/ww/en/view/109758943
\6\ Description of SIMATIC Kinematics Control functionality
https://support.industry.siemens.com/cs/ww/en/view/109755891
\7\ Description of SIMATIC CPG Template functionality
https://support.industry.siemens.com/cs/ww/en/view/109475572
\8\ DRIVES Behavior Library for SIMIT

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 33
5 Appendix

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

5.5 Change documentation


Table 5-2
Version Date Modifications
V1.0.0 01/2024 First version
© Siemens AG 2024 All rights reserved

Virtual Commissioning with SIMIT, PLCSIM Advanced and SIMOSIM


Advanced
Entry-ID: 109827359, V1.0, 01/2024 34

You might also like