PROFINET-system Redundancy With SINAMICS Drives
PROFINET-system Redundancy With SINAMICS Drives
redundancy with
SINAMICS drives
Siemens
SINAMICS / V1.1 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109744811 Support
Warranty and liability
Note The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These Application Examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
Application Examples and other Siemens publications – e.g. Catalogs – the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
Siemens AG 2017 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, systems, machines and networks.
tion 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.
Customer is responsible to prevent unauthorized access to its plants, systems,
machines and networks. Systems, machines and components should only be
connected to the enterprise network or the internet if and to the extent necessary
and with appropriate security measures (e.g. use of firewalls and network
segmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be
taken into account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them
more secure. Siemens strongly recommends to apply product updates as soon
as available and to always use the latest product versions. 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 under http://www.siemens.com/industrialsecurity.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 2
Table of contents
Table of contents
Warranty and liability ................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Mode of operation ................................................................................ 5
1.3 Components used ................................................................................ 6
2 Engineering ........................................................................................................ 7
2.1 Installation of hardware ........................................................................ 7
2.2 Configuration ........................................................................................ 9
2.2.1 HW Config of SIMATIC H-CPUs .......................................................... 9
2.2.2 HW Config of SINAMICS drive ........................................................... 15
2.2.3 Configuration of topology ................................................................... 19
2.2.4 Download of HW-Config ..................................................................... 20
2.2.5 Configuration of SINAMICS drive ....................................................... 24
2.3 Commissioning of the sample project ................................................ 31
2.4 Controlling the servo motor ................................................................ 33
2.5 Operation ............................................................................................ 36
3 Additional information .................................................................................... 38
3.1 System and media redundancy .......................................................... 38
3.2 PN design versions ............................................................................ 41
3.3 Specific blocks for S7-400H ............................................................... 42
Siemens AG 2017 All rights reserved
4 Appendix .......................................................................................................... 43
4.1 Service and Support ........................................................................... 43
4.2 Contact ............................................................................................... 44
4.3 Links and Literature ............................................................................ 44
4.4 Change documentation ...................................................................... 44
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 3
1 Introduction
1 Introduction
1.1 Overview
Introduction
Thanks to SINAMICS S120, G130, G150 and S150 PROFINET Control Unit, the
assembly of system-redundant systems (S2-system redundancy) is possible.
Precondition for system-redundant systems is a so-called H-system. The H-system
consists of 2 fault-tolerant controls – master and reserve CPU – which are
constantly synchronized via fiber-optic cables. If one controller fails, the other
automatically takes on the job. This reduces system downtimes.
H-system
Siemens AG 2017 All rights reserved
SINAMICS
CU
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 4
1 Introduction
H-system
SINAMICS
Siemens AG 2017 All rights reserved
CU
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 5
1 Introduction
Benefits
No system downtime in the case of a controller failure
Component replacement possible during ongoing operation
Configuration changes possible during ongoing operation
Automatic synchronization after replacing components
Restrictions
PROFINET-IRT is not supported
No simultaneous operation of Shared Device and Shared I-Device
Maximum 2 cyclical PROFINET connections
System redundancy only via the onboard interface of SINAMICS
PROFINET Control Unit S120, G130, G150 and S150
For the duration of switching from one controller to the other, the setpoints
of the last connection remain frozen and valid.
Knowledge required
Basic knowledge of SINAMICS drives and H-Systems is assumed.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 6
2 Engineering
2 Engineering
2.1 Installation of hardware
Following pictures show the hardware and the topology of the hardware.
Note
An incorrectly set rack number prevents online access and the CPU might not
start up.
Power supply
You require one power supply module from the standard range of the S7-400 for
each HCPU, or to be more precise, for each of the two subsystems of the S7-
400H.
To increase availability of the power supply, you can also use two redundant power
supplies in each subsystem.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 7
2 Engineering
Synchronization modules
The synchronization modules are used to link the two CPUs. They are installed in
the CPUs and interconnected by means of fiber-optic cables.
There are two types of synchronization modules: one for distances up to 10
meters, and one for distances up to 10 km between the CPUs.
A fault-tolerant system requires 4 synchronization modules of the same type.
Fiber-optic cable
The fiber-optic cables are used to interconnect the synchronization modules for the
redundant link between the two CPUs. They interconnect the upper and lower
synchronization modules in pairs.
SIMATIC S7 SIMATIC S7
CPU 412-5H CPU 412-5H
CPU0 CPU1
IF1 IF2 P1 P2 IF1 PN
IF2 P1 P2
PROFINET IE
Siemens AG 2017 All rights reserved
-X150 P1 P2
SINAMICS S120
CU310-2 PN
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 8
2 Engineering
2.2 Configuration
2.2.1 HW Config of SIMATIC H-CPUs
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 9
2 Engineering
No. Action
4. Insert your used rack two times.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 10
2 Engineering
No. Action
5. Drag &drop your used power supply into both racks respectively.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 11
2 Engineering
No. Action
6. Afterwards insert your CPUs (here: SIMATIC CPU 412-5H PN/DP V6.0) into
both racks.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 12
2 Engineering
No. Action
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 13
2 Engineering
No. Action
9. Now there are two racks, two CPUs and two PROFINET systems configured.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 14
2 Engineering
2. Select the existing Ethernet subnet and assign an IP address. (here: 192.168.0.3).
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 15
2 Engineering
No. Action
3. Double-click the added SINAMICS drive to open the properties window.
Define the device name (here: „SINAMICS-S120-CU310-2PN“).
Siemens AG 2017 All rights reserved
Check in the tab „Redundancy“, if the SINAMICS is connected with both PROFINET systems.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 16
2 Engineering
Note For the steps described in the following, a functional connection is required
between the engineering PC and the hardware being used!
In SIMATIC Manager, using the menu item "Options > Set PG/PC
Interface…" open the window to set the PG/PC interface. There, for the
access point "S7ONLINE", select the network card of your engineering PC that
you are using with the supplement "TCPIP.1" (not "TCPIP.Auto.1").
Siemens AG 2017 All rights reserved
No. Action
4. The device name must then be assigned to the SINAMICS drive.
For this purpose mark the PROFINET IO system.
Open the window for the name assignment with “PLC > Ethernet > Assign Device
Name”.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 17
2 Engineering
5. Select the device name configured in HW config using the drop-down menu (1).
Then select the SINAMICS drive from the list of available devices (2) and assign the device name
using the "Assign name" (3) button.
(1)
(3)
(2)
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 18
2 Engineering
2. Connect both ports 1 of the H-CPUs with port 1 and port 2 of your SINAMICS CU.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 19
2 Engineering
3. To do this, select the corresponding target device, and confirm your selection using the "OK"
button.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 20
2 Engineering
No. Action
4. If the SIMATIC CPU is still in the factory setting (i.e. the IP address is 0.0.0.0), a download is
only possible after assigning the IP address configured in HW Config. Browse through the
network for controllers that can be accessed by pressing the "View" button.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 21
2 Engineering
No. Action
All of the controllers that can be accessed are displayed. Select the corresponding controller by
identifying it based on its MAC address and confirm your selection by pressing the "OK" button.
Siemens AG 2017 All rights reserved
Note
First reset the interface of the controller to the factory settings, if the SIMATIC CPU already has
an IP address, which does not match the IP address configured in HW Config!
("PLC > Ethernet > Edit Ethernet Node > Browse > Select CPU > OK >
Reset")
5. Confirm the following message with "Yes", to assign the IP address configured in HW Config to
the controller (192.168.0.1) (permanent IP address!).
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 22
2 Engineering
No. Action
6. Then switch the SIMATIC CPU back into the "RUN" operating state.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 23
2 Engineering
The standard configuration of the SINAMICS drive with the STARTER engineering
system is shown below.
Note
To establish an online connection, the network card of the engineering PC being used must be in
the same IP subnet as the target device. Ensure that this precondition is complied with and if
required adapt the IP configuration of your network card!
Example
IP address of the target device 192.168.0.2
subnet mask 255.255.255.0
IP address of the engineering PC 192.168.0.99
subnet mask 255.255.255.0
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 24
2 Engineering
No. Action
3. Select the configured SINAMICS drive (set the checkmark in the checkbox) and confirm your
selection by pressing the "OK" button.
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 25
2 Engineering
No. Action
4. After this, restore the factory settings at the SINAMICS (if this has still not been done).
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 26
2 Engineering
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 27
2 Engineering
9. If the firmware version of the drive has changed compared to the last commissioning, after the
Siemens AG 2017 All rights reserved
automatic configuration it may be necessary to "Power OFF/ON" the drive to update the
firmware of the Drive-CliQ components
Note
Before "Power OFF/ON" execute the "RAM to ROM" function at the drive to save the previous
configuration in a non-volatile way.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 28
2 Engineering
10. Open the drive telegram configuration using the menu item "Communication > Telegram
configuration".
Note
Siemens AG 2017 All rights reserved
Set these telegrams in the drive telegram configuration and align the telegram configuration with
HW Config ("Set up addresses").
Note
Confirm the message that follows with "Yes". A blue tick after the telegrams indicates that the
telegram configuration has been successfully aligned with HW Config.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 29
2 Engineering
No. Action
12. Change to the HW Config of the SIMATIC CPU, and check the size of the process image of the
controller (double click on the CPU > tab "Cycle/Clock Memory").
Siemens AG 2017 All rights reserved
Note
If required, adapt the size of the process image of the inputs and outputs so that the input and
output data of the SINAMICS drive telegrams are completely inside of the process image of the
controller!
13. Save and compile the configuration of the SINAMICS drive in STARTER and in the HW Config of
the SIMATIC CPU.
15. Download to the SINAMICS drive and load HW Config into the controller.
16. Execute the "RAM to ROM" function in the drive to save its configuration in a non-volatile way.
17. The communication between the SIMATIC CPU and SINAMICS drive has therefore been
configured.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 30
2 Engineering
Example
IP address: 192.168.0.99
subnet mask: 255.255.255.0
4. Start the STEP 7 SIMATIC Manager engineering system.
5. Retrieve the sample project “109744811_Systemredundancy_v10.zip".
6. Open the HW Config of the SIMATIC CPU.
Siemens AG 2017 All rights reserved
7. Download the HW Config and all blocks from the block container into the controller.
8. Carry out a node initialization of the SINAMICS drive. To do this, change to HW Config of the
controller and select the PROFINET network. Using the menu item "PLC > Ethernet >
Assign Device Name…" open the window to assign a name.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 31
2 Engineering
No. Action
9. Select the device name configured in HW Config using the drop-down menu (1).
Then select the SINAMICS drive from the list of available devices (2) and assign the device name
using the "Assign name" (3) button.
(1)
(3)
(2)
Note
Siemens AG 2017 All rights reserved
13. Download the configuration of the drive into the target device.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 32
2 Engineering
W#16#4000
Siemens AG 2017 All rights reserved
The user must specify the speed setpoint used to operate the servo motor ("N_SOLL_USER").
The calculation of the speed setpoint is based on the specified definitions of the PROFIdrive
profile. 6000 rpm corresponds to the value "W#16#4000".
The calculated speed is then buffered so that it can be further accessed ("N_SOLL").
The servo motor is operated with the calculated speed and is stopped again by setting the
"boMove" flag.
Note
The rated speed of the servo motor installed in the training case is 6000 rpm.
The maximum speed is 10000 rpm.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 33
2 Engineering
No. Action
2.
2#0000_0100_0111_1110
2#0000_0010_0001_0001
2#0000_0100_0111_1111
If flag "boMove" is controlled to a value of "1", then the required releases are set in control
word 1("STW1") of the servo motor (W#16#47E), so that it can be moved.
To ensure that the motor is only moved when all releases required are actually present, its status
Siemens AG 2017 All rights reserved
word 1 ("ZSW1") is compared with a constant word that represents the required releases
(W#16#211).
Only when status word 1 ("ZSW1") matches this value, the bit in control word 1 ("STW1") is set,
that switches on the servo motor (W#16#47F). The servo motor is then moved with the speed
setpoint entered by the user.
3.
2#0000_0100_0000_0000
2#0000_0100_1000_0000
The speed setpoint of the servo motor is 0 rpm as long as the "boMove" flag is not controlled to
a value of "1".
In control word 1 ("STW1"), only bit 10 ("Control by PLC") is set (W#16#400).
If faults are active, flag "boReset" can be controlled to a value of "1".
As a consequence, in control word 1 ("STW1") of the servo motor additionally bit 7
("Acknowledge faults") is set, which acknowledges the fault (W#16#480). In this case, flag
"boMove" must have the value "0"!
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 34
2 Engineering
Note The structure of the relevant (standard) telegram (i.e. STW1, NSOLL_B, etc.) is
defined in the PROFIdrive profile. You can find further information about this at
the following link:
SINAMICS S120 / S150 List Manual (Chapter 2.9)
Note The following addresses are used in the sample project to control the SINAMICS
drive:
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 35
2 Engineering
2.5 Operation
The sample project is operated using the variable table "Drive control" of the
SIMATIC CPU in the SIMATIC Manager.
Here, the user can enter the set point speed for the servo motor as well as
switching the motor on and off. Possibly upcoming faults of the servo motor can
also be acknowledged.
2. In the variable table, switch to the online view using button "Monitor variable" (1).
Then enter the required speed setpoint in column "Modify value" into flag double word MD100
(unit: rpm) and the value "true" or "1" into flag M0.0 (2).
Activate the values by using the button "Activate modify values" (3).
(1) (3)
(2)
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 36
2 Engineering
No. Action
3. The speed "N_SOLL_USER" entered by the user is scaled according to the definitions of the
PROFIdrive profile and entered at the servo motor as speed setpoint.
Further, the required releases are set in control word 1 ("STW1") of the drive to move it.
Note
The speed setpoint can also be changed if the servo motor is already in operation, i.e. flag
"boMove" is set.
4. By setting flag "boReset", possible faults present at the servomotor can be acknowledged.
Note
Pending faults can be acknowledged only when the servomotor is not operational, i.e. the
"boMove" flag must not be set!
Further it should be noted that flag "boReset" is not automatically reset to the value "0". This
must be done manually after the acknowledgement of the faults!
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 37
3 Additional information
3 Additional information
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 38
3 Additional information
H-system
PN-devices
Siemens AG 2017 All rights reserved
The IO devices need to support the system redundancy; otherwise, they can be
operated in the same network, however only one of both H-CPUs can be assigned
(unilateral periphery).
The used topology (line, star, ring) plays no role for the system redundancy. This
distinguishes the system redundancy from the media redundancy.
System redundant periphery is often also referred to as switched periphery. This
does not refer to the fault tolerance between I/O groups or systems.
An example for switched periphery (system-redundant periphery) are PN devices,
which support the system redundancy and can be assigned to an H system (e.g.
ET 200M, SINAMICS CU320-2PN, etc.. ). In contrast, the ET 200S, for example,
can only be assigned to an H-CPU unilaterally (no H system).
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 39
3 Additional information
Media redundancy
Media redundancy ensures the network availability and contributes to increasing
the plant availability.
The ring topology is used here. The media redundancy protocol (MRP) ensures
that when one transmission path fails, an alternative communication path is
available.
For media redundancy with MRP, one device is the media redundancy manager
(MRM), all other devices are redundancy clients. In the picture below, the CPU is
the MRP-Manager.
In the case of a failed connection, the MRM selects the alternative communication
path.
CPU
Siemens AG 2017 All rights reserved
PN-Devices
Ring
Context
System and media redundancy have no mutual impact on each other.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 40
3 Additional information
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 41
3 Additional information
Always download these error OBs to the S7-400H CPU: OB 80, OB 82, OB 83,
Note
OB 85, OB 86, OB 88, OB 121 and OB 122.
If you do not download these OBs, the fault-tolerant system goes into STOP
when an error occurs.
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 42
4 Appendix
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, application examples and videos
– all information 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 send queries to
Technical Support via Web form:
www.siemens.com/industry/supportrequest
Service offer
Siemens AG 2017 All rights reserved
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 43
4 Appendix
4.2 Contact
Siemens AG
Digital Factory Division
Factory Automation
Production Machines
DF FA PMA APC
Frauenauracher Str. 80
91056 Erlangen, Germany
mailto: [email protected]
PROFINET-system redundancy
Entry-ID: 109744811, V1.1, 07/2017 44