S7-PLCSIM V20 Operating Manual
S7-PLCSIM V20 Operating Manual
S7-PLCSIM overview
2
Operating Manual
Simulating motion control
5
V20, 11/2024
A5E46238743-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 S7-PLCSIM documentation guide....................................................................................... 6
1.2 SIMATIC Technical Documentation.................................................................................... 7
1.3 Tool support..................................................................................................................... 9
1.4 Cybersecurity information................................................................................................. 10
2 S7-PLCSIM overview........................................................................................................................... 11
2.1 Workspaces and starting S7-PLCSIM.................................................................................. 12
2.2 Creating, opening, and saving S7-PLCSIM workspaces....................................................... 13
2.3 S7-PLCSIM Essentials view................................................................................................. 15
2.4 Configuring the settings for S7-PLCSIM............................................................................. 15
2.5 Using and customizing keyboard shortcuts........................................................................ 15
2.6 Differences between a simulated PLC and a physical PLC................................................... 17
2.6.1 Overview of differences.................................................................................................... 17
2.6.2 Differences common to all supported PLCs........................................................................ 17
2.6.3 S7-1200: Technology support........................................................................................... 19
2.6.4 S7-1200 G2, S7-1500, ET 200SP, and ET 200pro: Technology support............................... 19
https://365electricalvn.com/category/automation-manual/
Table of contents
Index................................................................................................................................................... 53
Readme updates
When needed, changes and supplements to Online help documents are available in a Readme
document. These updates take precedence over the system manual. You can find the latest
Readme updates on S7-PLCSIM Readme
(https://support.industry.siemens.com/cs/ww/en/view/109972226)
https://365electricalvn.com/category/automation-manual/
Introduction
1.2 SIMATIC Technical Documentation
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)
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)
https://365electricalvn.com/category/automation-manual/
Introduction
1.3 Tool support
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).
https://365electricalvn.com/category/automation-manual/
S7-PLCSIM overview 2
S7‑PLCSIM supports the debugging and validation of PLC programs without requiring actual
hardware. With simulated PLC instances in S7‑PLCSIM, you can use STEP 7 debugging tools,
including the watch table, program status, online & diagnostics functions, and other tools.
S7‑PLCSIM also operates in conjunction with S7-PLCSIM Advanced. You can also download
from STEP 7 to simulated PLC instances that you started from the S7-PLCSIM Advanced
control panel or from the S7-PLCSIM Advanced API.
S7‑PLCSIM provides the following tools for simulated PLCs:
• Support for the latest firmware of the following product families:
– S7-1500
– S7-1200
– S7-1200 G2
– ET 200SP
– ET 200pro
– S7-1500R/H
– Software Controller
• Multiple simulated PLC instances (Page 20)
• Simulation (SIM) tables (Page 29) for monitoring and modifying simulated PLC inputs,
outputs, and data
• Simulation of interrupts to trigger supported event OBs (Page 32)
• Sequences (Page 36) to simulate an external process interacting with your program
• Virtual time scaling (Page 24) for S7-PLCSIM Advanced instances
• The ability to connect to physical communication networks (Page 25) for S7-PLCSIM
Advanced instances
S7‑PLCSIM operates in conjunction with STEP 7 in the TIA Portal. You use STEP 7 to perform
the following tasks:
1. Configure a PLC and any associated modules
2. Program your application logic
3. Start a simulation or download a PLC configuration and program to S7‑PLCSIM
When S7-PLCSIM has a configured simulated PLC instance, you can use the online tools in
STEP 7 to observe simulated program behavior. Observe the requirements for user
authentication based on the communication mode (Page 25).
S7-PLCSIM workspaces
An S7-PLCSIM workspace can contain multiple simulated PLC instances (Page 20) and
simulation views (Page 28) (SIM views) that include SIM tables, events, and sequences. You
can work in a workspace without saving or you can create, save, and reopen workspaces
(Page 13).
Starting S7-PLCSIM
You can start S7-PLCSIM by any of the following means:
• S7-PLCSIM desktop icon
• S7-PLCSIM in the Start menu
• "Start simulation" command from STEP 7 for supported devices
https://365electricalvn.com/category/automation-manual/
S7-PLCSIM overview
2.2 Creating, opening, and saving S7-PLCSIM workspaces
and start the simulation. If you do not want S7-PLCSIM to remove the other running instance,
cancel the operation and resolve the instance name conflict manually.
NOTE
If you start simulation from STEP 7 more than once for a PLC, you start multiple simulation
instances for that PLC.
NOTE
You cannot convert projects from S7-PLCSIM V17 or earlier to workspaces. Project formats
from earlier versions and workspace files are not compatible.
NOTE
"New" is only an option in the workspace dropdown menu if you have added at least one
instance in an unsaved workspace, or if you are working in a saved workspace.
NOTE
You can also use the pre-defined shortcut "Ctrl+O" anywhere within the S7-PLCSIM main
application to open a saved workspace.
To open a recent workspace, select the Workspace icon and choose your project from the list
under "Recent workspaces". Note that this menu will show only up to the three most recent
workspaces saved.
S7-PLCSIM opens the workspace and displays the project name beside the Workspace icon.
You can then use the icons to switch to the Instances window or the SIM view window(s).
If a simulated PLC instance name in the workspace is the same as a running instance from
another application such as S7-PLCSIM Advanced, S7‑PLCSIM prompts you to handle the
instance name conflict. You can choose to remove the instance from the other workspace
and continue to open the workspace. If you do not want S7‑PLCSIM to remove the other
running instance, cancel the open operation and resolve the instance name conflict
manually.
Saving a workspace
Click the Workspace icon and choose "Save" from the dropdown menu to save your current
workspace.
NOTE
You can also use the pre-defined shortcut "Ctrl+S" anywhere within the S7-PLCSIM main
application to save your current work.
Deleting a workspace
You can only delete a workspace from Windows File Explorer. Click the Workspace icon and
select "Show in file explorer" to open Windows File Explorer. Delete the folder that
corresponds to the workspace you want to delete.
https://365electricalvn.com/category/automation-manual/
S7-PLCSIM overview
2.5 Using and customizing keyboard shortcuts
You can edit the keyboard shortcuts in each category following these steps:
1. Click the vertical ellipsis menu on the top right of the shortcut category.
2. Select "Edit".
3. Click to place your cursor in the shortcut field that you want to change.
4. Add the new shortcut by entering a key combination (ctrl/shift/alt + a keystroke) or using a
command key.
5. Click "Save".
NOTE
Do not duplicate a custom shortcut in S7-PLCSIM that you already use with any application
running on the same machine.
https://365electricalvn.com/category/automation-manual/
S7-PLCSIM overview
2.6 Differences between a simulated PLC and a physical PLC
Diagnostics
S7‑PLCSIM does not support all of the error messages written to the diagnostic buffer. For
example, S7‑PLCSIM does not simulate messages about bad batteries in the CPU, or EPROM
errors. However, S7‑PLCSIM simulates most program errors.
Time-based performance
Because S7‑PLCSIM is software running on a programming device under the Windows
operating system, the scan cycle time and the exact time of actions in S7‑PLCSIM are not the
same as if PLC firmware performed those actions.
If your program is highly dependent upon the time that actions execute, do not evaluate your
program based only on the time results of your S7‑PLCSIM simulation.
Know-how protection
You must enable simulation of know-how protected blocks to simulate them in S7-PLCSIM. To
enable know-how protection for a block, follow these steps:
1. Right-click the project in STEP 7.
2. Select Properties.
3. From the Protection tab, select the check box "Support simulation during block
compilation".
Flashing LEDs
STEP 7 and other tools can only flash LEDs on physical PLCs. You cannot flash the LEDs on a
simulated PLC from STEP 7 or any other tool.
Web server
S7-PLCSIM supports the Web server only when the instance is an Advanced instance and the
communication mode (Page 25) is a TCP/IP mode.
PROFIBUS
If your STEP 7 project contains PROFIBUS elements, S7‑PLCSIM will not simulate the PROFIBUS
elements, but simulates the remainder of your project.
You do not need to remove the PROFIBUS elements from your project before starting your
simulation. Just be aware that S7‑PLCSIM ignores the PROFIBUS elements.
F-CPU simulation
To simulate an F-CPU, you must adjust the F‑parameter F‑monitoring time in your STEP 7
project before you download to S7‑PLCSIM. This is due to the difference in timing between a
software-based simulation and physical hardware.
To adjust the F‑monitoring time, follow these steps:
1. In the STEP 7 Project tree, right-click your F‑CPU and select "Properties".
2. In the Properties dialog, navigate to "Fail‑Safe > F‑parameter > Default F‑monitoring time
for central F‑I/O".
3. Adjust the F‑monitoring time from the default of 150 ms to a higher value.
4. Click OK.
You might need to repeat this procedure until you find an F‑monitoring value that allows
your F‑CPU simulation to run without errors.
Instruction support
S7‑PLCSIM supports most instructions for the simulated S7‑1200 and S7-1200F in the same
way as for a physical PLC.
You can download all programs that successfully compile to the virtual PLC. However, some
instructions call SFCs (system functions) or SFBs (system function blocks) that are only
partially supported, and your simulation might not function as you expect.
https://365electricalvn.com/category/automation-manual/
S7-PLCSIM overview
2.6 Differences between a simulated PLC and a physical PLC
For programs with partially supported instructions, S7‑PLCSIM validates input parameters and
returns outputs that are valid, but not necessarily what a real PLC with physical I/O would
return. For example, S7‑PLCSIM does not support the SIMATIC SD memory card, so program
instructions that save data on a memory card do not actually save data when a simulation
executes.
Technology support
S7‑PLCSIM supports the following technology features for the S7-1200 G2, S7‑1500,
S7‑1500F, Software Controller, ET 200SP, and ET 200pro:
• Counting, measurement, and position detection
• PID Control
• Time-based IO
• Motion control