Hmi Plcsim Doc en
Hmi Plcsim Doc en
Hmi Plcsim Doc en
simulation of HMI
projects in
conjunction with a
SIMATIC PLC and
PLCSIM
Legal Information
Use of the application examples
The application examples illustrate an automation tasks solution with several text, graphics and/or
software module components. The application examples are a cost-free service provided by
Siemens AG and/or a subsidiary company of Siemens AG (“Siemens”). They are not binding and
do not claim to be complete for fully-functional concerning configuration and equipment. The
application examples do not represent customer-specific solutions; they are intended to provide
help for typical applications instead. You yourself are responsible for the proper and safe
operation of the products according to the applicable regulations. You must check the function of
the respective example application and adapt it individually to your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to make use
of the application examples through specialist, instructed personnel. Any and all modifications to
the application examples shall be carried out under your responsibility. Transfer to third parties or
duplication of the application examples or extracts thereof is only permitted in combination with
your own products. The application examples are not necessarily subject to the usual tests and
quality checks of a product that is subject to a charge, may contain functional and performance
defects and may be subject to errors. It is your responsibility to structure the use in such a way
that any malfunctions do not lead to material damage or personal injury.
Disclaimer of liability
Siemens excludes its liability, irrespective of the legal grounds, in particular for the usability,
availability, completeness and faultlessness of the application examples, as well as the
associated notes, project planning and performance data and any damage caused by these. This
does not apply if Siemens is compulsorily liable, e.g. under product liability laws, in cases of
malicious intent, gross negligence, culpable injury to life, body or health, failure to comply with an
assumed guarantee, fraudulent concealment of a defect or culpable breach of essential
contractual obligations. The claims for compensation for a breach of a substantial contractual
obligation are, however, limited to the foreseeable damage, typical for the type of contract, except
in the event of intent or gross negligence or injury to life, body or health. The above provisions do
Siemens AG 2018 All rights reserved
not imply a change of the burden of proof to your detriment. You shall exempt Siemens from any
third-party claims that may exist or arise in this connection, unless Siemens is compulsorily liable
by law.
By using the application examples, you agree that Siemens cannot be made liable for any
possible damage beyond the liability clause mentioned.
Additional information
We reserve the right to make changes to these Application Examples at any time without prior
notice If there are any discrepancies between the recommendations provided in these application
examples and other Siemens publications – e.g. catalogs – the contents of the other documents
have priority.
In addition to this, the Siemens terms and conditions of use apply
(https://support.industry.siemens.com).
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 only form one element of such a concept.
The customer is responsible for preventing unauthorized access to its plants, systems, machines
and networks. Systems, machines and components should only be connected to the enterprise
network or the Internet where necessary and with appropriate security measures (e.g. use of
firewalls and networksegmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be taken into account.
For more information about industrial security, please visit:
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends applying product updates as soon as they are available, and
always using the latest product version. Use of product versions that are no longer supported, and
failure to apply 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 Mode of operation ................................................................................ 5
1.3 Components Used ................................................................................ 5
2 Engineering ........................................................................................................ 6
2.1 Simulation HMI operator panel ............................................................. 6
2.2 Simulation HMI operator panel and SIMATIC PLC .............................. 9
2.3 Simulation SIMATIC PLC ................................................................... 12
2.4 Simulation of SIMATIC PLCs and HMI operator panels ................... 13
3 Useful information ........................................................................................... 18
3.1 Troubleshooting .................................................................................. 18
3.2 Simulation of devices ......................................................................... 19
3.3 S7-PLCSIM ........................................................................................ 19
3.4 PLCSIM Advanced ............................................................................. 20
4 Appendix .......................................................................................................... 21
4.1 Service and Support ........................................................................... 21
4.2 Links and Literature ............................................................................ 22
4.3 Change documentation ...................................................................... 22
Siemens AG 2018 All rights reserved
1 Introduction
1.1 Overview
There are already various possibilities for testing the HMI configuration during the
configuration phase. However, the requirements for this can be very extensive.
Depending on the scope of the task, for example, several HMI operator panels and
SIMATIC PLCs may be required.
How to test the HMI configuration including the PLC program without or with
incomplete hardware is described in this application example.
The application example shows:
What options exist for testing and simulating the HMI configuration including
the associated SIMATIC PLCs.
– HMI configuration simulation.
– PLCSIM V14.
– PLCSIM Advanced
What the requirements are.
– Installed software.
– Required licenses.
Which settings need to be made.
Siemens AG 2018 All rights reserved
Example scenarios
In Section 2 the example scenarios presented here are discussed in detail.
Example 1, "Simulation HMI operator panel":
– A SIMATIC PLC is available.
– The HMI operator panel is not available and must be simulated.
2 Engineering
2.1 Simulation HMI operator panel
In this example, the SIMATIC PLC is available in hardware. The HMI operator
panel is not available and must be simulated.
Specification
The following is required:
A configuration consisting of an HMI project and a STEP 7 project.
Overview picture
Fig. 2-1
PROFINET IE
Software Used
The simulation software, which is completely integrated into the TIA portal, is used
for this application.
Depending on the installed WinCC version, "Basic Panels, Comfort Panels or PC
Runtime Systems" can be simulated. A license is not required for this.
Configuration
Table 2-1
No. Description
1. General
1
Siemens AG 2018 All rights reserved
2. SIMATIC PLC
No. Description
4. After starting the simulation software, you can operate the HMI operator panel on
the configuration PC.
To operate the HMI device, use a mouse.
Notes You can only start the simulation of an "HMI operator panel" on a PC.
If the software WinCC (TIA Portal) including the integrated simulation software is
installed on several PCs, then you can simulate other HMI operator panels from
these PC stations and exchange data with the SIMATIC PLC.
Siemens AG 2018 All rights reserved
Specification
The following is required:
A configuration consisting of an HMI project and a STEP 7 project.
PLCSIM is installed on the configuration PC.
Overview picture
Fig. 2-2
Software Used
The simulation software, which is completely integrated into the TIA portal, is used
for this application.
Depending on the installed WinCC version, "Basic Panels, Comfort Panels or PC
Runtime Systems" can be simulated. A license is not required for this.
Configuration
Table 2-2
No. Description
1. General
2. SIMATIC PLC
Select the project folder of the PLC configuration in the project tree.
In the toolbar, select the icon to start the simulation. It is the same symbol
used to start the HMI simulation (see Fig. 2-1).
After activating the button to start the simulation, you receive the message
"By starting the simulation all other online interfaces will be deactivated".
This means that the system switches the PG/PC interface to
"PLCSIM.TCPIP".
Due to the changeover of the PG/PC interface, no connection to external
devices can be established. Confirm the message with "OK".
Siemens AG 2018 All rights reserved
No. Description
3. Transfer settings
Carry out the necessary transfer settings. Make sure that "PLCSIM" is selected
under the parameter “PG/PC interface" (1)
Click the "Load" button to load the configuration. The control program is
transferred to the PLCSIM.
1
Siemens AG 2018 All rights reserved
4. HMI configuration
Note You can only start the simulation of an "HMI operator panel" and a "SIMATIC
PLC" on a PC.
Specification
The following is required:
A configuration consisting of an HMI project and a STEP 7 project.
PLCSIM is installed on the configuration PC.
Overview picture
Fig 2-3
PROFINET IE
Software Used
For this application, you cannot use the simulation software completely integrated
in the TIA portal.
If the simulation software is activated on the PC, all online interfaces are disabled,
so that no communication to the "outside" is possible. See the example "Simulation
HMI operator panel and SIMATIC PLC" Section 2.2 for this.
To implement the task, you need "S7-PLCSIM Advanced".
Further information on the subject of the “S7-PLCSIM Advanced” can be found in
Section 3 "Useful information".
Specification
The following is required:
A configuration consisting of several HMI projects and STEP 7 projects.
S7-PLCSIM Advanced V1.0 (or higher) is installed on the configuration PC.
Comment: Apart from the "S7-PLCSIM Advanced V1.0" software, no other
PLCSIM software may be installed.
The firmware version of the SIMATIC PLC to be simulated must be V2.0.
Note From WinCC V15, PLCSIM and PLCSIM Advanced can be installed together on
one computer. Furthermore, as of this version, a higher firmware version> V2.0
can be used for the SIMATIC PLCs to be simulated.
Siemens AG 2018 All rights reserved
Overview picture
Fig. 2-4
PROFINET IE
Software Used
For this application you need "S7-PLCSIM Advanced V1.0".
With "S7-PLCSIM Advanced V1.0" you have the opportunity to simulate simple and
complex automation tasks.
A test license, limited to 21 days, is available for testing PLCSIM Advanced V14
SP1.
Special features:
Up to 16 SIMATIC 1500 PLCs can be simulated on one PC. You can
communicate to the outside via the Ethernet interface.
In addition to the simulation of the SIMATIC PLC, you can also simulate one
HMI operator panel via the PC.
To simulate several HMI operator panels, use several PC stations with "WinCC
TIA Portal Simulation" installed.
Communication / data exchange between simulated and existing hardware.
Configuration
Table 2-3
No. Description
1. General
Siemens AG 2018 All rights reserved
1
2
No. Description
3. Open S7-PLCSIM Advanced
Note:
For each SIMATIC 1500 PLC to
be simulated, you must create an
"instance". Repeat steps 2-4 to
create additional instances.
No. Description
5. Information on TCP / IP communication (S7-PLCSIM Advanced)
In the project navigation, right-click on the project name and open the
"Properties ...". (1)
Open the "Protection" tab.
Select the check box.
"Support simulatability when compiling blocks" (2).
No. Description
– In the usual way, transfer the HMI configuration to the HMI operator panel.
HMI operator panel.
Note:
In order to be able to communicate with the external panel with S7-
PLCSIM Advanced, the physically existing network adapter must be
selected in the configuration of the PLSCIM Advanced Station under "TCP
/ IP communication" (not <Local>).
3 Useful information
3.1 Troubleshooting
No connection is established
In the HMI configuration, check the name of the set access point under the menu
"Connections> Parameters> HMI device".
The name must match the name selected in the PG/PC interface under "Access
point of the application".
Fig. 3-1
2
3
1
Siemens AG 2018 All rights reserved
Example:
a. In the HMI configuration, "S7ONLINE1" is defined as the access point.
b. In the PG/PC interface, "S7ONLINE" is defined as the access point.
In this case, add a new access point named "S7ONLINE1".
1. To do this, open the "drop-down list" (3).
2. In the opened list, select the function " <Add/Delete>".
3. The “Add / delete access points” window then opens. Under "New access
point", enter the name "S7ONLINE1" and confirm your entry with the "Add"
button. Then close the window.
4. In the standard view, select the newly added “access point" and assign the
"Interface parameterization".
5. Click "OK" to confirm your entries.
3.3 S7-PLCSIM
S7-PLCSIM is used to test and validate a single PLC program without the need for
Siemens AG 2018 All rights reserved
the actual hardware. With S7-PLCSIM you can use all STEP 7 test tools, including
the monitoring table, the program status and the online and diagnostic functions.
S7-PLCSIM also offers tools that are only available in S7-PLCSIM, for instance, a
SIM table and a sequence editor.
Detailed information on "S7-PLCSIM", such as
system requirement
supported SIMATIC PLCs
etc.
can be found in the online help and the features guide.
A test license, limited to 21 days, is available for testing S7-PLCSIM Advanced V14
SP1.
As soon as you start an instance in the Control Panel, the Automation License
Manager (ALM) searches the network for a valid license. If no license is available
for S7-PLCSIM Advanced V1.0 SP1, the ALM offers the test license for activation.
etc.
can be found in the online help and the features guide.
More information.
Delivery release SIMATIC S7-PLCSIM Advanced V1.0 SP1 & TRIAL
Download \3\.
SIMATIC S7-PLCSIM Advanced \4\.
Readme SIMATIC S7-PLCSIM Advanced V1.0 SP1 \5\
4 Appendix
4.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, and application examples – all
the information you need is accessible with just a few mouse clicks at:
https://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.
You can send queries to Technical Support via the web form:
www.siemens.com/industry/supportrequest
Siemens AG 2018 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 about our range of services in the service
catalog:
https://support.industry.siemens.com/cs/ww/en/sc