Professional Documents
Culture Documents
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2020 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the 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 constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.
List of contents
Legal information ......................................................................................................... 2
1 Overview ............................................................................................................. 4
2 Telegrams ........................................................................................................... 5
3 Reference Scaling Parameters ....................................................................... 17
4 Startdrive Configuration ................................................................................. 18
5 Download to the drive ..................................................................................... 33
6 Motor Identification ......................................................................................... 35
7 Create New Project with Rockwell Software Studio 5000 ........................... 41
8 Rockwell Automation EDS Wizard ................................................................. 46
9 Add a Siemens Drive to the Ethernet Network ............................................. 54
10 Import Add-On Instruction .............................................................................. 58
11 Configure IP Address for a Rockwell Controller .......................................... 60
12 Configure RSLinx Communications for a Rockwell Controller .................. 66
13 Insert a Rung for the Add-On Instruction...................................................... 70
14 Controlling the Siemens Drive ....................................................................... 75
© Siemens AG 2020 All rights reserved
1 Overview
Scope:
This document will explain how to integrate Siemens drives into Rockwell Automations Studio
5000 software. This document will illustrate how to add Electronic Data Sheet (EDS) file, add a
Siemens drive to the Ethernet/IP network, import Add-On Instructions, and create a routine for
the Add-On instruction to an existing Studio 5000 PLC program. This document will illustrate
how to import global objects, displays, alarms, and warnings into a FactoryTalk View Machine
Edition HMI application.
This document includes commonly used Siemens telegrams along with additional speed control
telegrams for unique applications.
Components Used:
Hardware:
Rockwell Automations CompactLogix 5370 Controller 1769-L16ER-BB1B
Siemens G120 CU250S-2 PN V4.7 SP10
Software:
Rockwell Automations Studio 5000 V30 and FactoryTalk View Studio Machine Edition V10.0
© Siemens AG 2020 All rights reserved
Startdrive V16.1
BootP DHCP Ethernet/IP Commissioning Tool V3.02.00
RSLinx V4.00.00 CPR 9 SR 10.0
2 Telegrams
What is a Telegram? Telegrams are universal blocks of data that organize parameters and
functions into a uniform consistent format that all Siemens drives can use to pass data to the
PLC. They are organized into 16-bit process words (abbreviated as PZD) that contain relevant
information such as control words, status words, and setpoints. Most telegrams have a control
word, status word, speed setpoint, and speed feedback word in common.
© Siemens AG 2020 All rights reserved
A telegram is easily selected within the programming platform by loading the correct electronic
data sheet (EDS) file.
Telegram 352 for Vector Speed Control, Speed Setpoint, and Diagnostics:
Telegram 352 is a standard Siemens telegram of 6 words in length for speed control with
VECTOR Drive Objects. This telegram cannot be used with SERVO Drive Objects. This
telegram offers four optional User Defined Control Setpoints, and four added status words
returning to the PLC for Current, Torque, Warnings, and Faults.
DriveStatus4 Alarm Code - The most recent alarm code is displayed. 0 = No alarm Integer p2132
present. (WARN_CODE)
DriveStatus5 Fault Code - The oldest fault code is displayed. 0 = No fault present. Integer p2131
(ALARM_CODE)
Telegram 350 for Speed Setpoint (16-bit), Speed Feedback, Current Feedback, and
Torque Limit:
This telegram is a standard Siemens telegram of 4 words in length. The drive is controlled
through two control words and a speed setpoint. In the output image, speed and current
feedback are available. Scaling of the upper torque limit to limit the speed controller output can
be controlled in the input image.
Data from the Drive to the PLC – Drive Status Word Individual Bits:
reference cam 2
Status Value 4 complete r2051[4]
8 Measuring Probe 1 1 = Measuring probe 1 deflected Bool
Deflection Status 0 = Measuring probe 1 not deflected r2051[4]
9 Measuring Probe 2 1 = Measuring probe 2 deflected Bool
Deflection Status 0 = Measuring probe 2 not deflected r2051[4]
10 1 = Encoder 1 on Bool
Encoder 1 Status 0 = Encoder 1 off r2051[4]
11 Acknowledge 1 = Acknowledge encoder fault is active Bool r2051[4]
12 1 = Encoder 1 on Bool
Encoder 1 Status 0 = Encoder 1 off r2051[4]
13 1 = Actual position displayed in r0483 Bool
0 = No value displayed
r0483[0] displays the encoder position value
Cyclic Absolute Value r0483[1] displays the encoder fault number if a fault is
Status present. r2051[4]
14 1 = Encoder is parked Bool
Parking Status 0 = Encoder is not parked r2051[4]
15 1 = Encoder indicates its fault type in r0483 Bool
Fault Status 0 = No fault r2051[4]
Data from the PLC to the Drive – Drive Control Word Individual Bits:
4 Startdrive Configuration
Create a New Project: Launch TIA Portal or Startdrive. For this example, TIA Portal is being
used. Create New Project. Assign Project Name. Select Path. Click Create.
Type of the PG/PC interface: Select the appropriate interface for your application from the
pulldown. For this example, PN/IE will be used.
PG/PC interface: Select the appropriate interface for the application from the pulldown. For this
example, Intel® I210 Gigabit Network Connection will be used.
Select the appropriate drive. Click Start search. Click Show.
Assign IP address: Double click Online & Diagnostics. Expand Functions. Click Assign IP
address. Enter IP address. Enter Subnet mask. Click Assign IP address.
Upload device as new station: Right click the desired drive. Click Upload device as new
station.
© Siemens AG 2020 All rights reserved
Commission the Drive: Expand the desired drive from the Project tree. Double click
Commissioning. Click Commissioning Wizard.
Application class:
You can set the application class in the wizard function in the configuration. Select one of the
following classes:
Standard Drive Control: The same performance such as U/f with FCC and slip compensation
/ speed accuracy is only restricted. There is therefore no speed controller and no torque
accuracy. Two rating plate parameters are required for the motor commissioning: Rated current
and rated speed. The synchronous rated speed is accepted. The motor data identification is
preset. A short measurement is performed once (only stator resistance, dead time
compensation) to improve the start-up. This is followed by a direct switchover to operation. The
optimization of the speed controller is not relevant.
Dynamic Drive Control: Compared to Standard Drive Control, the performance such as
sensorless vector control / speed accuracy is significantly improved. The robustness is
improved with higher model change limits but takes effect at slow reversing. Three rating plate
parameters are required for the motor commissioning: Rated current, rated power and rated
speed. The motor data identification is preset and serves to simplify and shorten the
measurement compared with the existing standstill measurement. This is followed by a direct
switchover to operation. In the speed controller optimization, there is a shorter measurement of
the moment of inertia / magnetizing current with direct transition to operation and the setpoint
speed defined by the user.
Expert: The Expert functions include the Standard Drive Control and Dynamic Drive Control
functions.
Select the appropriate application class for the drive from the pulldown. For this example, [1]
Standard Drive Control (SDC) is selected. Click Next.
© Siemens AG 2020 All rights reserved
Setpoint specification: Selection if the drive is connected to a PLC and where the
setpoint is to be created.
Select the appropriate controller connection and the setpoint specification. For this example,
data exchange from the PLC to the drive (Ramp function in the drive) will be used. Click Next.
© Siemens AG 2020 All rights reserved
Further functions: Select the appropriate function modules for the drive. For this example;
Telegram 352 will be used. Click Next.
Motor holding brake: Select Motor holding brake configuration from pull down. For this
example, [0] No motor holding brake available. Click Next.
Synchronization of the speed of the drive with the speed of the PLC:
Enter Reference speed: p2000. Sets reference quantity for speed and frequency.
Enter Maximum speed: p1082[0]. Sets the highest possible speed.
Configuration of ramp up and ramp down time:
Enter Ramp up time: p1120[0]. The ramp-function generator ramps-up the speed setpoint from
standstill (setpoint = 0) up to the maximum speed (p1082) in this time.
Enter OFF1 ramp down time: p1121[0]. The ramp-function generator ramps-down the speed
setpoint from the maximum speed (p1082) down to standstill (setpoint = 0) in this time.
Enter OFF3 (quick stop) ramp down time: Sets the ramp-down time from the maximum speed
down to zero speed for the OFF3 command.
Configuration of the current limit:
Enter current limit: p640[0]. Sets the current limit.
Click Next.
Click Load.
6 Motor Identification
Expand the desired drive from the Project tree. Select the appropriate drive. Double click
Commissioning. Click Control panel.
© Siemens AG 2020 All rights reserved
Click Accept.
© Siemens AG 2020 All rights reserved
If required, set Drive enables. Click Forward. Repeat until motor measurement drive status is
invisible.
Click Accept.
© Siemens AG 2020 All rights reserved
Click Parameter View. Scroll down to p2030. Select [10] Ethernet/IP from the pulldown.
User Defined Parameter List: Click create new user defined parameter list.
Type the following parameters: 922, 2030, 8980, 2000, 2001, 2002, 2003, 2004, 1820. These
are a few useful parameters. Click Save.
Click Yes.
© Siemens AG 2020 All rights reserved
Click Go offline:
Reboot drive.
© Siemens AG 2020 All rights reserved
Click Next.
Select revision from pulldown. If applicable, select expansion IO from pulldown. Click Finish.
Options - What task do you want to complete? Select Register an EDS file(s). This option will
add a device(s) to our database. To continue, Click Next.
© Siemens AG 2020 All rights reserved
Registration – Electronic Data Sheet file(s) will be added to your system for use in Rockwell
Automation applications. Select Register a directory of EDS files and check Look in subfolders.
Click Browse.
Browse to the folder where the EDS files are located. Select All EDS Files (this is the folder
where all EDS files for a Siemens G drive resides) folder. Click OK.
Click Next.
EDS File Installation Test Results – This test evaluates each EDS file for errors in the EDS file.
This test does not guarantee EDS file validity. If the installation test results have a green check
mark, click Next.
Change Graphic Image – You can change the graphic image that is associated with a device.
To continue, click Next.
Final Task Summary – This is a review of the task you want to complete. You would like to
register the following device. To continue, click Next.
© Siemens AG 2020 All rights reserved
You have successfully completed the EDS Wizard. To continue, click Finish.
In the “Select Module Type” window, type T352 into the search bar. The results should show
Siemens G Drive – T352. Another option would be to deselect Module Type Vendor Filters and
scroll down to Siemens AG, select Siemens AG. Select Siemens G Drive – T352. Select Close
on Create. To continue, click Create.
Assign a Name for the New Module. Assign the IP Address. Click Change.
© Siemens AG 2020 All rights reserved
Select Disable Keying in the Electronic Keying Dropdown. Select the connections size data
type as INT. Click OK.
Click OK.
You have completed adding an Ethernet module to control a Siemens drive by using Telegram
352.
Click OK.
Select the proper Ethernet adapter through which the PC is connected to the PLC. Click OK.
Click OK.
Click OK.
Double click the MAC address. Assign the Client IP Address. Click OK.
Select the device in the lower section. Click Disable BOOTP/DHCP. The IP address has been
successfully assigned to the controller. Close software.
Click Close.
Expand the newly created driver. The PC is communicating with the processor.
© Siemens AG 2020 All rights reserved
Double click DriveStatus (data from the drive to the PLC). Click pulldown. Expand Drive_01:I
(Drive_01 was the name assigned to the drive when it was added to the IO Configuration).
Double click Drive_01:I.Data. Press Enter.
Click pulldown for DriveControl (data from the PLC to the drive). Expand Drive_01:O (Drive_01
was the name assigned to the drive when it was added to the IO Configuration). Double click
Drive_01:O.Data. Press Enter.
© Siemens AG 2020 All rights reserved
The next fields in the AOI can be assigned with an Integer value.
Reference_Speed_P2000 = p2000 (Reference speed reference frequency)
Reference_Current_P2002 = p2002 (Reference current)
Reference_Torque_P2003 = p2003 (Reference torque)
The units for actual speed is RPM. A conversion would be required to display the actual speed
in a different unit.
Acknowledge Fault:
DriveControl0_FaultAcknowledge = 1
Click Yes.
Click Add. Assign shortcut name. Press Enter. Select the appropriate controller. Click Apply.
Click Yes.
© Siemens AG 2020 All rights reserved
Click Yes.
© Siemens AG 2020 All rights reserved
Click OK.
Click Finish.
Exit Notepad.
Click Finish.
Exit Notepad.
Expand Graphics. Expand Displays. Select desired display. Right click on the display. Click
Paste.
Click Tag.
Select Refresh All Folders. Expand device shortcut. Expand Online. Select the appropriate
controller tag. Click OK.
Click OK.
You have completed adding a GOTO button for Siemens Telegram 352.
Click Browse.
Click Finish.
© Siemens AG 2020 All rights reserved
Exit Notepad.
Based on the controller tag name for the Add-On instruction, the triggers for the alarms may
need to be Edited. Select the appropriate tag. Click Edit.
Click Tag.
Click OK.
23 Test Application
Click Application. Click Test Application.
Click Motor.
© Siemens AG 2020 All rights reserved
If DriveControl0_DriveEnable is energized from the external code, the Drive Enable Override
button will be invisible. Click Manual.
The motor ramps to 250 RPM’s in the Forward direction based on the Acceleration rate.
Click Forward. The motor ramps to -250 RPM’s in the Reverse direction based on the
Deceleration rate.
Click Stop. The drive performs a Stop based on the Deceleration rate.
Click Reverse. Click Start. The motor ramps to 250 RPM’s in the Forward direction based on
the Acceleration rate.
Click Auto. The drive performs a Stop based on the Deceleration rate.
Click Manual. Click Start. The motor ramps to 250 RPM’s in the Forward direction based on the
Acceleration rate.
Click Close. The drive performs a Stop based on the Deceleration rate. The display closes and
goes to the display where the motor is located.
Click motor. Click Manual. Click Start. The motor ramps to 250 RPM’s in the Forward direction
based on the Acceleration rate.
Remove the Ethernet cable from the PanelView Plus terminal. The drive performs a Stop based
on the Deceleration rate.
Click Status. Status Word: Data from the drive to the PLC. Control Word: Data from the PLC
to the drive.
© Siemens AG 2020 All rights reserved
Click Faults. Click Acknowledge Faults to reset all active alarms. A warning is cleared when
the drives Run Command is activated. If active, a Fault Code or Warning Code with appropriate
description will be displayed.
24 Transfer Utility
Click Application. Click Create Runtime Application.
Create Runtime Application: Save the file to the desired folder. Enter file name. Select type
from the pulldown. Click Always Allow Conversion. Click Save.
© Siemens AG 2020 All rights reserved
Click Download. Browse to select source file. Select destination storage from the pulldown.
© Siemens AG 2020 All rights reserved
Select Run Application at Startup. Select Replace Communications and Delete Log files when
application runs. Select the appropriate PanelView terminal. Click Download.
Click OK.
Click Exit.
© Siemens AG 2020 All rights reserved
Select the type of firmware upgrade to perform: Click Upgrade firmware on terminal. Click
Next.
Click Yes.
Select the type of connection to the terminal: Click Network connection. Click Next.
Firmware source folder: Leave as default. Upgrade firmware version: Select the appropriate
version from the pulldown. Click Next.
© Siemens AG 2020 All rights reserved
Select all the KEPServer drivers to be included in the firmware. Click Next.
Click Finish.
26 Appendix
26.1 Application Support
Siemens AG
Digital Industries
Factory Automation
Production Machines
DI FA PMA APC
Frauenauracher Str. 80
D-91056 Erlangen, Germany
mailto: tech.team.motioncontrol@siemens.com
https://support.industry.siemens.com
\2\ Link to this entry page of this application example
https://support.industry.siemens.com/cs/ww/en/109477746
\3\ Startdrive for commissioning G120
https://support.industry.siemens.com/cs/ww/en/view/109771710
\4\ Starter software for commissioning G120
https://support.industry.siemens.com/cs/ww/en/view/26233208
26.3 History
Table 26-2
Version Date Modification
V1.0 03/2020 First Version
V2.0 09/2020 Second Version
V2.0.1 10/2020 Manual optimized, no functional adaptions