Sinamics s120 at s7-300400 Short-Doku v11 en
Sinamics s120 at s7-300400 Short-Doku v11 en
Sinamics s120 at s7-300400 Short-Doku v11 en
SINAMICS S120
SIMATIC S7-300/400
Caution:
The functions and solutions described in this article are limited primarily to the
implementation of the automation task. Please also observe that in case of
networking your plant/system area with other parts of the plant, the company
network or the Internet, appropriate protective measures within the framework of
industrial security must be adopted. For more information, see the article ID
50203404.
http://support.automation.siemens.com/WW/view/de/50203404
You should also actively use our Technical Forum in the Siemens Industry Online
Support for this topic. Discuss your questions, suggestions or problems together
Siemens AG 2013 All rights reserved
References 4
Siemens shall not be held liable for the information provided in this document.
We accept no liability for any damage or loss caused by the examples, information,
programs, planning data, or performance data described in this application
example, irrespective of the legal basis for claims arising from such damage or
loss, unless liability is mandatory. For example, according to the product liability
law, in cases of malfeasance, gross negligence, due to endangerment of life, body
Siemens AG 2013 All rights reserved
Table of contents
Warranty and liability ............................................................................................... 4
1 Overview ......................................................................................................... 6
1.1 Preconditions..................................................................................... 6
2 Using the application ..................................................................................... 7
2.1 Preconditions..................................................................................... 7
2.2 Using the application via HMI............................................................. 7
2.2.1 Basic screen ...................................................................................... 7
2.2.2 Selecting the axis .............................................................................. 8
2.2.3 Start screen, basic positioner ............................................................. 8
2.2.4 Homing screen .................................................................................. 9
2.2.5 Jogging screen ................................................................................ 10
2.2.6 Traversing blocks screen ................................................................. 11
2.2.7 Direct setpoint specification / MDI .................................................... 14
2.3 Variable tables................................................................................. 16
2.3.1 Reading and writing traversing blocks .............................................. 17
2.3.2 Reading and writing drive parameters .............................................. 19
2.3.3 Reading out the fault memory .......................................................... 19
3 Functional mechanisms of this application ................................................ 20
3.1 SIMATIC functions........................................................................... 20
Siemens AG 2013 All rights reserved
5 History .......................................................................................................... 29
1 Overview
This brief documentation shows the operating control and function mechanisms of
the project sample: SINAMICS S: Positioning an S120 with S7-300/400 via
PROFIBUS/PROFINET in STEP 7 with Safety Integrated via terminal"
This brief documentation does not include any explanations and only shows the
essential points when operating and integrating blocks into your own projects
1.1 Preconditions
In order to use the blocks of the sample project, you require the following:
A SIMATIC S7-300/400
A SINAMICS S120 with two drive axes
SINAMICS S120 must be connected via PROFIBUS or PROFINET with the
SIMATIC S7-300/400.
Siemens AG 2013 All rights reserved
Copyright
2.1 Preconditions
In the project sample, basic safety functions are activated in SINAMICS.
In order to be able to switch on the SINAMICS S120, 24 V must be available at the
EP terminals of the motor module X21.3 and X22.3 as well as at the Control Unit
X122.1.
Otherwise, the pulses are inhibited.
Fig. 2-1
Siemens AG 2013 All rights reserved
Copyright
In all of the following screens, the axis can be selected in the topmost line. To the
right of the selection, the number of the axis DB of the selected axis is displayed.
All inputs and displays are only for the displayed axis.
Active faults and alarms of the SINAMICS S120 are displayed in the upper section
of the screen with number and in plain text.
The active operating modes of the basic positioner are displayed at the left.
The actual position and actual velocity of the basic positioner are displayed at the
right.
The screens for the operating modes can be called in the lower section. You can
return to the basic screen using the "Home symbol".
Absolute encoders, as in the example for SERVO_02, must be adjusted once after
Copyright
Homing
When using incremental encoders, SINAMICS S120 must be homed after each
warm restart. For SERVO_03, a reference point mark is parameterized for the
encoder zero mark.
Initiating the reference point approach:
Switch on the drive with "On". If SINAMICS S120 is switched on, then the button
has a green background.
Press "Start Homing" until "Reference point set" is lit.
Using the button "Set Reference point", the reference point can be set to the actual
position Xact.
Fig. 2-4
Siemens AG 2013 All rights reserved
Using the "Jog 1" and "Jog 2" buttons, the SINAMICS S120 is traversed with the
parameterized speed. Incremental jogging is selected by pressing the "Jogging
Copyright
incremental" button.
The SINAMICS S120 can be switched on and switched off using the "On" button.
"Xact" displays the actual position in LU
"Vact" displays the actual velocity in 1000 LU/min
Faults in the SINAMICS S120 are acknowledged using the "Ack" button.
Fig. 2-5
Siemens AG 2013 All rights reserved
The timing of the control and status signals of a traversing profile can be seen in
the following diagram. The traversing profile comprises individual traversing blocks.
Progressing (advancing) between the traversing blocks is "Continue with stop"
Fig. 2-6
Siemens AG 2013 All rights reserved
Copyright
Using the editor, traversing blocks can be read and written to using acyclic jobs.
Reading out traversing blocks:
Copyright
The index to be read out is set using the "-" and "+" buttons. The read request is
immediately started when one of the two buttons is pressed.
The data of the traversing block that has been read out is displayed in the
relevant fields.
Writing to a traversing block:
First, select the index into which the traversing block should be written. The
other data are then entered in the relevant fields.
The write job is started by pressing the "Write block" button.
Copying a traversing block:
Read out the traversing block to be copied. Enter the new index using the
screen keyboard, when doing this do not use the "-" or "+" buttons. The write job
is started by pressing the "Write block" button.
The drive parameters are backed up in the ROM of the SINAMICS S120 by
pressing the "Save drive" button.
The status of the acyclic job is displayed with "busy" and "done" and "error".
While an order has the status "busy", the buttons for initiating new orders are
hided.
Fig. 2-8
Siemens AG 2013 All rights reserved
In the MDI screen, the basic positioner can be operated in the MDI / direct setpoint
specification mode.
Copyright
For traversing motion, the "No intermediate stop" and "No reject task" must be
selected.
The positioning mode is set to either relative or absolute using the "relative" button.
Positioning or setting up is selected using the "Pos." button.
The setpoint transfer type is set to signal edge or continuous using the "Edge"
button.
The operating mode MDI/direct setpoint specification is activated using the
"MDI_selection button.
In the setting-up mode, the direction of rotation is specified using "pos." or "neg.".
The acceleration and deceleration override are specified in the "Acc." and "Dec."
fields.
For "Vset", the setpoint velocity is entered in 1000 LU/min.
For "Xset", the setpoint position is entered in LU.
The drive can be switched on and switched off using the "On" button.
Faults in the SINAMICS S120 are acknowledged using the "Ack" button.
For setpoint transfer with signal edge, positioning is started using the "Start" button.
"Xact" displays the actual position in LU
"Vact" displays the actual velocity in 1000 LU/min
The timing of the control and status signals for absolute positioning can be seen in
the following diagram. The setpoint is accepted with a positive signal edge of
"Setpoint acceptance".
Fig. 2-9
Siemens AG 2013 All rights reserved
Copyright
Fig. 2-10
Siemens AG 2013 All rights reserved
After changes are made in FB1, the block must be loaded into the SIMATIC S7-
300/400.
Copyright
Traversing blocks can be read out and written to acyclically using the variable
tables "VAT72_TVBsingle" and "VAT72_TVBblock".
You can use variable table VAT72_TVsingle to read or write a traversing block in
SINAMICS S120.
Copyright
Writing
Job "30000" must be located in DBW 16
The index of the traversing block is specified in DBW 18 (n+1)
The bits of DBW 134 are used to select which data should be transferred
The traversing block number is specified in DBW 136
The position setpoint is specified in DBD 138
The velocity setpoint is specified in DBD 142
The acceleration is specified in DBD 146
The deceleration is specified in DBD 150
The job of the traversing block is specified in DBW 154 (see the following
tables)
The job parameter is specified in DBD 156 (see the following tables)
The traversing block mode is specified in DBW 160 (see the following tables)
After all data has been written to the blocks, writing can be started with a
positive edge of DBX 14.1
Reading
Job "30000" must be located in DBW 16
The index of the traversing block is specified in DBW 18 (n+1)
The read job is started with a positive edge at DBX 14.0
The values are saved in the same data area as where they were saved for the
write job
1 = positioning
3 = endless_pos
4 = endless_neg
Further information in this regard may be found in the documentation of the FB283. /8/
Traversing blocks can be read out and written to acyclically using the variable
tables "VAT72_Parameter" and "VAT72_Para_1_10".
Further information in this regard may be found in the documentation of the FB283.
/8/
The fault memory of the SINAMICS S120 can be read out using the
"VAT72_Faultbuffer" variable table.
Further information in this regard may be found in the documentation of the FB283.
/8/
Siemens AG 2013 All rights reserved
Copyright
Fig. 3-1
Siemens AG 2013 All rights reserved
Copyright
So that the acyclic interface is executed only once at the same time, the busy
feedback of both axes will be checked in network 1. If an acyclic order is active at
an axis,the buttons for initiating new acyclic orders at the HMI become hided.
For every axis one instance DB from FB283 is generated. When calling the FB283,
the following data are specified for each axis:
Siemens AG 2013 All rights reserved
Note In this example, for the first axis "SERVO_02", the instance 283 and axis DB72
are used. For the second axis "SERVO_03" are used the instance DB284 and
DB172 as axis DB.
Start of the I/O address and diagnostics address is in HW Config.
Additional information about calling FB283 is provided in the block description.
/8/
Further, for individual special jobs, additional entries are required or outputs
Copyright
Actual velocity
The speed actual value is transferred, scaled. The scaled value is converted into
the actual velocity of the basic positioner in FB1.
To do this, when calling FB1, in addition to the number of the axis DB, the gearbox
ratio, the position actual value resolution and the reference speed of the SINAMICS
S120 must be specified.
Figure 3 4
gear factor
LU per load revolution in 1000LU
reference speed
axis-DB
Note The specified values must coincide with the parameters in the SINAMICS S120!
The gearbox ratio is determined by the ratio between parameters p2504 and
p2505.
The position actual value resolution is in parameter p2506.
The reference speed is in parameter p2000.
FC2 reads the DBW160 word of the axis DBs and writes the values into DB11.
FC3 reads the values from DB11, and writes them into word DBW160 of the axis
DB.
In addition, the following functions can be carried out using the basic positioner:
Mechanical system:
Backlash compensation
Modulo correction
Position tracking
Siemens AG 2013 All rights reserved
Copyright
Limits:
Velocity/acceleration/deceleration limits
Software limit switches (traversing range limitation using position setpoint
evaluation)
Stop cams (traversing range limitation using hardware limit switch evaluation)
Positioning/standstill monitoring
Following error monitoring
Two cam switching signals
3.2.2 Properties
EPOS has the following four operating modes (which can be toggled between for a
"stationary" axis):
Jogging (position controlled)
Homing
Traversing blocks
Direct setpoint specification/MDI
3.2.3.1 Jogging
This involves position-controlled traversing of an axis with two modes that can be
toggled between
1. Modes: Endless, position controlled with v set input (where the sign is
evaluated)
2. Modes: Incremental jog ( = where the axis is traversed through a
specified "increment")
In the two modes, two selectable setpoints are available (jog 1 / 2)
3.2.3.2 Homing
"Cam and encoder zero mark", "encoder zero mark" and "external zero mark
(Bero)"
"Set reference point" is also possible without travel. In this case, all operating
modes must be deselected.
Reversing cam functionality for the "cam and encoder zero mark" mode
The start direction for the reference point approach can be specified
Copyright
Different approach velocities can be specified ("to the cams", "to the reference
mark", "to the reference point"), e.g. to increase the precision for the reference
mark detection
Monitoring using maximum traversing distances/tolerance bands that can be
specified, e.g. to the cam, between the cams and zero mark, distance to the
zero mark
Automatic travel for "reference point offset" regarding the reference mark and
reference point coordinates that can be changed using BICO
Automatic direction of rotation reversal at the reference cams, which means
that, for example: Reversal cams or hardware limit switches (when Stop cam
functionality is deactivated) can be used as reference cams (this reduces
hardware costs)
(in the START direction, which can be specified, the zero mark in front of the
reference cam is valid as reference mark)
It supports positioning using traversing blocks saved in the device (for a homed
axis). It is also possible to write to the traversing blocks from the SIMATIC S7-
300/400 into the SINAMICS S120 and read these out.
Here, 64 traversing blocks are possible, including continue (advance) conditions
and specific jobs.
Properties:
User-friendly traversing block editor
Siemens AG 2013 All rights reserved
The traversing blocks can also be changed when a SINAMICS S120 is operational.
The changes are directly transferred the next time that the traversing block is
called.
Properties:
Positioning/setting up with direct setpoint specifications (e.g. process data of the
SIMATIC S7-300/400); continuous influence during traversing is also possible.
"Flying and continuous" setpoint transfer while an axis is moving is possible, i.e.
position, velocity setpoint and override, acceleration, deceleration, forced direction
of rotation specification can be changed during operation.
"Flying" change between the modes is possible while an axis is traversing:
Mode: Setting up (endless, closed-loop position controlled, v-set input)
Mode: Absolute/relative positioning (for modulo, also: specified direction of
rotation or the shortest path)
In this mode, also in the setting up or relative positioning mode, a non-referenced
axis can also be traversed.
Siemens AG 2013 All rights reserved
Copyright
4 References
This list does not purport to be complete and merely reflects a selection of suitable
information.
Table 41
Topic Title/link
/1/ Automation with STEP 7 in STL and SCL
Author: Hans Berger
Publicis MCD Verlag
ISBN: 978-3-89578-397-5
/2/ STEP 7 Automation with STEP 7 in LAD and FBD
SIMATIC S7 - Author: Hans Berger
300/400 Publicis MCD Verlag
ISBN: 978-3-89578-296-1
/3/ Reference manual
System and Standard Functions for S7-300/400 Volume 1/2
http://support.automation.siemens.com/WW/view/de/44240604
/4/ Reference to the http://support.automation.siemens.com/WW/view/de/67261457
article
/5/ Siemens Industry http://support.automation.siemens.com
Siemens AG 2013 All rights reserved
Online Support
/6/ STARTER http://support.automation.siemens.com/WW/view/de/26233208
/7/ SINAMICS SINAMICS S120 Getting Started:
S120 http://support.automation.siemens.com/WW/view/de/61604910
List Manual (parameter and error list):
http://support.automation.siemens.com/WW/view/de/49383082
Drive Functions Function Manual
http://support.automation.siemens.com/WW/view/de/59737625
Control Units and Additional System Components Manual
Copyright
http://support.automation.siemens.com/WW/view/de/59714694
Booksize Power Units Manual
http://support.automation.siemens.com/WW/view/de/59715084
Commissioning Manual
http://support.automation.siemens.com/WW/view/de/61616686
5 History
Table 51
Version Date Change
V1.0 04/2013 First edition
V1.1 09/2013 Locking of acyclic orders changed