Integration of Drive Systems Via PROFINET in PCS7 en
Integration of Drive Systems Via PROFINET in PCS7 en
Siemens
SIMATIC PCS 7 V9.0 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109750296 Support
Introduction
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 help 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
deficiency or breach of a condition which goes to the root of the contract
(“wesentliche Vertragspflichten”). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
Siemens AG 2017 All rights reserved
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of the Siemens AG.
Security Siemens provides products and solutions with industrial security functions that support the
information 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.
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.
Introduction
Objective of the documentation
The application example describes how to configure a SINAMICS S120 drive
system in SIMATIC PCS 7 V9.0 via PROFINET.
The drive system is connected to the AS 410-5H automation system via single
PROFINET configuration S1 and system redundancy S2.
Furthermore, the CMT engineering description of the S120 is based on a ready-
made and tested template whereas the drive is operated and monitored via the OS
runtime.
Core contents
Integration of a SINAMICS S120 in PCS 7 via PROFINET
Integration of the solution Template
Engineering with the Solution Template
Operator control and monitoring of the drive system
Validity
This application example is valid for:
SIMATIC PCS 7 CPU 410-5H Process Automation, as of firmware V8.2
Siemens AG 2017 All rights reserved
Table of Contents
Warranty and liability ............................................................................................... 2
1 Task and solution ........................................................................................... 5
1.1 The task ............................................................................................ 5
1.2 Solution ............................................................................................. 5
2 Hardware and software components used.................................................... 6
3 Hardware configuration ................................................................................. 7
3.1 Installing the GSDML file ................................................................... 7
3.2 Connection via single PROFINET configuration S1 .......................... 10
3.3 Connection via system redundancy S2 ............................................ 15
3.4 Symbol table.................................................................................... 19
4 Configuring the device name ....................................................................... 20
4.1 Automatic commissioning via topology configuration ........................ 20
4.2 Manual device name assignment ..................................................... 22
5 General information on the Solution Template ........................................... 27
6 Engineering of the Solution Template ......................................................... 31
7 OS runtime .................................................................................................... 34
8 Appendix....................................................................................................... 36
Siemens AG 2017 All rights reserved
1.2 Solution
With the frequency converters SINAMICS S120, S150, G130 and G150 together
with the Control Units CU310-2 PN and CU320-2 PN, Siemens offers a flexible
drive system for connection to PROFINET, which provides:
Single PROFINET configuration S1
System redundancy S2 for connection to a redundant automation system (as
of firmware V4.8)
Siemens AG 2017 All rights reserved
PROFINET PROFINET
Software components
Table 2-1: Software components
Component Note
SIMATIC PCS 7 V9.0 -
APL Library V9.0 Component of SIMATIC PCS 7 V9.0
Solution Template "DRIVE_SINAS120" Download
GSDML file V225, V231, V232
SINAMICS S CU3x0-20160531
Hardware components
Table 2-2: Hardware components
Component Note
CPU 410-5H Firmware V8.2
(Redundant) Part number: 6ES7 410-5HX08-0AB0
SINAMICS S120 Firmware V4.8
CU320-2 PN Part number: 6SL3040-1MA01-0AA0
Siemens AG 2017 All rights reserved
Note Manual "SINAMICS S120 Control Units and Additional System Components":
https://support.industry.siemens.com/cs/ww/en/view/109740019
3 Hardware configuration
Requirements
To configure the SINAMICS S120, you need a prepared PCS 7 multiproject with
the following configuration state:
The Automation System (standard or redundant) is configured with CPU 410-5H
The connection between the Automation System (AS) and Engineering System
(ES) has been created
Note You can find information on creating a PCS 7 multiproject in the manual
"SIMATIC Process Control System PCS 7 Engineering System (V9.0)":
https://support.industry.siemens.com/cs/ww/en/view/109746533
Note You can find information on configuring an automation system and setting up a
network connection in the manual "Compendium Part A - Configuration
Guidelines":
http://www.siemens.com/onlinesupport/pcs7
Note The GSDML file for the Control Unit in this application example can be found in
the download article "SINAMICS S120: PROFINET GSD file": "SINAMICS S120:
PROFINET GSD file"
https://support.industry.siemens.com/cs/ww/en/view/49217480
5. Click "Browse".
6. Select the extracted folder with the GSDML files of the SINAMICS S120 from
the directory and click the "OK" button to confirm.
7. Click "Select All".
Siemens AG 2017 All rights reserved
8. Click "Install".
Siemens AG 2017 All rights reserved
CPU 410-5H
Siemens AG 2017 All rights reserved
PROFINET
SINAMICS S120
CU 320-2 PN
Note Please consider as well the Security Guideline of the PROFIBUS & PROFINET
International (PI): https://www.profibus.com/download/profinet-security-
guideline/?return_url=download%2Fspecifications-standards%2F
Note You can find further information on system connections and PROFINET
architectures in the document "PROFINET in Process Automation with SIMATIC
PCS 7": https://support.industry.siemens.com/cs/ww/en/view/72887082
Procedure
1. Open the HW Config of the CPU 410-5H.
2. Select the interface (X5 or X8) of the controller to which the drive is physically
connected.
3. Right click to open the shortcut menu and select the "Add PROFINET IO
system" (in this application example: "Interface X5: PN-IO-X5").
After installing the GSDML file in Section 3.1, the SINAMCS S120 becomes
available in the "PROFINET IO" category of the module catalog.
4. Add the "SINAMICS S120/S150 CU320-2 PN V4.8" from the module catalog to
the PROFINET system via drag-and-drop.
Siemens AG 2017 All rights reserved
5. In the object properties of the SINAMICS S120, assign a plant-wide unique device
name in the "General" tab (in this application example: "SINAMICS-S120-01").
Siemens AG 2017 All rights reserved
7. Click on "Ethernet" and select the subnet in which the SINAMICS S120 is
located (in this application example: "Fieldbus").
Siemens AG 2017 All rights reserved
8. Drag the module "DO VECTOR" from the module catalog in the "SINAMICS
S120/S150 CU320-2 PN V4.8" list and drop it onto slot 1 of the SINAMICS S120.
9. Drag the telegram used from the "DO VECTOR" list and drop it onto slot 1.3 of
the module "DO VECTOR".
This application example uses the standard telegram 20.
Note The input and output word must start with the same initial value.
11. Save and compile your hardware configuration and download it to the controller.
12. Edit the symbol table and then skip to section 4.1 "Automatic commissioning
via topology configuration" to assign the device name configured in HW Config
to the device.
CPU 410-5H
H-System
Siemens AG 2017 All rights reserved
PROFINET
SINAMICS S120
CU 320-2 PN
Note Please consider as well the Security Guideline of the PROFIBUS & PROFINET
International (PI): https://www.profibus.com/download/profinet-security-
guideline/?return_url=download%2Fspecifications-standards%2F
Note You can find further information on system connections and PROFINET
architectures in the document "PROFINET in Process Automation with SIMATIC
PCS 7": https://support.industry.siemens.com/cs/ww/en/view/72887082
Procedure
1. Open the HW Config of the H system.
2. Select the interface (X5 or X8) of a controller to which the drive is physically
connected.
3. Right click to open the shortcut menu and select the "Add PROFINET IO
system" (in this application example: "Interface X5: PN-IO-X5").
4. Add a PROFINET system with the name "Fieldbus".
5. Repeat this step for the redundant controller. The PROFINET systems of both
controllers must be on the same subnet.
After installing the GSDML file in Section 3.1, the SINAMCS S120 becomes
available in the "PROFINET IO" category of the module catalog.
6. Add the "SINAMICS S120/S150 CU320-2 PN V4.8" from the module catalog to
the PROFINET system via drag-and-drop.
7. In the object properties of the SINAMICS S120, assign a plant-wide unique
device name (in this application example: "SINAMICS-S120-01").
Siemens AG 2017 All rights reserved
9. Click on "Ethernet". Select the subnet in which the SINAMICS S120 is located
(in this application example: "Fieldbus").
Siemens AG 2017 All rights reserved
10. Switch to the "Redundancy" tab and select the "Rack 1, CPU 410-5H-02, PN-
IO-X5-02" check box.
11. Drag the module "DO VECTOR" from the module catalog from the "SINAMICS
S120/S150 CU320-2 PN V4.8" list and drop it onto slot 1 of the SINAMICS S120.
12. Drag the telegram used from the "DO VECTOR" list and drop it onto slot 1.3 of
the module "DO VECTOR".
This application example uses the standard telegram 20.
Siemens AG 2017 All rights reserved
Note The input and output word must start with the same initial value.
14. Save and compile your hardware configuration and download it to the controller.
15. Edit the symbol table and then skip to Section 4.1 "Automatic commissioning
via topology configuration" to assign the names configured in HW Config to the
device.
2. Save and compile your hardware configuration and download it to the controller.
Siemens AG 2017 All rights reserved
Note You can find detailed information and notes on topology configuration in the
document "PROFINET in Process Automation with SIMATIC PCS 7":
https://support.industry.siemens.com/cs/ww/en/view/72887082
2. Go to the "General" tab and select the check box "Support device replacement
without exchangeable medium".
Siemens AG 2017 All rights reserved
3. Right-click on the interface of the CPU to which the drive system is connected
and open the Topology Editor ("PROFINET IO Topology...").
Note To check whether the setpoint and actual topology are identical, you have to
access the PG/PC interface and select the Ethernet network card with access to
the fieldbus.
You can then check the setpoint and actual topology in the Topology Editor using
the "Online" button.
Note Topology planning is only possible within a sub-project, i.e. the stations on a
shared PROFINET network must be within the same sub-project.
Plant bus
Securi ty Modul e
SCALANCE S
CPU 410-5H
H-Sys tem
Fieldbus
SINAMICS S120
CU 320-2 PN
Siemens AG 2017 All rights reserved
Note For further information about the Service Bridge, see the application example
"Service Bridge – Setting-up and Configuration":
https://support.industry.siemens.com/cs/ww/en/view/109747975
Manual assignment of the device name through direct connection between ES and drive system
If you do not use a Service Bridge in your plant, you have to switch round your
PROFINET connections.
The following options are available:
Direct connection of the ES with the PROFINET interface of the CPU via the plant bus
Direct connection of the ES with the CU of the drive via Ethernet interface
Note The control unit of the SINAMICS S120 has an X127 LAN interface
(Ethernet interface) for commissioning and servicing purposes.
ES ES
Siemens AG 2017 All rights reserved
4. Select the drive system in the hardware configuration. Then click on "PLC >
Ethernet > Assign Device Name".
Siemens AG 2017 All rights reserved
5. In the drop down menu "Device name" select the configured name of the drive
system in chapter 3.2 or 3.3 (in this application example: SINAMICS-S120-01).
6. Select in the list "Available devices" the drive system you would like to name
and then click on the button "Assign name".
Hinweis You can filter the list of available devices. For this select the check box "Show
only devices of the same type" or "Display only devices without names".
NAMUR messages
This section describes the most important blocks and their functions when using
standard telegram 20.
Sheet 1
Siemens AG 2017 All rights reserved
FbDrive
Table 5-1
Terminal designation Function description
Telegram The "FbDrive" block integrates any compact
drives that support the following telegram
types:
Telegram type 1
Two input words and two output words
Telegram type 20
Six input words and two output words
Status word The inputs "PZDIn1" to "PZDIn6" provide
the following information:
State
Status
Actual value
Error messages
Control word The outputs "PZDOut1" and "PZDOut2"
specify control word STW1 and setpoint to
the controller of the frequency converter
On / Off Feedback The output "F_N_Reach" indicates if a
frequency is present in the motor or if the
motor is stopped.
Reset Input "Ackn" and output "Fault" are logically
interconnected with the motor block
"MotSpCL". This allows the frequency
converter to be reset in the faceplate.
active
FeatureBit 6 = 1
All commands are active
FeatureBit 28 NAMUR messages
FeatureBit 28 = 0
Freely configurable analog value
FeatureBit 28 = 1
NAMUR messages display
(only with Standard Telegram 20)
Note You can find further information on the "FBDrive" block in the chapter
"FbDrive - Channel block for compact drives" of the manual "SIMATIC Process
Control System PCS 7 Advanced Process Library (V9.0)":
https://support.industry.siemens.com/cs/ww/en/view/109482346
Note You can find the limit calculation for the process value in the chapter
"FbDrive - Channel block for compact drives" of the manual "SIMATIC Process
Control System PCS 7 Advanced Process Library (V9.0)":
https://support.industry.siemens.com/cs/ww/en/view/109482346
MotSpdCL
Block for controlling the motor with
Two directions of rotation (right/left rotation)
Various speeds
Sheet 2
Siemens AG 2017 All rights reserved
Event16Ts
Message block for the generation of acknowledgment messages for time-stamped signals.
In this application example, all the status and error messages of the actual value
data word 6 "PZD 6" are read and reported.
The error number output by the "FbDrive" channel block (in hex format) at the
"MsgNamur" output is converted into a message text via the preconfigured NAMUR
message list and displayed in the OS runtime through the "Event16Ts" block.
NAMUR messages
In order to obtain the preconfigured NAMUR messages of the solution template at the
"PZDOut1" output of the "FbDrive" block, the Feature Bit 28 = 0 must be set.
If the Feature Bit 28 = 0 is set, the messages are read as a freely configurable
process value.
The feature bit is only used if telegram type 20 and the parameter "PZD6" are enabled.
Note The Solution Template is available for download on the article page of this
application example: "SINA_S120_lib.zip":
https://support.industry.siemens.com/cs/ww/en/view/109750296
Requirements
Hardware configuration completed and loaded in the AS
Symbol table edited
Device names assigned
Drive system configured according to NAMUR guidelines
Procedure
Siemens AG 2017 All rights reserved
1. Copy the CMT "DRIVE_SINAS120" from the example project and paste it into
the master data library of your project.
2. Copy the CMT from the master data library into the provided hierarchy folder
(in this application example: "Function") and adjust the name of the CMT.
3. Open the CFC and connect input "PZDIn1" on the "FbDrive" block with the first
input word (here: IW512_M1).
5. Enter the value "20" in the "Telegram" input of the "FbDrive" block.
6. Adjust the scaling of the following inputs to match the parameters of your drive:
a. Current
b. Torque
c. Power
You can take the scaling conversion index of the parameterization software
(e. g. Starter).
For instance, if the conversion index is -2, you have to multiply the normalized
value by 10−2, e. g. 16384.0 ∙ 10−2 = 163.84 (for a resolution of 14 Bit)
The setpoint is specified in percent. You can adapt the setpoint specification to
your drive's assigned parameter.
NOTICE The scaling has to match the parametrized scaling value of the unit.
Otherwise the drive system can not be controlled correctly via the OS
Runtime.
7 OS runtime
The faceplate and block icon of the Solution Template are generated automatically
after the OS is compiled.
Error messages
The error messages are forwarded from the channel block to the motor block.
The motor block allows the error messages to be displayed both in the motor
symbol and in the faceplate of the OS runtime.
The "FbDrive" channel block evaluates the error and outputs the number of the
corresponding Namur message. The preconfigured message is displayed on the
OS runtime via the block "Event16T".
Siemens AG 2017 All rights reserved
8 Appendix
8.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 send queries to Technical Support via Web form:
www.siemens.com/industry/supportrequest
Service offer
Siemens AG 2017 All rights reserved