Configuring Technology Objects With SIMATIC S7 1500
Configuring Technology Objects With SIMATIC S7 1500
Configuring Technology Objects With SIMATIC S7 1500
technology objects
with SIMATIC S7-1500
and SINAMICS S210 in
TIA Portal
Siemens
SINAMICS S210 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109749795 Support
Legal information
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 2023 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
under https://www.siemens.com/cert.
Table of contents
Legal information ......................................................................................................... 2
1 Task ..................................................................................................................... 4
2 Implementation of the task ............................................................................... 5
2.1 Applies to .............................................................................................. 5
2.2 Hardware and software components used........................................... 5
3 Basic information .............................................................................................. 7
3.1 Principle of operation of the user program ........................................... 7
3.2 Installation and commissioning .......................................................... 10
4 Configuration ................................................................................................... 11
4.1 Creating a new project ....................................................................... 11
4.2 Configuring the SIMATIC S7-1500 CPU ............................................ 12
4.3 Configuring the SINAMICS S210 drives ............................................ 16
4.4 Configuring the PROFINET connection ............................................. 19
4.4.1 Configure the PROFINET I/O connection .......................................... 19
4.4.2 Configure the topology ....................................................................... 19
4.4.3 Configure isochronous mode ............................................................. 20
5 Programming the application ......................................................................... 23
5.1 Configuring the technology objects .................................................... 23
© Siemens AG 2023 All rights reserved
1 Task
Introduction
SIMATIC S7-1500 CPUs support the linking of drives as speed axis, positioning
axis or synchronous axis via PROFINET. In TIA Portal, it is possible to control a
SINAMICS S210 drive in a TIA Portal program, operating it with Motion Control
instructions.
This application example uses two "SINAMICS S210" drives. The first runs as a
position-controlled drive. It functions as a leading axis for the second drive, which is
configured with synchronous operation.
PROFINET
SIMOTICS S-1FK2
Required knowledge
Basic knowledge of TIA Portal is assumed.
Hardware components
Table 2-1
Component Quantity Item number Note
SIMATIC S7-1500 1 6ES7517-3UP00-0AB0 V2.9
CPU 1517TF-3 PN/DP
SINAMICS S210 PN 200V 2 6SL3210-5HB10-1UF0 V5.2.3
SIMOTICS S-1FK2 motor 1 1FK2102-1AG00-0CA0 100 W
SIMOTICS S-1FK2 motor 1 1FK2102-1AG00-0DA0 100 W
Note Alternatively, any other SIMATIC S7-1500 CPU may be used to deploy this
application example.
3 Basic information
3.1 Principle of operation of the user program
S7-1500 Motion Control
S7-1500 Motion Control supports the controlled positioning and synchronous
operation of axes. It is an integral component of every S7-1500 CPU. The SIMATIC
S7-1500T Technology CPU offers additional technology objects.
The SIMATIC S7-1500(T) controllers support the following technology objects:
• Speed axis
• Positioning axis
• Synchronous axis
• External encoder
• Cam and cam track
• Cam (S7-1500T only)
• Kinematic system (S7-1500T only)
The axis control panel and comprehensive online and diagnostic functions support
commissioning and tuning of drives and technology objects.
© Siemens AG 2023 All rights reserved
This application example implements two axes: one "positioning axis" that acts as
a leading axis, and one "synchronous axis" that acts as a following axis.
Note The configuration of the "Positioning axis" and "Synchronous axis" technology objects is
described in chapter 5.1.
The Motion Control instructions for the leading axis are called in the
"MotionControl_Pos" function block (FB 1).
The Motion Control instructions for the following axis are called in the
"MotionControl_Syn" function block (FB 2).
Figure 3-2
© Siemens AG 2023 All rights reserved
4 Configuration
This section explains in detail the configurations for the SINAMICS S210 and the
S7-1500 CPU in TIA Portal.
2. Select the controller you are using and confirm with "OK":
4. For the test project, uncheck the box "Only allow secure PG/PC In the test project, it
and HMI communication": is permissible to
© Siemens AG 2023 All rights reserved
6. Open the Device view of the SIMATIC S7-1500 CPU and then
open the controller's Properties window:
© Siemens AG 2023 All rights reserved
Note The default settings of the S7-1500 may be used for this application example. No
further configuration is necessary.
© Siemens AG 2023 All rights reserved
2. In the list, select the drive you are using. Confirm with "OK".
"Left" drive:
192.168.0.2
255.255.255.0
"left"
"Right" drive:
192.168.0.3
255.255.255.0
"right"
After the two SINAMICS S210 PN and the S7-1500 CPU are configured, a
PROFINET connection must be assigned:
In the network view, click "Not assigned" and select "PLC_1.PROFINET
Interface_1":
Figure 4-1
Figure 4-2
© Siemens AG 2023 All rights reserved
After the network connection for both of the SINAMICS S210 PN and the S7-1500
CPU, configure the topology as follows:
2. Configure the topology to match the wiring using drag-and- The topology
drop: configures the ports
of the interfaces via
which the devices
connect to each
other, establishing
an isochronous
connection.
To ensure seamless operation of the drives, they must be run off the SIMATIC S7-
1500 is isochronous mode. Perform the following steps to configure isochronous
mode:
4. Assign the drive telegrams to the "MC_Servo" block by first If the organization
clicking the button next to the "Organization blocks" field and block "MC-Servo"
then clicking "Add new": has already been
created on the
controller, it can be
selected straight
from the list. In this
© Siemens AG 2023 All rights reserved
5. In the "Add new block" dialog, select the organization block The organization
MC-Servo. Untick the box next to "Add new and open" and block "MC-Servo" is
confirm with "OK": created on the
SIMATIC S7-1500
controller and
selected as
organization block
for the process
image of the drive
telegrams.
4. Under "Data exchange with the drive" and "Data exchange with the Automatically
encoder", verify that values are automatically applied from the drive. applying values
This ensures that the drive data are automatically applied to the reads data relevant
© Siemens AG 2023 All rights reserved
Encoder:
6. Select the option "Synchronous to the bus" and then "PROFINET Note:
IO-System (100)" as the Source of the send clock: These settings
cause the
organization block
"MC_Servo" to run
in sync with the
isochronous
PROFINET I/O
system.
Table 5-1
No. Action Comments
1. Add a new function block by clicking in the project tree on "Add new
block":
© Siemens AG 2023 All rights reserved
4. Add the desired instructions to the function block as multiple Note: This example
© Siemens AG 2023 All rights reserved
instances. To do this, drag and drop the respective instruction into a uses the following
network of the function block: instructions:
• MC_Power
• MC_Reset
• MC_Home
• MC_Halt
• MC_MoveRelative
• MC_MoveAbsolute
• MC_MoveJog
Table 5-2
No. Action Comments
1. Add another function block to the program, name it
"MotionControl_Sync" and confirm with "OK":
© Siemens AG 2023 All rights reserved
• MC_Power
• MC_Reset
• MC_Halt
• MC_GearIn
Table 5-3
No. Action Comments
1. Open the cyclic OB "Main [OB1]":
This example uses a watch table to monitor and control the drives.
Figure 5-2
© Siemens AG 2023 All rights reserved
6.3 Tuning
To improve the positioning accuracy of the technology objects, you should tune the
control on the drive and perform tuning on the technology object. The SINAMICS
S210 offers the "One Button Tuning" function that allows for easy tuning of the
drive's control behavior. The values obtained from "One Button Tuning" can then
be applied to the control structure of the technology object if desired. See the
sections below for the necessary steps.
To tune the control behavior of the drive, carry out the following steps for all drives
in the project:
2. Select the desired dynamic setting and the path limit during Caution:
tuning: Select the path limit so
that the motor is able to
move freely within the
limit. During tuning, the
motor will move in both
directions at up to 80% of
its maximum velocity.
Note:
For tips on choosing
dynamic settings, consult
the manual (see \4\).
Note:
The values that are
measured/calculated
during One Button Tuning
will be applied
straightaway to the drive
parameterization in online
mode.
To apply the values that were measured/calculated in "One Button Tuning" for the
control structure of the technology object, carry out the following steps for all
technology objects in the project:
4. Click on "Take values from drive" to read the values from the The "Tuning" screen lets
drive: you move the technology
© Siemens AG 2023 All rights reserved
5. Copy the values that were read from this drive. Then click on the
icon to the right of each field and paste the copied value as start
value in the project: Repeat this procedure for the Kv factor:
7 Examples in practice
© Siemens AG 2023 All rights reserved
Table 7-1
No. Action Comments
1. Go online and select "Monitor all" in the watch table: Once you have
selected this option,
the color of the
"Monitor value"
column will change
to orange.
2. Activate the "Left" drive with MC_Power by right-clicking on the value Keyboard
and selecting "Modify to 1": combinations can
be used to speed up
the process.
Ctrl+F3:
Change to 0
Ctrl+F2:
Change to 1
Shift+F9: Modify
now
5. Carry out the steps with the command "Modify to 1": Homing with the
Motion Control
instruction
"MC_Home" is not
© Siemens AG 2023 All rights reserved
necessary in order
to carry out relative
positioning with the
technology object.
6. Once the task is done, reset the command to "FALSE".
Table 7-2
No. Action Comments
1. Go online and select "Monitor all" in the watch table:
Ctrl+F3:
Change to 0
Ctrl+F2:
Change to 1
Shift+F9: Modify
now
3. Home the leading axis by setting the command to "TRUE": Any other desired
position can also be
specified in place of
0.
5. Write the desired values to the "Position" [mm] and "Velocity" [mm/s]
fields, then select "Modify now":
Table 7-3
No. Action Comments
1. Go online and select "Monitor all" in the watch table:
2. Activate the leading and following drive with MC_Power by right- Keyboard
clicking on the value and selecting "Modify to 1": combinations can
be used to speed up
the process.
Ctrl+F3:
Change to 0
Ctrl+F2:
Change to 1
Shift+F9: Modify
now
© Siemens AG 2023 All rights reserved
4. Write the desired speed value to the "Velocity" [mm/s] field and
then select "Modify now":
5. To start the JOG task with "JogForward" or "JogBackward", set JOG mode (Jog)
one of the commands to "TRUE": can only be
activated either in
forward or backward
direction at one
time.
6. To stop both motors, set the command to "FALSE":
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, application examples and videos
– all information is accessible with just a few mouse clicks:
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.
Please send queries to Technical Support via Web form:
siemens.com/SupportRequest
© Siemens AG 2023 All rights reserved
Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
support.industry.siemens.com/cs/sc
The Siemens Industry Mall is the platform on which the entire siemens Industry
product portfolio is accessible. From the selection of products to the order and the
delivery tracking, the Industry Mall enables the complete purchasing processing –
directly and independently of time and location:
mall.industry.siemens.com