Академический Документы
Профессиональный Документы
Культура Документы
PLCSIM V14
Mapping of the controller
functionality in a model PLCSIM Advanced V1.0
NEW
Process Simulate
Mapping of the plant/machine in
a model SIMIT
Simulation
PLCSIMsystem
Advanced
Virtual controller
Plant/Machine simulation
= Co-simulation
Restricted © Siemens AG 2016
Page 3 March 2016
PLCSIM Advanced
Basis for software in the loop
Advanced
as basis for
"Software
in the Loop"
Co-simulation
§ Interface for a connection
to different co-simulations
via API
Virtual
S7-1500 controller
S7-1500C
S7-1500T(F)
ET 200SP(F)
Mapping of the real CPU
S7-1500F controller
S7-1200 (F)/
PLCSIM / S7-1500 (F/T) / PLCSIM Advanced
API
up to 2 Multiple instances up to 16
Distributed instances
OPC UA
Web server
Process diagnostics
( ) Traces
Virtual S7-1500 controller
Integrated controller simulation ( ) Motion
in STEP 7 in TIA Portal via softbus S7 communication Applications:
via softbus Open User communication • Functional test of the STEP 7
Use case: program – also in the context of a
know how protected blocks plant/machine
• Functional test and validation of the
Virtual time • Operator training
STEP 7 program
Connection of real PLCs/HMIs
• Virtual commissioning / Factory
DNS use Acceptance Test (FAT)
Restricted © Siemens AG 2016
Virtual memory card
Page 7 March 2016
PLCSIM Advanced
Multiple and distributed instances
Virtual time
How can the virtual time be used? à A freeze state stops the virtual controller at a cycle
§ Gradual debugging of the STEP 7 program; control point:
the virtual controller can be stopped (freeze state) at § Virtual time is stopped
the cycle control point, which is at the end of a OB1 § No OBs are running, no timers
call, and I/Os can be read or manipulated
§ User program is not executed any longer
à The freeze state is also used for synchronization
with the simulation partners. § Virtual controller is in a state with consistent input
and output data
Planning and
configuring
Result Test in virtual environment
software
Signal connection via API in the
Hardware loop
configuration Co-simulation
(incl. signal list)
• Definition of kinematics
Planning and
configuring
Result Test in virtual environment
software
Signal connection via API in the
Hardware loop
configuration Plant/machine simulation in C++ / C#
(incl. signal list)
• Sequence planning
(sequences)
• Motion relations and profiles
Plant/machine
know-how
• Definition of sensors
and actuators C++ / C#
Virtual Com
With Planning and configuring +
Concept commiss missi Operation
virtual Create a model of the plant oning
ioning
commis
sioning
Time in the office Time at the
customer plant
Licensing concept:
Instance 1 Instance 2 Instance 3
• Floating license
• Enterprise License (EPL)
à One license per instance
PLCSIM Adv.
Instance 1
PII C
Prg
PIO A
MVVM
B
A
B
C
Restricted © Siemens AG 2016
Page 19 March 2016
PLCSIM Advanced
Basic knowledge required – WPF and MVVM
To use a STEP 7 project with PLCSIM Advanced, the ability to simulate the blocks must first be enabled in
the project properties in the Protection tab.
1 2
3
Compiling the project activates the ability to simulate the blocks
à If the project already includes know-how protected blocks, these must be
unlocked by entering a password and then these blocks need to be
compiled individually.
Handling of blocks from existing libraries: blocks which have been stored in the library without simulation support:
1
Blocks must be edited / set to "in test"
2
By compiling the blocks again, the check mark for the ability to be simulated is set; a
new type of the block must be published in the library
Notes:
The Control Panel is optional and is not required for
operation of PLCSIM Advanced via the API.
The Control Panel is available in English in version V1.0.
PC 1
IP: 10.11.7.20
PLCSIM Adv. Instance 1 Virtual switch
TIA Portal
on PC 2 can be loaded by connects virtual
means of its IP 10.11.7.20 Virtual adapter adapter with real
from the TIA Portal IP: 10.11.7.12 network adapter
Virtual switch
Communication
Network adapter Network adapter takes place via real
IP: 10.11.7.10 IP: 10.11.7.11 network adapter
Network
Restricted © Siemens AG 2016
Page 37 March 2016
PLCSIM Advanced
Distributed operation – Virtual Switch
Note:
You have to ensure that the PLCSIM
Virtual Switch is enabled in only one
network adapter (if a computer has more
than one network adapter).
When PLCSIM Virtual Switch is enabled Download directly via Virtual Ethernet
for a real network adapter Adapter
(TIA Portal and PLCSIM Advanced are (TIA Portal and PLCSIM Advanced are
located on different computers) located on the same computer)
Runtime Runtime
The Runtime Manager Port can be set
Manager Manager
in the Control Panel of the respective
PC (also possible directly via API)
Runtime Runtime
instance 1 instance 1
Virtual Virtual
1500 CPU 1500 CPU
Runtime API
instances Co-simulation 2
B
Restricted © Siemens AG 2016
Page 47 March 2016
PLCSIM Advanced
Applications – OPC UA
Matlab/
SIMULINK • Controlling the alignment of
PLCSIM Adv. HMI the PENDULUM by PID
Instance 1 Compact
OPC UA
PENDULUM
S7-1500F Pn_io_controller
IP: 192.168.0.100 IP: 192.168.0.102
S7-1500F Pn_io_controller
IP: 192.168.0.100 IP: 192.168.0.102
1. Is it possible to simulate blocks from a SIEMENS library like SIWAREX which are know
how protect? We cannot remove know how protect from those blocks.
In this case the Owner of the Siemens library block (e.g. SIWAREX) has to flag the
block with the property “Support simulation during block compilation”. If this is not
done, it is not possible to simulate this library block with PLCSIM Advanced
2. There is the possibility to connect a PLC SIM Advanced to communicate with a real
CPU, Do you have an example of this?
I have no example but this scenario is not so difficult to realize. The only thing to
consider is to start the PLCSIM Advanced Instance with Online Access “PLCSIM
Virtual Ethernet Adapter” and to activate the virtual switch (“TCP/IP communication
with: …) on the physical network card which is connected to the real PLC.
Annika Simmel
Product Management
DF FA AS E&C PRM 1
Gleiwitzer Str. 555
90475 Nuremberg, Germany
siemens.com/tia-portal