S7-PLCSIM Advanced Manual V7.0
S7-PLCSIM Advanced Manual V7.0
Product overview
2
SIMATIC Installing
3
Function Manual
Simulating
5
List of abbreviations
A
V7.0, 11/2024
A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended or
approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens Aktiengesellschaft. The remaining trademarks in
this publication may be trademarks whose use by third parties for their own purposes could violate the rights of
the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
https://365electricalvn.com/category/automation-manual/
Table of contents
1 Introduction........................................................................................................................................ 6
1.1 General information.......................................................................................................... 6
1.2 S7-PLCSIM Advanced documentation guide....................................................................... 7
1.3 Tool support..................................................................................................................... 12
1.4 Cybersecurity information................................................................................................. 13
1.5 Administrator rights.......................................................................................................... 13
3 Installing............................................................................................................................................. 26
3.1 Introduction..................................................................................................................... 26
3.1.1 System requirements........................................................................................................ 26
3.1.2 Restrictions due to antivirus programs .............................................................................. 27
3.1.3 Licenses............................................................................................................................ 28
3.1.4 Trial License...................................................................................................................... 28
3.1.5 Installation log.................................................................................................................. 29
3.1.6 Contents of the S7-PLCSIM Advanced package................................................................... 30
3.2 Installing S7-PLCSIM Advanced.......................................................................................... 30
3.3 Changing an installation................................................................................................... 32
3.4 Repairing an installation.................................................................................................... 32
3.5 Uninstalling the product................................................................................................... 33
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 3
https://365electricalvn.com/category/automation-manual/
Table of contents
4 Communication paths........................................................................................................................ 35
4.1 Local communication ....................................................................................................... 36
4.2 Communication via TCP / IP............................................................................................... 37
4.2.1 Communication via TCP/IP in Single Adapter Network Mode (promiscuous mode).............. 37
4.2.2 Communication via TCP/IP in Multiple Adapter Network Mode (non-promiscuous .... 40
mode)
4.2.3 Using a Software/Open Controller with a TCP/IP communication interface.......................... 43
4.3 Enable distributed communication ................................................................................... 44
5 Simulating.......................................................................................................................................... 47
5.1 Simulating a CPU.............................................................................................................. 47
5.1.1 Basic procedure for the simulation.................................................................................... 47
5.1.2 Control Panel - User interface............................................................................................ 48
5.1.2.1 S7-PLCSIM Advanced Symbol............................................................................................ 48
5.1.2.2 Control Panel quick view and window............................................................................... 48
5.1.2.3 S7-PLCSIM Advanced Control Panel................................................................................... 50
5.1.2.4 Importing instances.......................................................................................................... 54
5.1.3 Downloading a STEP 7 project........................................................................................... 55
5.1.4 Network addresses in the simulation................................................................................. 59
5.1.4.1 Siemens PLCSIM Virtual Ethernet Adapter.......................................................................... 59
5.1.4.2 S7-PLCSIM Advanced instances......................................................................................... 60
5.1.5 Simulate communication.................................................................................................. 62
5.1.5.1 Communication services that can be simulated................................................................. 62
5.1.5.2 Communication between instances................................................................................... 63
5.1.6 Provide project data offline for simulation ........................................................................ 64
5.2 Simulating a CPU with ODK functionality........................................................................... 66
5.2.1 Special features of ODK..................................................................................................... 66
5.2.2 Loading functions ............................................................................................................ 69
5.2.3 Calling functions............................................................................................................... 69
5.2.4 Unloading functions......................................................................................................... 70
5.3 Simulating the SIMATIC Drive Controller............................................................................ 72
5.4 Simulating a redundant S7-1500R/H system...................................................................... 74
S7-PLCSIM Advanced
4 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Table of contents
A List of abbreviations........................................................................................................................... 93
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 5
https://365electricalvn.com/category/automation-manual/
Introduction 1
1.1 General information
Conventions
STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the
configuration and programming software "SIMATIC STEP 7 (TIA Portal)".
Also observe notes marked as follows:
NOTE
A note contains important information on the product described in the documentation, on
the handling of the product or on the section of the documentation to which particular
attention should be paid.
S7-PLCSIM Advanced
6 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Introduction
1.2 S7-PLCSIM Advanced documentation guide
Scope
This function manual is valid for the following product variants:
NOTE
You can obtain online readme updates to the S7-PLCSIM manuals on the Internet
(https://support.industry.siemens.com/cs/us/en/view/109824282).
You can find the following application examples for S7‑PLCSIM Advanced on the Internet:
• SIMATIC S7‑PLCSIM Advanced: Co-Simulation via API
(https://support.industry.siemens.com/cs/ww/de/view/109739660/en)
• Digitalization with TIA Portal: Virtual commissioning with SIMATIC and Simulink
(https://support.industry.siemens.com/cs/ww/en/document/109749187)
Industry Mall
The Industry Mall (https://mall.industry.siemens.com) is the catalog and order system of
Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation
(TIA) and Totally Integrated Power (TIP).
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 7
https://365electricalvn.com/category/automation-manual/
Introduction
1.2 S7-PLCSIM Advanced documentation guide
S7-PLCSIM Advanced
8 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Introduction
1.2 S7-PLCSIM Advanced documentation guide
The documentation for the SIMATIC S7‑1500 automation system, for the 1513/1516pro-2 PN,
SIMATIC Drive Controller CPUs based on SIMATIC S7‑1500 and the SIMATIC ET 200MP,
ET 200SP, ET 200AL and ET 200eco PN distributed I/O systems is arranged into three areas.
This arrangement enables you to access the specific content you require.
You can download the documentation free of charge from the Internet
(https://support.industry.siemens.com/cs/ww/en/view/109742705).
Basic information
The system manuals and Getting Started describe in detail the configuration, installation,
wiring and commissioning of the SIMATIC S7‑1500, SIMATIC Drive Controller, ET 200MP,
ET 200SP, ET 200AL and ET 200eco PN systems. Use the corresponding operating instructions
for 1513/1516pro-2 PN CPUs.
The STEP 7 online help supports you in the configuration and programming.
Examples:
• Getting Started S7-1500
• System manuals
• Operating instructions ET 200pro and 1516pro-2 PN CPU
• Online help TIA Portal
Device information
Equipment manuals contain a compact description of the module-specific information, such
as properties, wiring diagrams, characteristics and technical specifications.
Examples:
• Equipment manuals for CPUs
• Equipment manuals for interface modules
• Equipment manuals for digital modules
• Equipment manuals for analog modules
• Equipment manuals for communication modules
• Equipment manuals for technology modules
• Equipment manuals for power supply modules
• Equipment manuals for BaseUnits
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 9
https://365electricalvn.com/category/automation-manual/
Introduction
1.2 S7-PLCSIM Advanced documentation guide
General information
The function manuals contain detailed descriptions on general topics relating to the
SIMATIC Drive Controller and the S7-1500 automation system.
Examples:
• Function Manual Diagnostics
• Function Manual Communication
• Function Manuals Motion Control
• Function Manual Web Server
• Function Manual Cycle and Response Times
• PROFINET Function Manual
• PROFIBUS Function Manual
Product Information
Changes and supplements to the manuals are documented in a Product Information. The
Product Information takes precedence over the device and system manuals.
You will find the latest Product Information on the Internet:
• S7-1500/ET 200MP (https://support.industry.siemens.com/cs/de/en/view/68052815)
• SIMATIC Drive Controller
(https://support.industry.siemens.com/cs/de/en/view/109772684/en)
• Motion Control (https://support.industry.siemens.com/cs/de/en/view/109794046/en)
• ET 200SP (https://support.industry.siemens.com/cs/de/en/view/73021864)
• ET 200eco PN (https://support.industry.siemens.com/cs/ww/en/view/109765611)
Manual Collections
The Manual Collections contain the complete documentation of the systems put together in
one file.
You will find the Manual Collections on the Internet:
• S7-1500/ET 200MP/SIMATIC Drive Controller
(https://support.industry.siemens.com/cs/ww/en/view/86140384)
• ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)
• ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)
• ET 200eco PN (https://support.industry.siemens.com/cs/ww/en/view/109781058)
Additional SIMATIC documents will complete your information. You can find these
documents and their use at the following links and QR codes.
The Industry Online Support gives you the option to get information on all topics. Application
examples support you in solving your automation tasks.
S7-PLCSIM Advanced
10 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Introduction
1.2 S7-PLCSIM Advanced documentation guide
Watch this short video to find out where you can find the overview directly in Siemens
Industry Online Support and how to use Siemens Industry Online Support on your mobile
device:
Quick introduction to the technical documentation of automation products per
video (https://support.industry.siemens.com/cs/us/en/view/109780491)
mySupport
With "mySupport" you can get the most out of your Industry Online Support.
Registration You must register once to use the full functionality of "mySupport". After registra
tion, you can create filters, favorites and tabs in your personal workspace.
Support requests Your data is already filled out in support requests, and you can get an overview of
your current requests at any time.
Documentation In the Documentation area you can build your personal library.
Favorites You can use the "Add to mySupport favorites" to flag especially interesting or fre
quently needed content. Under "Favorites", you will find a list of your flagged
entries.
Recently viewed The most recently viewed pages in mySupport are available under "Recently viewed
articles articles".
CAx data The CAx data area gives you access to the latest product data for your CAx or CAe
system. You configure your own download package with a few clicks:
• Product images, 2D dimension drawings, 3D models, internal circuit diagrams,
EPLAN macro files
• Manuals, characteristics, operating manuals, certificates
• Product master data
You can find "mySupport" on the Internet. (https://support.industry.siemens.com/My/ww/en)
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 11
https://365electricalvn.com/category/automation-manual/
Introduction
1.3 Tool support
Application examples
The application examples support you with various tools and examples for solving your
automation tasks. Solutions are shown in interplay with multiple components in the system -
separated from the focus on individual products.
You can find the application examples on the Internet.
(https://support.industry.siemens.com/cs/ww/en/ps/ae)
Tools
The tools described below support you in all steps: from planning, over commissioning, all
the way to analysis of your system.
SINETPLAN
SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and
networks based on PROFINET. The tool facilitates professional and predictive dimensioning of
your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports
you during network optimization and helps you to exploit network resources optimally and to
plan reserves. This helps to prevent problems in commissioning or failures during productive
operation even in advance of a planned operation. This increases the availability of the
production plant and helps improve operational safety.
The advantages at a glance
• Network optimization thanks to port-specific calculation of the network load
• Increased production availability thanks to online scan and verification of existing systems
• Transparency before commissioning through importing and simulation of existing STEP 7
projects
• Efficiency through securing existing investments in the long term and the optimal use of
resources
You can find SINETPLAN on the Internet
(https://new.siemens.com/global/en/products/automation/industrial-
communication/profinet/sinetplan.html).
S7-PLCSIM Advanced
12 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Introduction
1.5 Administrator rights
NOTE
Administrator rights
For normal operation, the standard user rights are sufficient. You need administrator rights
only when you install or repair S7‑PLCSIM Advanced or change the network configuration.
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 13
https://365electricalvn.com/category/automation-manual/
Product overview 2
2.1 What is S7-PLCSIM Advanced?
You use S7‑PLCSIM Advanced to simulate your CPU programs on a simulated PLC instance.
You do not need any real controllers for simulation. You configure your CPU with STEP 7 in
TIA Portal, program your application logic and then load the hardware configuration and the
program into the simulated CPU. From STEP 7, you run your program logic, monitor the
effects of simulated inputs and outputs, and adapt your programs.
In addition to communication via Softbus, which limits communication to a local PC or virtual
machine, S7‑PLCSIM Advanced offers a full Ethernet connection and thus also supports
distributed I/O systems.
S7‑PLCSIM Advanced also includes an application programming interface (API), which enables
interaction with native C++/C# programs or simulation software. The API extends simulation
capabilities and provides features such as the following:
• Simulation of hardware interrupts
• Stopping a simulation
• Synchronization with simulation partners
For these and other API functions, refer to the S7‑PLCSIM Advanced API manual included with
your release.
Application areas
Typical application areas of S7‑PLCSIM Advanced are:
• Verification of the user program (TIA Portal)
• Testing of the STEP 7 program
• Software in the loop simulation for the virtual commissioning of machine tools/production
machines, production cells, and production lines in a plant.
• Operator training through the connection of a real HMI
Advantages
S7‑PLCSIM Advanced offers numerous advantages:
• Improve the quality of automation projects by early error detection
• Avoid costs for hardware in simulation environments
• Shorten commissioning time
• Reduce risk for commissioning
• Train operators earlier
• Increase production efficiency by optimizing program components
S7-PLCSIM Advanced
14 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Product overview
2.2 S7-PLCSIM products
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 15
https://365electricalvn.com/category/automation-manual/
Product overview
2.2 S7-PLCSIM products
S7-PLCSIM Advanced
16 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Product overview
2.3 Supported CPUs
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 17
https://365electricalvn.com/category/automation-manual/
Product overview
2.4 Compatibility in case of updates
Unsupported CPUs
S7‑PLCSIM Advanced does not simulate S7‑1200 or S7‑1200 G2CPUs.
To simulate CPUs of the S7‑1200 or S7‑1200 G2 product family, use the latest edition of
S7‑PLCSIM (https://support.industry.siemens.com/cs/ww/en/view/109826203).
If you download a TIA Portal project whose configuration includes an unsupported CPU, the
following error message appears:
"Loading of hardware configuration failed (0020 -3 2 0). Please check the diagnostic buffer of
the target hardware."
S7-PLCSIM Advanced
18 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Product overview
2.5 Security for S7-PLCSIM Advanced
NOTE
Password encryption in case of updates
When a TIA Portal project is updated from CPU firmware version < V2.0 to CPU firmware
version ≥ V2.0, the following error message is displayed during a download of the project to
SIMATIC S7‑PLCSIM Advanced:
"Loading of hardware configuration failed (0020 -3 2 0). Please check the diagnostic buffer of
the target hardware."
To successfully download such a project to SIMATIC S7‑PLCSIM Advanced, click the "Update
password encryption" button while updating the project.
Communication
• The multi-computer simulation communication is not encrypted.
• A TCP/IP port is opened on the PC for cross-network communication.
• The installed Npcap program library provides access to TCP/IP network communication.
NOTE
For cross-computer communication, use a closed simulation network that is not connected to
a production network.
Know-how protection
NOTE
Know-how protected blocks
If know-how-protected blocks for the simulation support are enabled, the know-how
protection is limited.
NOTE
CPU function libraries for ODK
The SO files (shared object files) for ODK are not know-how-protected. The customer is
responsible for the SO files and its know-how protection.
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 19
https://365electricalvn.com/category/automation-manual/
Product overview
2.7 Differences between a simulated and a real CPU
NOTE
Enable simulation capability
To use a STEP 7 project with simulation, you must select the "Support simulation during block
compilation" option in the "Protection" tab in the properties of the project and confirm with
OK.
Know-how protection
If a know-how-protected block is to be used for the simulation, it must be unlocked by
entering a password.
After you have unlocked the know-how-protected block, you can activate the option "Can be
simulated with SIMATIC S7‑PLCSIM". You will find the option in the properties of the block in
the "General > Compilation" tab.
Additional information can be found on the Internet
(https://support.industry.siemens.com/cs/ww/en/view/109754928).
Global libraries
You cannot use know-how protection with global libraries, because the libraries are write-
protected.
The "Can be simulated with SIMATIC S7‑PLCSIM" option must be set when generating the
blocks (source of the blocks).
S7-PLCSIM Advanced
20 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Product overview
2.7 Differences between a simulated and a real CPU
Deterministic
S7‑PLCSIM Advanced runs on a PC with the Windows operating system. The scan cycle time
and the exact time of actions in S7‑PLCSIM Advanced are not the same as when these actions
run on physical hardware. This is because several programs share the processing resources on
your PC.
To provide the best possible deterministic behavior under these conditions,
S7‑PLCSIM Advanced requires one free Core (CPU core) per instance. Information on the
minimum requirements for the computer hardware or a virtual machine can be found in the
section System Requirements.
If your program depends heavily on the time required to execute actions, then make sure that
you do not evaluate your program based only on the results of the simulation time.
Know-how protection
Projects with know-how protection for blocks can only be simulated if they are enabled for
simulation. You need the block password for this purpose.
Instructions
Instructions are simulated with a few exceptions, see Restrictions for instructions (Page 82).
Programs that are based on the instructions behave differently than real CPUs in the
simulation.
S7-1500R/H
For communication with other devices, you can configure system IP addresses in STEP 7 for a
redundant S7-1500R/H system.
Fieldbus systems
S7‑PLCSIM Advanced does not simulate fieldbus systems (PROFINET IO, PROFIBUS DP).
I/O
S7‑PLCSIM Advanced simulates the real CPU, but not configured I/O modules and the on-
board I/O of the compact CPUs.
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 21
https://365electricalvn.com/category/automation-manual/
Product overview
2.7 Differences between a simulated and a real CPU
Copy protection
S7‑PLCSIM Advanced does not simulate copy protection.
Limited support
S7‑PLCSIM Advanced simulates some functions to a limited extent. You can find an overview
in the section Restrictions, messages, and solution (Page 79).
2.7.2 Notes
S7-PLCSIM Advanced
22 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/
Product overview
2.7 Differences between a simulated and a real CPU
Solution
To establish a connection to the SIMATIC HMI device V13 or earlier, you must update this
SIMATIC HMI device to version V14.
To establish a connection from the simulated PLC instance that is configured with a CPU
firmware version lower than V2.0 to the SIMATIC HMI device, you must remove existing
protection levels from the project.
S7-PLCSIM Advanced
Function Manual, V7.0, 11/2024, A5E37039512-AH 23
https://365electricalvn.com/category/automation-manual/
Product overview
2.8 Password to protect confidential configuration data
NOTE
Note that your Windows password protects the password used to protect confidential
configuration data. Therefore, do not share the Windows password with other, untrustworthy
users.
Moving the virtual SIMATIC memory card to another virtual machine, for example, SIMIT
If you have not set a password to protect confidential configuration data, there are no
restrictions on move operations.
If you have specified the password to protect confidential configuration data, the following
restriction applies:
S7-PLCSIM Advanced
24 Function Manual, V7.0, 11/2024, A5E37039512-AH
https://365electricalvn.com/category/automation-manual/