Sinamics G: Axis Positioning With The SINA - POS Block
Sinamics G: Axis Positioning With The SINA - POS Block
Sinamics G: Axis Positioning With The SINA - POS Block
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
Table of contents
Warranty and liability ................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Requirements of the application example ............................................ 4
2 Engineering ........................................................................................................ 5
2.1 Overview............................................................................................... 5
2.2 Description of the core functionality ..................................................... 6
2.3 Hardware and software components ................................................... 6
3 Function Principle of the Application Example .............................................. 8
3.1 Data exchange to the SINAMICS drive ................................................ 8
3.2 SINA_POS function block .................................................................... 9
3.3 Safe Torque Off (STO) ....................................................................... 13
3.3.1 STO via digital inputs ......................................................................... 13
3.3.2 STO as per SIL 3 with power module PM240-2 ................................. 14
4 Configuration and Settings............................................................................. 15
4.1 Creating the project configuration ...................................................... 15
4.2 Commissioning the SINAMICS drive ................................................. 18
4.3 Basic positioner .................................................................................. 22
4.4 Configuring the S7 program ............................................................... 23
Siemens AG 2017 All rights reserved
1 Introduction
1.1 Overview
The SIMATIC S7-1200 can be operated as a PROFINET controller. For this, the
PROFINET-capable SINAMICS G120 drive can be used as PROFINET device and
be controlled by SIMATIC S7-1200.
This application example specifies a setpoint position for a SINAMICS G120 drive.
The drive will then move to the setpoint position using the basic positioner (EPos)
function.
PROFINET IE
2 Engineering
This application example shows the PROFINET connection of a SINAMICS G120
to a SIMATIC S7-1215C with SINAMICS Startdrive. The "SINA_POS" block is used
for controlling and positioning the drive.
2.1 Overview
Schematic layout
The figure below shows a schematic overview of the most important components of
the solution:
Figure 2-1: Interconnection of the components
SINAMICS G120
CU250S-2 PN
PROFINET IE
PG/PC
Advantages
The use of the standard block “SINA_POS” offers a quick and simple option to
control and position the SINAMICS drive.
Assumed knowledge
Basic knowledge of the TIA Portal and Startdrive is assumed.
However, they can be modified at any time. Which process data are exchanged
between SIMATIC controller and SINAMICS drive is specified by the frame type (in
the example: standard telegram 111). The telegram type is also configured in the
hardware configuration.
Data exchange
Data exchange between SINAMICS G120 and SIMATIC S7-1200 is done with the
“SINA_POS” block in the process data range. Process data is transferred cyclically,
which means in each bus cycle.
Positioning
Siemens AG 2017 All rights reserved
The axis of the SINAMICS drive is positioned using only the "SINA_POS" standard
block. This standard block uses the basic positioning function (EPos) configured in
the drive.
Hardware components
Table 2-1: Hardware components
Component Qty. Article number Note
SIMATIC CPU 1215C 1 6ES7215-1AG40-0XB0 Alternatively, you can also use
DC/DC/DC a different CPU.
(FW 4.2.1)
SINAMICS CU250S-2 1 6SL3246-0BA22-1FA0 -
PN Vector (FW 4.7.6)
SINAMICS PM240-2 1 6SL3210-1PB13-0ULx -
IP20
Asynchronous motor 1 1LA7060-4AB10-Z Alternatively, you can use a
different asynchronous motor.
HTL speed encoder 1 1XP8001-1 -
SIMATIC Panel 1 6AV2123-2GB03-0AX0 The panel is optional.
KTP700 Basic PN
PROFINET lines - 6XV1840-2AH10 -
PROFINET connector 6 6GK1901-1BB10-2AA0 -
Software components
Table 2-2: Software components
Component Qty. Article number Note
STEP 7 1 6ES7822-1..04-.. -
Professional V14
WinCC Advanced 1 6AV210.-….4-0 -
V14
SINAMICS Startdrive 1 6SL3072-4EA02-0XG0 -
V14
License for the Basic 1 6SL3054-4AG00-2AA0- with memory card
positioner Z E01
SINA_POS InstSinaPos
Main [OB1]
[FB 284] [DB 284]
DPWR_DAT
DPRD_DAT
Siemens AG 2017 All rights reserved
These instructions ensure that the consistency is maintained across the entire
process data, i.e. all elements of the process data of a device are from the same
bus cycle or are transferred within a bus cycle.
Note For more information on the commands DPWR_DAT and DPRD_DAT refer to
the Online Help of the TIA Portal.
Note The “SINA_POS” block and its documentation is contained in the “DriveLib”
library.
https://support.industry.siemens.com/cs/ww/en/view/109475044
Block call
The “SINA_POS” block can be called in the following organization blocks (OBs):
Cyclic task: OB1
Interrupt OB: for example OB32
DWORD ConfigEPos
HW_IO HWIDSTW
HW_IO HWIDZSW
Block parameters
The following table lists the input and output parameter of the “SINA_POS” block.
Table 3-3: "SINA_POS" input parameters
Name Type Start value Function
ModePos INT 0 Operating mode:
1: Positioning, relative
2: Positioning, absolute
3: Positioning as setup
4: Homing – reference point approach
5: Homing – reference point definition
6: Traversing block
7: Jog mode
8: Jog mode, incremental
EnableAxis BOOL FALSE Start/stop the drive
CancelTraversing BOOL TRUE FALSE: discard active positioning job
TRUE: do not discard
IntermediateStop BOOL TRUE FALSE: active move command is
interrupted
TRUE: no intermediate stop
Positive BOOL FALSE positive direction
Telegram slot
The block inputs HWIDSTW and HWIDZSW must reference to the hardware ID of
the standard telegram.
When using a PROFINET connection between the SIMATIC controller and the
SINAMICS G120 drive, the same hardware ID must be configured for block inputs
HWIDSTW and HWIDZSW.
Note For more information on the “SINA_POS” block and its function refer to the
Online Help of the TIA Portal or to the “DriveLib” documentation.
https://support.industry.siemens.com/cs/ww/en/view/109475044
2
Siemens AG 2017 All rights reserved
The converter with the “Safe Torque Off” (STO) function active prevents the
unwanted startup of machine components. This safety function can be configured
with specific digital inputs for a SINAMICS G120 drive with a control unit with safety
function. To do this, the safety functions must be enabled in the control unit.
Note A detailed description of the configuration of the safety function STO using digital
inputs can be found in the application example “SINAMICS G: Speed Control of
a G110M / G120 (Startdrive) with S7-1500 (TO) via PROFINET or PROFIBUS
with Safety Integrated (via Terminal) and HMI”.
https://support.industry.siemens.com/cs/ww/en/view/78788716
If the drive is run with EPOS and the STO function is active, the drive can show the
alarm message F07490 (EPOS: Enable signal withdrawn while traversing).
The PM240-2 power modules in sizes FSD, FSE and FSF can be used to realize
the “Safe Torque Off” (STO) according to PLe as per EN 13849-1 and according to
SIL 3 as per IEC61508. Two terminal blocks (STO_A and STO_B) and two Dip
switches are available on the front side of the power module.
Note More information on how to use the STO safety function as per SIL 3 with the
PM240-2 power module can be found in the “SINAMICS G120 power module
PM240-2” manual.
https://support.industry.siemens.com/cs/ww/en/view/109482011
Siemens AG 2017 All rights reserved
Note Information on the configuration and commissioning of drives can be found in the
TIA Portal online help.
item.
Note A description of the basic positioner can be found in the Function Manual
"SINAMICS G120, Basic Positioner (EPos) for CU250-2 Control Units".
https://support.industry.siemens.com/cs/ww/en/view/109483005
When the drive is configured, some settings of the basic positioner can be made in
the functional view of the drive parameters.
Note Useful support on the setting options of the basic positioner under Startdrive can
be found in the TIA Portal online help.
3AC 400V
L1
L2
L3
N
PE
DC 24V
L1 L2 L3 PE
SINAMICS
PM 240-2 M L+
SIMATIC S7
SINAMICS CPU 1215C
PN PN
CU 250S-2 PN
33 ENC+
79 GND
70 AP DC 24V
71 AN
Siemens AG 2017 All rights reserved
72 BP
73 BN
74 ZP M L+
75 ZN SIMATIC Panel
PN PN KTP700
(optional)
U2 V2 W2 PN
Note The setup guidelines for SINAMICS drives and SIMATIC controllers must
generally be followed.
When no connection is established to the drive, assign the drive the IP address and the device
name. To do so, proceed as described in chapter 4.2.
You have to set the correct IP address in the SIMATIC HMI in order to load successfully.
Information on how to enter the network settings of the HMI can be found in the user manual \7\.
Siemens AG 2017 All rights reserved
Startbild
Siemens AG 2017 All rights reserved
When activating the SIMATIC HMI or the simulation, the start screen is first
displayed.
Figure 6-3: Start screen
Siemens AG 2017 All rights reserved
A navigation bar is located on the right side of the screen. It is used to go to more
operator screens.
Table 6-1: Buttons in the navigation bar
Operation Action
Switch between German and English
The operation of the "SINA_POS" function block is divided into four operator
screens. These are used to control or supply the inputs and outputs of the block.
Note A detailed description of the inputs and outputs of the block can be found in
chapter 3.2 or in the TIA online help.
The block inputs with BOOLEAN data type are displayed on the left edge of the
operator screen. Active inputs are highlighted in green here.
The middle of the operator screen displays the required analog values:
Pre-selected and current mode of the block
Setpoint and actual velocity of the axis
Setpoint and actual position of the axis
The block outputs with BOOLEAN data type are displayed on the right edge of the
operator screen. Active outputs are highlighted with colors:
Status in green
Faults in red
Warnings in orange
Delay override
The system functions of the HMI can be accessed in the “System” operator screen.
Figure 6-8: “System” operator screen
Siemens AG 2017 All rights reserved
The “Support” operator screen contains information on the service range of the
Siemens Industry Online Support.
Active faults and warnings are indicated by a color marking of the respective block
outputs.
Figure 6-10: Display of faults
If a fault is active, a red bar on the bottom edge is displayed in all operator screens
of the "SINA_POS" block.
The current fault and warning numbers can be found in the "Info" operator screen.
7 Appendix
7.1 Service and Support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers access to our entire service and support
know-how and portfolio around the clock.
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 fast and competent support
regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send your
queries to the Technical Support via the web form:
www.siemens.com/industry/supportrequest
Service offer
Siemens AG 2017 All rights reserved
List manual
https://support.industry.siemens.com/cs/ww/en/view/109482977
\4\ SINAMICS G120 Power Module PM240-2
https://support.industry.siemens.com/cs/ww/en/view/109482011
\5\ Speed Control of a G110M / G120 (Startdrive) with S7-1500 (TO) via PROFINET or
PROFIBUS with Safety Integrated (via Terminal) and HMI
https://support.industry.siemens.com/cs/ww/en/view/78788716
\6\ SIMATIC S7-1200 System Manual
https://support.industry.siemens.com/cs/ww/en/view/109478121
\7\ SIMATIC HMI Operating Instructions
https://support.industry.siemens.com/cs/ww/en/view/90114350
\8\ SIMATIC G120 EPOS Function Manual
https://support.industry.siemens.com/cs/ww/en/view/109483005