Professional Documents
Culture Documents
Preface
Guide to documentation
___________________
S7-1500 / ET 200MP 1
___________________
Introduction 2
SIMATIC
___________________
Basics 3
S7-1500
S7-1500 Motion Control V13 ___________________
Guidelines 4
Update 3
___________________
Using versions 5
Function Manual
___________________
Configuring 6
___________________
Programming 7
___________________
Downloading to CPU 8
___________________
Commissioning 9
___________________
Diagnostics 10
___________________
Instructions 11
___________________
Appendix A
07/2014
A5E03879256-AC
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Conventions
● For the path settings in the project navigation it is presumed that the "Technology objects"
object is opened in the CPU subtree. The "Technology object" placeholder represents the
name of the technology object.
Example: "Technology object > Configuration > Basic parameters".
● The <TO> placeholder represents the name set in tags for the respective technology
object.
Example: <TO>.Actor.Type
● This documentation contains pictures of the devices described. The pictures may differ in
minor details from the devices supplied.
You should also observe the notes that are marked as follows:
Note
A note contains important information about the product described in the documentation,
about the handling of the product, and about sections in this documentation demanding your
particular attention.
Further support
● The range of technical documentation for the individual SIMATIC products and systems is
available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
● The online catalog and the online ordering system is available on the Internet
(http://mall.automation.siemens.com).
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, solutions, machines, equipment and/or networks. They are
important components in a holistic industrial security concept. With this in mind, Siemens’
products and solutions undergo continuous development. Siemens recommends strongly
that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable
preventive action (e.g. cell protection concept) and integrate each component into a holistic,
state-of-the-art industrial security concept. Third-party products that may be in use should
also be considered. You can find more information about industrial security on the Internet
(http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific
newsletter. You can find more information on the Internet
(http://support.automation.siemens.com).
Preface ...................................................................................................................................................... 3
1 Guide to documentation S7-1500 / ET 200MP......................................................................................... 13
2 Introduction .............................................................................................................................................. 15
2.1 Integrated Motion Control Functionality of the CPU S7-1500 ................................................15
2.2 Principle of operation of S7-1500 Motion Control ...................................................................16
3 Basics ...................................................................................................................................................... 20
3.1 Functions ................................................................................................................................20
3.2 Scale .......................................................................................................................................21
3.3 Speed-controlled axis technology object ................................................................................21
3.4 Positioning axis technology object ..........................................................................................22
3.5 Synchronous axis technology object ......................................................................................23
3.6 External encoder technology object........................................................................................25
3.7 Axis types ................................................................................................................................26
3.8 Modulo setting.........................................................................................................................26
3.9 Units of measure .....................................................................................................................27
3.10 Drive and encoder connection ................................................................................................28
3.10.1 Brief description ......................................................................................................................28
3.10.2 Frames ....................................................................................................................................29
3.10.3 Setting reference values .........................................................................................................31
3.10.4 Tags ........................................................................................................................................32
3.11 Safety functions in the drive ....................................................................................................33
3.11.1 Brief description ......................................................................................................................33
3.11.2 Safe Torque Off (STO) ...........................................................................................................33
3.11.3 Safe Stop 1 (SS1) ...................................................................................................................34
3.11.4 Safe Stop 2 (SS2) ...................................................................................................................34
3.12 Actual values...........................................................................................................................35
3.12.1 Brief description ......................................................................................................................35
3.12.2 Incremental actual value .........................................................................................................35
3.12.3 Absolute actual value ..............................................................................................................35
3.12.4 Tags ........................................................................................................................................36
3.13 Mechanics ...............................................................................................................................37
3.13.1 Brief description ......................................................................................................................37
3.13.2 Tags ........................................................................................................................................38
3.14 Homing ....................................................................................................................................39
3.14.1 Brief description ......................................................................................................................39
3.14.2 Terms ......................................................................................................................................40
3.14.3 Homing mode..........................................................................................................................41
3.14.4 Active homing with zero mark and proximity switch .............................................................. 43
3.14.5 Active homing with zero mark ................................................................................................ 46
3.14.6 Active homing with digital input .............................................................................................. 48
3.14.7 Passive homing with zero mark and proximity switch............................................................ 50
3.14.8 Passive homing with zero mark ............................................................................................. 52
3.14.9 Passive homing with digital input ........................................................................................... 54
3.14.10 Direction reversal at the hardware limit switch (reversing cam) ............................................ 55
3.14.11 Direct homing ......................................................................................................................... 56
3.14.12 Absolute value adjustment ..................................................................................................... 56
3.14.13 Resetting the "Homed" status ................................................................................................ 57
3.14.14 Tags ....................................................................................................................................... 58
3.15 Control.................................................................................................................................... 59
3.15.1 Brief description ..................................................................................................................... 59
3.15.2 Control structure..................................................................................................................... 60
3.15.3 Tags ....................................................................................................................................... 61
3.16 Position-related monitoring .................................................................................................... 61
3.16.1 Brief description ..................................................................................................................... 61
3.16.2 Positioning monitoring ............................................................................................................ 62
3.16.3 Following error monitoring ..................................................................................................... 63
3.16.4 Tags ....................................................................................................................................... 64
3.17 Traversing range limitation..................................................................................................... 65
3.17.1 Brief description ..................................................................................................................... 65
3.17.2 Hardware limit switches ......................................................................................................... 65
3.17.3 Software limit switch .............................................................................................................. 67
3.17.4 Tags ....................................................................................................................................... 68
3.18 Motion control and limits for dynamics ................................................................................... 69
3.18.1 Brief description ..................................................................................................................... 69
3.18.2 Velocity profile ........................................................................................................................ 70
3.18.3 Emergency stop deceleration ................................................................................................ 71
3.18.4 Tags ....................................................................................................................................... 72
3.19 Synchronous operation .......................................................................................................... 73
3.19.1 Brief description ..................................................................................................................... 73
3.19.2 Relative gearing ..................................................................................................................... 74
3.19.3 Master value coupling ............................................................................................................ 76
3.19.4 Tags ....................................................................................................................................... 77
3.20 Operational sequence ............................................................................................................ 78
3.20.1 Organization Blocks for Motion Control ................................................................................. 78
3.20.2 Process image partition "OB Servo PIP" ............................................................................... 80
3.20.3 Operational Sequence and Timeouts .................................................................................... 80
3.20.4 Operating modes ................................................................................................................... 83
4 Guidelines................................................................................................................................................ 85
4.1 Guidelines on use of motion control....................................................................................... 85
5 Using versions ......................................................................................................................................... 86
5.1 Overview of versions .............................................................................................................. 86
5.2 Changing a technology version.............................................................................................. 89
6 Configuring .............................................................................................................................................. 91
6.1 Adding and configuring drives in the device configuration .....................................................91
6.1.1 Add and configure PROFINET IO drives ................................................................................91
6.1.2 Add and configure PROFIBUS DP drives...............................................................................94
6.1.3 Adding and configuring drives with analog connections .........................................................96
6.2 Add technology object ............................................................................................................99
6.3 Working with the configuration editor....................................................................................100
6.4 Compare values ....................................................................................................................101
6.5 Configuring the Speed-Control Axis technology object ........................................................102
6.5.1 Configuration - Basic Parameters .........................................................................................102
6.5.2 Hardware interface................................................................................................................102
6.5.2.1 Configuration - Drive .............................................................................................................102
6.5.2.2 Configuration - Data exchange .............................................................................................104
6.5.3 Extended Parameters ...........................................................................................................105
6.5.3.1 Configuration - Mechanics ....................................................................................................105
6.5.3.2 Configuration - Dynamic limits ..............................................................................................105
6.5.3.3 Configuration - Dynamic Defaults .........................................................................................107
6.5.3.4 Configuration - Emergency stop ...........................................................................................109
6.6 Configuring the positioning axis/synchronous axis technology object..................................110
6.6.1 Configuration - Basic Parameters .........................................................................................110
6.6.2 Hardware interface................................................................................................................111
6.6.2.1 Configuration - Drive .............................................................................................................111
6.6.2.2 Configuration - Encoder ........................................................................................................113
6.6.2.3 Configuration - Data exchange .............................................................................................114
6.6.3 Configuration - master value interconnections (synchronous axis only) ..............................124
6.6.4 Extended Parameters ...........................................................................................................125
6.6.4.1 Configuration - Mechanics ....................................................................................................125
6.6.4.2 Configuration - Position monitoring.......................................................................................129
6.6.4.3 Configuration - Dynamic limits ..............................................................................................130
6.6.4.4 Configuration - Dynamic Defaults .........................................................................................132
6.6.4.5 Configuration - Emergency stop ...........................................................................................134
6.6.4.6 Homing ..................................................................................................................................135
6.6.4.7 Position monitoring ...............................................................................................................144
6.6.4.8 Configuration - Control loop ..................................................................................................146
6.7 Configuring the External Encoder technology object ............................................................147
6.7.1 Configuration - Basic Parameters .........................................................................................147
6.7.2 Hardware interface................................................................................................................148
6.7.2.1 Configuration - Encoder ........................................................................................................148
6.7.2.2 Configuration - Data exchange .............................................................................................149
6.7.3 Extended Parameters ...........................................................................................................153
6.7.3.1 Configuration - Mechanics ....................................................................................................153
6.7.3.2 Homing ..................................................................................................................................155
6.8 Parameter view .....................................................................................................................159
6.8.1 Introduction to the parameter view .......................................................................................159
6.8.2 Structure of the parameter view............................................................................................161
6.8.2.1 Toolbar ..................................................................................................................................161
6.8.2.2 Navigation .............................................................................................................................161
6.8.2.3 Parameter table ....................................................................................................................162
Basic information
System Manual and Getting Started describe in detail the configuration, installation, wiring
and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online
help supports you in the configuration and programming.
Device information
Manuals contain a compact description of the module-specific information, such as
properties, terminal diagrams, characteristics, technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC
S7-1500 and ET 200MP systems, e.g. diagnostics, communication, Motion Control, Web
server.
You can download the documentation free of charge from the Internet
(http://www.automation.siemens.com/mcms/industrial-automation-systems-
simatic/en/manual-overview/tech-doc-controllers/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
My Documentation Manager
The My Documentation Manager is used to combine entire manuals or only parts of these to
your own manual.
You can export the manual as PDF file or in a format that can be edited later.
You can find the My Documentation Manager on the Internet
(http://support.automation.siemens.com/WW/view/en/38715968).
Overview
You create a project, configure technology objects, and load the configuration into the CPU
using the TIA Portal. The Motion Control functionality is processed in the CPU.
You control the technology objects with the Motion Control instructions in your user program.
The TIA Portal provides additional functions for commissioning, optimization (Page 199) and
diagnostics (Page 214).
The following figure shows schematically the user interfaces and the integration of Motion
Control into the CPU S7-1500. The concepts are then briefly explained:
TIA Portal
The TIA Portal supports you in the planning and commissioning of Motion Control
functionality:
● Integrating and configuring hardware
● Creating and configuring technology objects
● Creating the user program
● Downloading to CPU
● Commissioning of axes
● Optimization of drives
● Diagnostics
You use the TIA Portal to configure the hardware, the technology objects as well as your
user program. You download the program you created to the CPU. You test your user
program and diagnose the hardware with the online and diagnostic functions of the
TIA Portal.
Technology objects
Technology objects represent real objects (e.g., a drive) in the controller. You can call the
functions of the technology objects by means of Motion Control instructions in your user
program. The technology objects provide open- and closed-loop control of the movement of
the real objects, and report status information (e.g. the current position).
The configuration of the technology objects represents the properties of the real object. The
configuration data are stored in a technology data block.
The following technology objects are available for Motion Control:
● Speed axis technology object
The speed axis technology object ("TO_SpeedAxis") permits the specification of the
speed for a drive. You program the movement of the axis with Motion Control
instructions.
● Positioning axis technology object
The positioning axis technology object ("TO_PositioningAxis") permits the position-
controlled positioning of a drive. You assign positioning jobs to the axis with Motion
Control instructions in your user program.
The properties of real objects are configured by means of the technology objects and saved
in a technology data block. The technology data block contains all configuration data,
setpoint and actual values, and status information of the technology object. The TIA Portal
automatically creates the technology data block when the technology object is created. You
access the data of the technology data block with your user program.
With the Motion Control instructions you perform the desired functionality in the technology
objects. The Motion Control instructions are available in the TIA Portal under "Instructions >
Technology > Motion Control > S7-1500 Motion Control".
User program
The Motion Control instructions and the technology data block represent the programming
interfaces for the technology objects. Use the Motion Control instructions to start Motion
Control jobs at technology objects in your user program. You track the status of running jobs
with the output parameters of the Motion Control instructions. You access status information
of the technology object with the technology data block and change specific configuration
parameters during runtime.
3.2 Scale
For information on the number of technology objects that may be used, refer to the technical
specifications of the utilized CPU.
A synchronous axis requires twice as many resources as a speed-controlled axis or
positioning axis. You can configure two fewer speed or positioning axes for every
synchronous axis you use.
Following axis
The change of the leading axis position setpoint is multiplied by a specified gear ratio and
passed on to the following axis as setpoint. The synchronous axis technology object outputs
this setpoint as speed setpoint to the drive limited to the maximum speed of the drive
(<TO>.Actor.DriveParameter.MaxSpeed).
The synchronous axis technology object includes all functions of the positioning axis
technology object. All movements of the synchronous axis occur under position control.
If the synchronous axis is operated without synchronous operation, the dynamic limits
configured at the technology object apply.
If the synchronous axis is operated as following axis in synchronous operation, the following
dynamic limits apply depending on the status of the synchronous operation.
● Synchronization
During synchronization, dynamic limits configured at the technology object apply to the
lead axis and the following axis respectively.
● Travel synchronous ("MC_GearIn.InGear" = TRUE)
If the synchronous axis is operated as following axis, the dynamic limits of the leading
axis are multiplied by the gear ratio apply. The configured dynamic limits of the following
axis are ignored. The dynamic of the following axis is limited to the maximum speed of
the drive.
The following hardware components are assigned to each synchronous axis:
● A drive by means of a PROFIdrive frame or by means of an analog setpoint interface
● An encoder by means of a PROFIdrive frame
Depending on the execution of the mechanics, a synchronous axis is implemented as linear
axis or rotary axis (Page 26).
The figure below shows the basic principle of operation of the synchronous axis technology
object:
Note
The positioning axis/synchronous axis technology objects and external encoder are
independent of each other, and cannot be coupled to each other. The actual position of an
external encoder cannot be used for position control of a positioning axis or synchronous
axis.
For linear axes, the position of the axis is specified as a linear measure,
e.g. millimeters (mm).
● Rotary axis
For rotary axes, the position of the axis is specified as an angular measure,
e.g. degrees (°).
Position Velocity
nm, μm, mm, m, km mm/s, mm/min, mm/h, m/s, m/min, m/h, km/min, km/h
in, ft, mi in/s, in/min, ft/s, ft/min, mi/h
°, rad °/s, °/min, rad/s, rad/min
Note
When setting or changing the units of measurement, note the effect on the depiction and the
user program:
• Depiction in the technology data block
• Supply to the parameters in the user program
• Input and display of the position and speed in the TIA Portal
• Setpoint settings by leading axes in synchronous operation
All information and displays are output in the selected unit of measure.
PROFIdrive
PROFIdrive is the standardized standard profile for drive technology in the connection of
drives and encoders via PROFIBUS DP and PROFINET IO.
Drives that support the PROFIdrive profile are connected according to the PROFIdrive
standard.
Communication between controller and drive/encoder is by means of various PROFIdrive
message frames. Each of the message frames has a standardized structure. Depending on
the application, you can select the applicable message frame. Control words and status
words as well as setpoints and actual values are transmitted in the PROFIdrive message
frames.
The PROFIdrive profile likewise supports the "Dynamic Servo Control" (DSC) control
concept. DSC uses rapid position control in the drive. This can be used to solve highly
dynamic positioning jobs.
3.10.2 Frames
The transmission of the encoder value occurs either in a frame together with the setpoint
(frame 3 or frame 5), or in a separate encoder frame (frame 81 or frame 83).
The following figure represents the relationship between the technology objects and the
drives / encoders:
Frame types
The following table shows the supported PROFIdrive frame types for the assignment of
drives and encoders:
When connecting by means of a PROFIdrive frame, the drives and encoders are handled
and switched on in accordance with the PROFIdrive profile.
Frame settings
The controller settings are made in the TIA Portal under "Technology object > Configuration
> Hardware interface > Data transmission".
The settings for drive and encoder are set in the configuration for the respective hardware.
The following table contrasts the controller settings and corresponding PROFIdrive
parameters (<TO> stands for the applicable technology object):
3.10.4 Tags
The following technology object tags are relevant for the connection of drives and encoders:
Drive frame
<TO>.Actor.Interface.Telegram Frame number
<TO>.Actor.DriveParameter.Reference Reference velocity / reference speed for the velocity /
Speed speed (NSET), which is transmitted as a percentage
value
<TO>.Actor.DriveParameter.MaxSpeed Maximum value for the setpoint speed of the drive
(NSET)
(PROFIdrive: MaxSpeed ≤ 2 × ReferenceSpeed
Analog setpoint: MaxSpeed ≤ 1.17 × ReferenceSpeed)
Encoder frame
<TO>.Sensor[n].Interface.Telegram Frame number
<TO>.Sensor[n].System Encoder system linear or rotary
<TO>.Sensor[n].Type Encoder type, incremental, absolute or cyclically abso-
lute
<TO>.Sensor[n].Parameter.StepsPer Increments per revolution for rotary encoder
Revolution
<TO>.Sensor[n].Parameter.Determinable Number of differentiable encoder revolutions for a multi-
Revolutions turn absolute value encoder
<TO>.Sensor[n].Parameter.Resolution Resolution for linear encoder
The grid spacing corresponds to the interval between
two marks.
Fine resolution
<TO>.Sensor[n].Parameter.FineResolution Number of bits for fine resolution XIST1 (cyclic actual
Xist1 encoder value)
<TO>.Sensor[n].Parameter.FineResolution Number of bits for fine resolution XIST2 (absolute value
Xist2 of the encoder)
Absolute actual value with the setting absolute (measuring range > traversing range)
The axis position results directly from the actual encoder value. The traversing range must
be within an encoder measuring range. This means that the zero point of the encoder must
not be located in the traversing range.
When the controller is switched on, the axis position is determined from the absolute
encoder value.
Absolute actual value with the setting absolute (measuring range < traversing range)
The encoder supplies an absolute value within its measuring range. The controller includes
the traversed measuring ranges and thus determines the correct axis position beyond the
measuring range.
When the controller is switched off, the traversed measuring ranges are saved in the
retentive memory area of the controller.
At the next power-on, the stored overflows are taken into account in the calculation of the
actual position value.
NOTICE
Movements of the axis while the controller is switched off can skew the actual value
If the axis or the encoder is moved by more than half of the encoder measuring range while
the controller is switched off, then the actual value in the controller is no longer in accord
with the mechanical axis position.
3.12.4 Tags
The tags named in the Homing (Page 58) section are relevant for adapting actual values.
3.13 Mechanics
External encoder
The following configuration options for mechanics are supported:
● Measuring gearbox (for rotary encoders)
● Leadscrew (only with linear system of units and rotatory encoders)
● Inversion of the setpoint
Speed axis
The following configuration options for mechanics are supported:
● Load gear
● Inversion of the setpoint
3.13.2 Tags
The following technology object tags are relevant for the setting of the mechanics:
Type of motion
<TO>.Properties.MotionType Indication of linear or rotary motion
0: Linear motion
1: Rotary motion
Load gear
<TO>.LoadGear.Numerator Load gear counter
<TO>.LoadGear.Denominator Load gear denominator
Leadscrew pitch
<TO>.Mechanics.LeadScrew Leadscrew pitch
Type of encoder mounting
<TO>.Sensor[n].MountingMode Type of encoder mounting
<TO>.Sensor[n].Parameter.Distance Load distance per encoder revolution with an externally
PerRevolution mounted encoder
Inversion
<TO>.Actor.InverseDirection Setpoint inversion
<TO>.Sensor[n].InverseDirection Actual value inversion
Modulo
<TO>.Modulo.Enable Enable modulo
<TO>.Modulo.Length Modulo length
<TO>.Modulo.StartValue Modulo start value
3.14 Homing
Homing status
The technology object tag <TO>.StatusWord.X5 (HomingDone) indicates whether the
technology object has been homed to an axis or external encoder.
Type of homing
Homing can occur by means of an independent movement for homing (active homing), by
means of a homing mark during an application-initiated movement (passive homing), or by
means of direct position assignment.
A distinction is made between the following types of homing:
● Active homing
Active homing initiates a homing movement and performs the necessary approach to the
homing mark. When the homing mark is detected, the actual position is set to the
configured value. It is possible to specify an offset from the home position.
When active homing starts, current traversing movements are aborted. The offset is
automatically traversed after the approach to home position.
● Passive homing
The homing job does not perform its own homing motion. When the homing mark is
detected during an application-initiated motion, the actual position is set to the configured
value.
Passive homing is also called homing on the fly.
● Direct homing
The homing job directly sets the actual position to the configured value, or offsets it by
this amount.
● Absolute value adjustment
Absolute value adjustment adjusts the position of the technology object to the existing
absolute actual value.
Homing mode
Depending on the type of homing mark and of the homing mark search, a distinction is made
among the following homing modes (Page 41):
● Homing with zero mark via PROFIdrive frame and proximity switch
● Homing with zero mark via PROFIdrive frame
● Homing with digital input
3.14.2 Terms
Homing mark
A homing mark is an input signal, on whose occurrence a known mechanical position can be
assigned to the actual values.
A homing mark can be:
● A zero mark
The zero mark of an incremental encoder or an external zero mark is used as a homing
mark.
The zero mark is detected at the drive module or encoder module, and transmitted in the
PROFIdrive frame. Perform the setting and evaluation as an encoder zero mark or
external zero mark at the drive module and sensor module.
● An edge at the digital input
The falling or rising edge at a digital input is used as a homing mark.
Proximity switch
If there are several zero marks in the traversing range, the proximity switch permits the
selection of a specific zero mark before or after the proximity switch.
Home position
At the end of the active homing motion, the axis arrives at the home position.
Homing with zero mark via PROFIdrive frame and proximity switch
The system checks for when the proximity switch is reached. After the proximity switch is
reached and is left again in the assigned homing direction, zero mark detection is enabled
via the PROFIdrive message frame.
When the zero mark is reached in the pre-selected direction, then the actual position of the
technology object is set to the homing mark position.
Note
The digital inputs must be placed into the process image partition "PIP OB Servo".
The filter time of the digital inputs must be set smaller than the duration of the input signal at
the reference point switch.
See also
Homing SINAMICS drives with external zero marks (Page 396)
Motion sequence
The motion occurs in the following sequence:
1. Start of active homing via the Motion Control instruction "MC_Home"
2. Approach to the proximity switch
3. Detection of the proximity switch in the homing direction, while moving at homing velocity
4. Departure from the proximity switch, and approach to the homing mark
With the departure from the proximity switch, the detection of the homing mark is
enabled.
5. Detection of the homing mark
When the homing mark is detected, the position of the technology object is set depending
on the configured mode:
– Parameter "Mode" to "MC_Home" = 3
Position = value in parameter "Position" minus
<TO>.Sensor[n].ActiveHoming.HomePositionOffset
– Parameter "Mode" to "MC_Home" = 5
Position = value in the tag <TO>.Homing.HomePosition minus
<TO>.Sensor[n].ActiveHoming.HomePositionOffset
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion
Control has been standardized within the framework of technology version V2.0. This
results in a new assignment of the parameter values for the "MC_Home.Mode"
parameter. A comparison of the "MC_Home.Mode" parameter for technology versions
V1.0 and V2.0 is available in the section Version overview (Page 86).
Note
If the velocity on the span from the detection of the proximity switch to the zero mark
cannot be reduced to the homing velocity, then homing occurs at the velocity that exists
when the zero mark is traversed.
See also
Homing SINAMICS drives with external zero marks (Page 396)
Motion sequence
The motion occurs in the following sequence:
1. Start of active homing via the Motion Control instruction "MC_Home"
2. Move to the homing mark in the homing direction with the homing velocity
3. Detection of the homing mark
When the homing mark is detected, the position of the axis or encoder is set depending
on the configured mode:
– Parameter "Mode" to "MC_Home" = 3
Position = value in parameter "Position" minus
<TO>.Sensor[n].ActiveHoming.HomePositionOffset
– Parameter "Mode" to "MC_Home" = 5
Position = value in the tag <TO>.Homing.HomePosition minus
<TO>.Sensor[n].ActiveHoming.HomePositionOffset
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion
Control has been standardized within the framework of technology version V2.0. This
results in a new assignment of the parameter values for the "MC_Home.Mode"
parameter. A comparison of the "MC_Home.Mode" parameter for technology versions
V1.0 and V2.0 is available in the section Version overview (Page 86).
See also
Homing SINAMICS drives with external zero marks (Page 396)
Motion sequence
The motion occurs in the following sequence:
1. Start of active homing via the Motion Control instruction "MC_Home"
2. Detection of the rising edge at the digital input, while moving at homing velocity
3. Approach to the homing mark
4. Detection of the homing mark
In the example, the falling edge of the switch at the digital input represents the homing
mark.
When the homing mark is detected, the position of the axis or encoder is set depending
on the configured mode:
– Parameter "Mode" to "MC_Home" = 3
Position = value in parameter "Position" minus
<TO>.Sensor[n].ActiveHoming.HomePositionOffset
– Parameter "Mode" to "MC_Home" = 5
Position = value in the tag <TO>.Homing.HomePosition minus
<TO>.Sensor[n].ActiveHoming.HomePositionOffset
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion
Control has been standardized within the framework of technology version V2.0. This
results in a new assignment of the parameter values for the "MC_Home.Mode"
parameter. A comparison of the "MC_Home.Mode" parameter for technology versions
V1.0 and V2.0 is available in the section Version overview (Page 86).
Note
If the velocity on the span from the detection of the rising edge to the falling edge cannot
be reduced to the homing velocity, then homing occurs at the velocity that exists when
the homing mark is traversed.
Motion sequence
The motion occurs in the following sequence:
1. Enablement of passive homing via the Motion Control instruction "MC_Home".
2. Motion due to a Motion Control job from the application
The detection of the proximity switch and of the homing mark is enabled when the actual
position value of the axis or encoder moves in the assigned homing direction.
3. Detection of the proximity switch
4. Departure from the proximity switch
The departure from the proximity switch enables the detection of the homing mark.
5. Detection of the homing mark
When the homing mark is detected, the position of the axis or encoder is set depending
on the configured mode:
– Parameter "Mode" to "MC_Home" = 2, 8
Position = value in parameter "Position"
– Parameter "Mode" to "MC_Home" = 10
Position = value in tag <TO>.Homing.HomePosition
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion
Control has been standardized within the framework of technology version V2.0. This
results in a new assignment of the parameter values for the "MC_Home.Mode"
parameter. A comparison of the "MC_Home.Mode" parameter for technology versions
V1.0 and V2.0 is available in the section Version overview (Page 86).
Note
If the direction of motion changes after departure from the proximity switch and before
detection of the homing mark, then the proximity switch must be detected again. The
Motion Control instruction "MC_Home" remains enabled.
Motion sequence
The motion occurs in the following sequence:
1. Enablement of passive homing via the Motion Control instruction "MC_Home".
2. Motion due to a Motion Control job from the application
The detection of the homing mark is enabled when the actual position value of the axis or
encoder moves in the assigned homing direction.
3. Detection of the homing mark
When the homing mark is detected, the position of the axis or encoder is set depending
on the configured mode:
– Parameter "Mode" to "MC_Home" = 2, 8
Position = value in parameter "Position"
– Parameter "Mode" to "MC_Home" = 10
Position = value in tag <TO>.Homing.HomePosition
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion
Control has been standardized within the framework of technology version V2.0. This
results in a new assignment of the parameter values for the "MC_Home.Mode"
parameter. A comparison of the "MC_Home.Mode" parameter for technology versions
V1.0 and V2.0 is available in the section Version overview (Page 86).
Motion sequence
The motion occurs in the following sequence:
1. Enablement of passive homing via the Motion Control instruction "MC_Home".
2. Motion due to a Motion Control job from the application
The detection of the homing mark at the digital input is enabled when the actual position
value of the axis or encoder moves in the assigned homing direction.
3. Detection of the homing mark
In the example, the falling edge of the switch at the digital input represents the homing
mark.
When the homing mark is detected, the position of the axis or encoder is set depending
on the configured mode:
– Parameter "Mode" to "MC_Home" = 2, 8
Position = value in parameter "Position"
– Parameter "Mode" to "MC_Home" = 10
Position = value in tag <TO>.Homing.HomePosition
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion
Control has been standardized within the framework of technology version V2.0. This
results in a new assignment of the parameter values for the "MC_Home.Mode"
parameter. A comparison of the "MC_Home.Mode" parameter for technology versions
V1.0 and V2.0 is available in the section Version overview (Page 86).
NOTICE
Avoid moving to a mechanical endstop
Ensure by one of the following measures, that in a direction reversal the machine does not
move to a mechanical endstop.
• Keep the approach velocity low.
• Increase the configured acceleration / deceleration.
• Increase the offset between the hardware limit switch and the mechanical endstop.
Incremental encoder
In the following cases, the "Homed" status is reset, and the technology object must be
rehomed.
● Errors in the sensor system / encoder failure
● Initiation of active homing with the Motion Control instruction "MC_Home" with
"Mode" = 3, 5 (after successful completion of the homing process, the status "Homed" is
set again.)
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion
Control has been standardized within the framework of technology version V2.0. This
results in a new assignment of the parameter values for the "MC_Home.Mode"
parameter. A comparison of the "MC_Home.Mode" parameter for technology versions
V1.0 and V2.0 is available in the section Version overview (Page 86).
● Initiation of passive homing with the Motion Control instruction "MC_Home" with
"Mode" = 2, 8, 10 (after successful completion of the homing process, the status "Homed"
is set again.)
● Replacement of the CPU
● Replacement of the SIMATIC Memory Card
● POWER OFF
● Memory reset
● Modification of the encoder configuration
● Restart of the technology object
● Restoration of the CPU factory settings
● Transfer of a different project into the controller
3.14.14 Tags
The following technology object tags are relevant for homing:
Status indicators
<TO>StatusWord.X11 (HomingCommand) Homing command active
<TO>StatusWord.X5 (HomingDone) Technology object is homed
<TO>ErrorWord.X10 (HomingFault) Error occurred during homing
Approach to the proximity switch
<TO>.Homing.ApproachDirection Start direction or approach direction for the ap-
proach to the proximity switch
<TO>.Homing.ApproachVelocity Velocity for the approach to the proximity switch
Approach to the homing mark
<TO>.Sensor[n].ActiveHoming.Direction Homing direction
<TO>.Homing.ReferencingVelocity Velocity for the approach to the homing mark
Approach to home position
<TO>.Homing.ApproachVelocity Velocity for the approach to the home position
Positions
<TO>.Homing.AutoReversal Reversal at the hardware limit switches
<TO>.Homing.HomePosition Home position
<TO>.StatusSensor[n].AbsEncoderOffset Calculated offset after the absolute value adjust-
ment
Parameters for active homing
<TO>.Sensor[n].ActiveHoming.Mode Homing mode
<TO>.Sensor[n].ActiveHoming.SideInput Side of the digital input
<TO>.Sensor[n].ActiveHoming.Direction Homing direction or approach direction
<TO>.Sensor[n].ActiveHoming.DigitalInput Byte number of the I/O address of the digital input
Address
<TO>.Sensor[n].ActiveHoming.DigitalInputBit Bit number of the I/O address of the digital input
Number
<TO>.Sensor[n].ActiveHoming.HomePosition Offset of the homing mark from the home position
Offset
Parameters for passive homing
<TO>.Sensor[n].PassiveHoming.Mode Homing mode
<TO>.Sensor[n].PassiveHoming.SideInput Side of the digital input
<TO>.Sensor[n].PassiveHoming.Direction Homing direction or approach direction
<TO>.Sensor[n].PassiveHoming.DigitalInput Byte number of the I/O address of the digital input
Address
<TO>.Sensor[n].PassiveHoming.DigitalInputBit Bit number of the I/O address of the digital input
Number
Note
Evaluation of the bits in StatusWord, ErrorWord and WarningWord
Read the information provided in section Evaluate StatusWord, ErrorWord and WarningWord
(Page 175).
3.15 Control
See also
Frames (Page 29)
The following figure shows the effective control structure with DSC:
3.15.3 Tags
The following technology object tags are relevant for control:
Parameter
<TO>.PositionControl.Kv Proportional gain in the position control
<TO>.PositionControl.Kpc Velocity pre-control in the position control (in %)
<TO>.PositionControl.EnableDSC Enabling DSC
Positioning monitoring does not make any distinction between how the setpoint interpolation
was completed. The end of setpoint interpolation can for example be reached as follows:
● by the setpoint reaching the target position
● by position controlled stopping during the motion, via the Motion Control instruction
"MC_Halt"
Warning limit
A warning limit can be specified for the following error. The warning limit is input as a
percentage value and operates relative to the current permissible following error. If the
warning limit of the following error is reached, then technology alarm 522 is output. This is a
warning and contains no alarm response.
3.16.4 Tags
The following technology object tags are relevant for positioning monitoring:
Status indicators
<TO>.StatusWord.X7 (Standstill) Is set to the value TRUE , when the actual velocity
value goes below the velocity threshold, and does not
exit it within the minimum dwell time.
The standstill signal is only present at the positioning
axis/synchronous axis.
<TO>.StatusWord.X6 (Done) Positioning axis/synchronous axis
Is set to the value TRUE, when the actual velocity val-
ue reaches the positioning window within the tolerance
time, and remains for the minimum dwell time in the
window.
Speed axis
Is set to TRUE, when the motion is completed and thus
the speed setpoint is equal to zero.
<TO>.ErrorWord.X12 (PositioningFault) A positioning error has occurred.
Positions and times
<TO>.PositioningMonitoring.ToleranceTime Maximum permissible time until positioning window is
reached
The time is started with the end of the setpoint interpo-
lation.
<TO>.PositioningMonitoring.MinDwellTime Minimum dwell time in the positioning window
<TO>.PositioningMonitoring.Window Positioning window
Standstill signal
<TO>.StandstillSignal.VelocityThreshold Velocity threshold for the standstill signal
<TO>.StandstillSignal.MinDwellTime Minimum dwell time below the velocity threshold
The following technology object tags are relevant for following error monitoring:
Status indicators
<TO>.StatusPositioning.FollowingError Current following error
<TO>.ErrorWord.X11 (FollowingErrorFault) Status indication, that the following error is too large
<TO>.WarningWord.X11 (FollowingError- Status indication, that the following error warning limit
Warning) has been reached
Control bits
<TO>.FollowingError.EnableMonitoring Enabling / disabling following error monitoring
Limit values
<TO>.FollowingError.MinVelocity Lower setpoint velocity for the characteristic curve of
the maximum following error
<TO>.FollowingError.MinValue Permissible following error below the
<TO>.FollowingError.MinVelocity
<TO>.FollowingError.MaxValue Maximum permissible following error at maximum axis
velocity
<TO>.FollowingError.WarningLevel Warning limit as a percentage value relative to the
maximum permissible following error (velocity-
dependent in accordance with the characteristic curve)
Exception
If the hardware limit switches are used as reversing cams or reference cams, then the
monitoring of the hardware limit switches has no effect.
Retracting
The position of the axis when the hardware limit switch is detected is stored internally on the
CPU. The status of the approached hardware limit switch is reset only after the hardware
limit switch is left and the axis is once again in the maximum traversing range.
To be able to traverse the axis again after reaching the hardware limit switch and to reset the
status of the hardware limit switch, follow the steps below:
1. To allow movement away from the limit switch, acknowledge the technology alarm.
2. Traverse the axis away from the hardware limit switch until it leaves it.
The axis must then be within the maximum traversing range.
If you traverse the axis in the direction of the limit switch before the axis has left it, the
monitoring will be triggered again.
The following diagram shows the response of the status word when reaching the hardware
limit switch and when releasing the axis again:
At the time ① the position of the axis when the positive hardware limit switch is detected is
stored internally on the CPU. To reset the status of the hardware limit switch, the axis must
be pulled back from this position.
At the time ② the position of the axis when the negative hardware limit switch is detected is
stored internally on the CPU. To reset the status of the hardware limit switch, the axis must
pass this position.
Modulo enabled
With modulo enabled, the modulo position is monitored.
The software limit switches are enabled or disabled using the tags in the technology data
block. If the positions of both software limit switches are outside the modulo range, then the
monitoring has no effect. It is not checked, whether the positions of the software limit
switches are within the modulo range.
Retracting
Proceed as follows to retract the axis after violation of the software limit switch:
1. Acknowledge the technology alarm.
2. Move the axis in the free travel direction, until the software limit switch is exited.
If you move opposite to the free travel direction before exiting the software limit switch,
then the monitor with be triggered again.
3.17.4 Tags
The following technology object tags are relevant for software limit switches:
Status indicators
<TO>.StatusWord.X15 (SWLimitMinActive) Negative software limit switch is enabled
<TO>.StatusWord.X16 (SWLimitMaxActive) Positive software limit switch is enabled
<TO>.ErrorWord.X8 (SWLimit) An alarm is pending, that a software limit switch was
violated
Control bits
<TO>.PositonLimits_SW.Active Enables / disables the monitoring of the software
limit switches
Position values
<TO>.PositonLimits_SW.MinPosition Position of the negative software limit switch
<TO>.PositonLimits_SW.MaxPosition Position of the positive software limit switch
The following technology object tags are relevant for hardware limit switches:
Status indicators
<TO>.StatusWord.X17 (HWLimitMinActive) Negative hardware limit switch is enabled
<TO>.StatusWord.X18 (HWLimitMaxActive) Positive hardware limit switch is enabled
<TO>.ErrorWord.X9 (HWLimit) An alarm is queued; a hardware limit switch was
violated
Control bits
<TO>.PositonLimits_HW.Active Enables / disables the monitoring of the hardware
limit switches
Parameter
<TO>.PositonLimits_HW.MinSwitchLevel Level selection for enablement of the lower hard-
ware limit switch:
FALSE: At low level, the signal is enabled
TRUE: At high level, the signal is enabled
<TO>.PositonLimits_HW.MinSwitchAddress Byte number of the I/O address of the hardware limit
switch for the lower or minimum position
<TO>.PositonLimits_HW.MinSwitchBitNumber Bit number of the I/O address of the hardware limit
switch for the lower or minimum position
<TO>.PositonLimits_HW.MaxSwitchLevel Level selection for enablement of the upper hard-
ware limit switch:
FALSE: At low level, the signal is enabled
TRUE: At high level, the signal is enabled
<TO>.PositonLimits_HW.MaxSwitchAddress Byte number of the I/O address of the hardware limit
switch for the upper or maximum position
<TO>.PositonLimits_HW.MaxSwitchBitNumber Bit number of the I/O address of the hardware limit
switch for the upper or maximum position
A velocity profile with jerk limit is employed for a continuous acceleration and deceleration
sequence. The jerk can be specified.
3.18.4 Tags
The following technology object tags are relevant for motion control:
Status
<TO>.StatusWord Status indicators for an active motion
<TO>.Position Setpoint position
<TO>.Velocity Setpoint velocity / setpoint speed
<TO>.ActualPosition Actual position
<TO>.ActualVelocity Actual velocity
<TO>.ActualSpeed Actual speed of the motor
(with analog setpoint = 0.0)
<TO>.Acceleration Setpoint acceleration
<TO>.ActualAcceleration Actual acceleration
Override
<TO>.Override.Velocity Velocity override
Dynamic limit values
<TO>.DynamicLimits.MaxVelocity Dynamic limit for maximum velocity
<TO>.DynamicLimits.MaxAcceleration Dynamic limit for maximum acceleration
<TO>.DynamicLimits.MaxDeceleration Dynamic limit for maximum deceleration
<TO>.DynamicLimits.MaxJerk Dynamic limit for maximum jerk
Defaults for the dynamics
<TO>.DynamicDefaults.Velocity Default velocity
<TO>.DynamicDefaults.Acceleration Default acceleration
<TO>.DynamicDefaults. Deceleration Default deceleration
<TO>.DynamicDefaults.Jerk Default jerk
<TO>.DynamicDefaults. Emergency stop deceleration
EmergencyDeceleration
Following axis
The following axis is synchronized to the leading axis by means of the Motion Control
instruction "MC_GearIn", which represents the mechanical transmission in this case. An
active synchronous operation is overridden by motion jobs on the following axis.
Synchronization
Synchronization is begins by starting an "MC_GearIn" job. When a synchronous axis
synchronizes to a master value, it is displayed in the tag of the <TO>.StatusWord.X21
(Synchronizing) technology object. Active motion jobs are overridden. The dynamic values
(acceleration, delay, jerk) of the following axis for the synchronization are specified at
"MC_GearIn".
The following axis is synchronized and moves synchronously to the leading axis when the
following axis reaches the velocity and acceleration of the leading axis, taking the gear ratio
into consideration.
Duration and length of synchronization depend on the dynamic of the leading axis and the
dynamic defaults at "MC_GearIn". A position offset can result between leading axis and
following axis. This position offset is not compensated.
Synchronous motion
When a synchronous axis is synchronized to a master value, the "synchronous" status is
displayed by the parameter "MC_GearIn.InGear" = TRUE as well as in the tag of the
<TO>.StatusWord.X22 (Synchronous) technology object. The following axis follows the
dynamics of the leading axis according to the gear ratio.
The dynamic limits configured on the following axis are no longer in effect in the
"synchronous" state. The speed setpoint output to the drive is limited to the configured
maximum speed of the drive (<TO>.Actor.DriveParameter.MaxSpeed).
If the following axis cannot follow the master value, a following error occurs which is
monitored by the following error monitoring.
The response characteristic of gearing is expressed as a linear correlation between the
master value and the slave value.
Direction
The numerator of the gear ratio is specified as positive or negative. This results in the
following response:
● Positive gear ratio:
The leading and following axes move in the same direction.
● Negative gear ratio:
The following axis rotates in the opposite direction of the leading axis.
NOTICE
Drive damage
The position of the leading axis can change suddenly during homing of the leading axis.
This master value jump has the effect of a setpoint jump at the following axis. The setpoint
jump is traversed at the following axis taking the gear ratio into consideration. Jerky
compensation motions at the following axis and drive damage could result.
If homing of the leading axis is required during active synchronous operation, keep the
master value jump and its effects on the following axis to a minimum.
Note
The master values and slave values are coupled without conversion into the relevant
configured user unit. If the leading axis is a linear axis (millimeters) and the following axis is
a rotary axis (degrees), for example, the unit is not converted during synchronous operation.
If the leading axis moves by 10 mm, the following axis moves by 10° with a gear ratio of 1:1.
3.19.4 Tags
The following technology object tags are relevant for synchronous operation:
Status indicators
<TO>.StatusSynchronizedMotion.ActualMaster When a "MC_GearIn" job is started, the number of the technology data
block of the currently used leading axis is displayed.
"ActiveMaster" = 0 with disabled synchronous operation
<TO>.StatusWord.X21 (Synchronizing) When the synchronous axis synchronizes to a master value, the value
is set to TRUE.
<TO>.StatusWord.X22 (Synchronous) When the synchronous axis is synchronized and moves synchronously
to the leading axis, the value is set to TRUE .
<TO>.ErrorWord.X14 (SynchronousError) Error during synchronous operation
The leading axis specified at the Motion Control instruction
"MC_GearIn" was not configured as a possible leading axis.
Description
When you create a technology object, organization blocks are automatically created for
processing the technology objects. The Motion Control functionality of the technology objects
creates its own execution level, and is called according to the Motion Control application
cycle.
The following blocks are created:
● MC-Servo [OB91]
Calculation of the Position Controller
● MC-Interpolator [OB92]
Evaluation of the motion control instructions, generation of setpoints and monitoring
functionality
The organization blocks are protected (know-how protection). The program code cannot be
viewed or changed.
The frequency relationship of the two organization blocks to one another is always 1:1.
MC-Servo [OB91] is always executed before MC-Interpolator [OB92].
You can set the application cycle and the priority of the organization blocks according to your
requirements for control quality and system load.
Application cycle
You can set the application cycle in which the MC-Servo [OB91] is called in the properties of
the organization block in "General > Cycle Time":
● Synchronous to the bus
MC-Servo [OB91] is called synchronously with or at a reduced ratio to a bus system. You
set the send clock in the properties of the selected bus system. In the "Distributed I/O"
drop-down list, you can select the following bus systems:
– Isochronous PROFIBUS DP
– Isochronous PROFINET IO
You cannot call the MC-Servo [OB91] synchronously with a bus system that is connected
to the CPU via a communications processor/communications module (CP/CM).
● Cyclic
The MC-Servo [OB91] is called cyclically with the specified application cycle.
The selected application cycle must be long enough to be able to process the technology
objects in one cycle. If the processing time of the technology objects is longer than the
application cycle, overflows (Page 80) will occur.
You can check the runtime of MC-Servo [OB91] and MC-Interpolator [OB92] with the
expanded instruction "RT_INFO".
Priority
You can configure the priority of the organization blocks as needed in their properties under
"General > Properties > Priority":
● MC Servo [OB91]
Priority 17 to 31 (default value 25)
● MC Interpolator [OB92]
Priority 16 to 30 (default value 24)
The priority of MC Servo [OB91] must be at least one higher than the priority of the
MC Interpolator [OB92].
Overflows
If the set application cycle is not adhered to, for example because the application cycle is too
short, overflows can occur.
The CPU will not tolerate overflow of MC-Servo [OB91]. An overflow will cause the CPU to
change to STOP mode.
The following figure shows the operational sequence if there is an overflow of MC-Servo
[OB91]:
STOP mode
In STOP mode the user program is not processed and al process outputs are disabled. Thus
no Motion Control jobs are executed.
The technology data blocks are updated.
STARTUP mode
Before the CPU starts processing of the cyclical user program, the startup OBs are
processed one time.
In STARTUP mode, the process outputs are disabled. Motion Control jobs are rejected.
The technology data blocks are updated.
RUN mode
The user program is processed in RUN mode.
In RUN mode, the programmed Motion Control jobs are cyclically called and processed.
The technology data blocks are updated.
④ RUN → STOP When the CPU changes to RUN mode after STOP mode, all technology objects are
disabled in accordance with the alarm response "remove enablement". Running Mo-
tion Control jobs are terminated.
Requirements
● A project with a CPU S7-1500 has been created.
Procedure
Proceed as follows to use Motion Control with the CPU S7-1500:
1. Add technology object (Page 99)
2. Working with the configuration editor (Page 100)
3. Programming (Page 172)
4. Downloading to CPU (Page 198)
5. Functional test in the Commissioning window (Page 199)
6. Diagnostics (Page 214)
Compatibility list
The table below shows the compatibility of the technology version with the CPU version:
1) Card replacement from a CPU < V1.6 to a CPU V1.6 is not supported.
You can find additional information about the "MC_Home.Mode" parameter in the description
of the Motion Control instruction "MC_Home" (Page 239).
Requirements
● The SIMATIC S7-1500 device is created in the project.
● The desired drive can be selected in the hardware catalog.
If the drive is not available in the Hardware Catalog, then it must be installed in the "Extras"
menu as a device description file (GSD).
Interconnecting the port of the PLC with the port of the drive
1. Open the topology view in the device configuration.
2. Interconnect the port of the PLC with the port of the drive.
Configuring the PLC as the sync master and setting isochronous mode
1. Select the device view of the PLC.
2. In the properties dialog, select the tab "PROFINET Interface [X1] > Advanced options >
Realtime settings > Synchronization".
3. Select "Sync master" from the "Synchronization role" drop-down list.
4. Click the "Domain settings" button.
5. Open the "Domain Management > Sync Domains" tab and set the desired "Send clock"
(isochronous clock).
Result
The technology object is connected to the drive and the "MC Servo" organization block can
be checked / configured.
The frame of the configured drive is assigned to the "PIP OB Servo" process image.
Result
The PROFINET IO drive is now configured so that it can be controlled in the PROFINET IO
network in isochronous mode.
The properties of the SINAMICS drive must be configured according to the configuration of
the axis with a separate STARTER program.
See also
Frames (Page 29)
Add technology object (Page 99)
Requirements
● The SIMATIC S7-1500 device is created in the project.
● You have a basic knowledge of how to configure PROFIBUS DP networks.
● The desired drive can be selected in the hardware catalog.
If the drive is not available in the Hardware Catalog, then it must be installed in the "Extras"
menu as a device description file (GSD).
Result
The technology object is connected to the drive and the "MC Servo" organization block can
be checked/configured.
The frame of the configured drive is assigned to the "PIP OB Servo" process image.
Result
The PROFIBUS DP drive is now configured so that it can be controlled in the PROFIBUS
network in isochronous mode.
The properties of the SINAMICS drive must be configured according to the configuration of
the axis with a separate STARTER program.
See also
Add technology object (Page 99)
Frames (Page 29)
Requirements
The SIMATIC S7-1500 device is created in the project.
Selecting the drive and encoder in the configuration of the technology object
1. Add a new positioning axis/synchronous axis technology object, or open the configuration
of an existing positioning axis/synchronous axis.
2. Open the configuration "Hardware interface > Drive".
3. Select "Analog drive connection" from the "Drive type" drop-down list.
4. Select the previously defined tag name of the analog output from the "Output" list.
5. Open the configuration "Hardware interface > Encoder".
6. Under "Select encoder coupling" select "Encoder on technology module (TM)".
7. Select the channel of the incremental encoder from the "Technology module" list under
"local modules".
For information on how to add a technology object, refer to the section Add technology
object (Page 99)
Result
The analog drive connection and the encoder connection are configured.
The analog addresses and the addresses of the TM module are assigned to the process
image "PIP OB Servo".
See also
Add technology object (Page 99)
Requirement
A project with a CPU S7-1500 has been created.
Procedure
1. Open the CPU's folder in the project navigator.
2. Open the "Technology Objects" folder.
3. Double-click "Add new object".
The "Add new object" dialog box opens.
4. Select the "Motion Control" technology.
5. Open the folder "Motion Control" > "SIMATIC S7-1500".
6. If you want to add an axis from an older version, then click on the Version entry and
select an alternative version of the technology.
7. Select the "TO_SpeedAxis" object for a speed axis, "TO_PositioningAxis" for a positioning
axis, "TO_SynchronousAxis" for a synchronous axis or "TO_ExternalEncoder" for an
external encoder.
8. In the "Name" field, adapt the name of the axis to your requirements.
9. Select the "Manual" option if you want to change the suggested data block number.
10.Click on "Further Information" if you want to add your own information to the technology
object.
11.Click on the "Cancel" button if you want to discard the entries.
Activate the "Add new and open" check box if you want to open the configuration after
adding the technology object.
Click on the "OK" button if you want to add the technology object.
Result
The new technology object was created and saved in the project navigator in the folder
"Technology objects".
If the organization blocks "MC Servo" and "MC Interpolator" had not yet been added, they
have now been added.
Symbol Description
Start value in CPU matches the configured Start value in the project
Start value in CPU does not match the configured Start value in the project
The comparison of the Start value in CPU with the configured Start value in the project
cannot be performed
Use the button to show the start value of the CPU and the start value of the project for
each parameter.
The actual value and the start value of the CPU can be changed directly, and then
downloaded to the CPU. The change of actual value is transferred directly to the CPU for
directly modifiable parameters.
Axis name
Define the name of the speed axis in this field. The technology object is listed in the project
navigation under this name. The tags of the speed axis can be used in the user program
under this name.
Speed unit
Select the measuring system for speed from the drop-down list box.
Drive type
In the drop-down list, select whether you want to deploy a PROFIdrive drive or a drive with
an analog drive connection.
PROFIdrive drives are connected to the controller by means of a digital communication
system (PROFINET or PROFIBUS). The communication occurs via PROFIdrive frames.
Drives with an analog drive connection receive the setpoint speed via an analog output
signal (e.g. from -10 V to +10 V) from the PLC.
Note
If you do not use an enable output, the drive cannot be immediately disabled on the part of
the system due to error reactions or monitoring functions. A controlled stop of the drive is not
guaranteed.
Note
The enable output and the ready input can be separately enabled.
The following conditions apply to the enabled ready input:
• The axis is not enabled (MC_Power Status=TRUE), until a signal is pending at the ready
input.
• If the signal at the ready input goes away for an enabled axis, then the axis is disabled
with an error.
• If the axis is disabled with the instruction MC_Power (Enable= FALSE), then the axis is
disabled even with a pending signal at the ready input.
See also
Configuration - Data exchange (Page 104)
Maximum speed
In this field, specify the maximum speed of the drive.
Maximum speed
In this field, define the maximum permitted speed of the axis.
Note
A change in the maximum speed influences the acceleration and deceleration values of the
axis. The ramp-up and ramp-down times are retained.
Note
The configured smoothing time displayed in the configuration, applies only to the
acceleration ramp.
If the values of the acceleration and deceleration differ, the smoothing time of the
deceleration ramp is calculated and used according to the jerk of the acceleration ramp.
The smoothing time of the deceleration is adapted as follows:
• Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration < Deceleration
A longer smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration = Deceleration
The smoothing times of the acceleration ramp and the deceleration ramp are the
same.
If an error occurs, the axis decelerates with the configured emergency stop deceleration.
A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:
Traversing jobs initiated in the user program are executed with the selected jerk.
Speed
In this field, define the default value for the speed of the axis.
Note
A change in the velocity influences the acceleration and deceleration values of the axis. The
ramp-up and ramp-down times are retained.
Note
The configured smoothing time displayed in the configuration, applies only to the
acceleration ramp.
If the values of the acceleration and deceleration differ, the smoothing time of the
deceleration ramp is calculated and used according to the jerk of the acceleration ramp.
The smoothing time of the deceleration is adapted as follows:
• Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration < Deceleration
A longer smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration = Deceleration
The smoothing times of the acceleration ramp and the deceleration ramp are the
same.
If an error occurs, the axis decelerates with the configured emergency stop deceleration.
A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:
Traversing jobs initiated in the user program are executed with the selected jerk.
The configuration of the emergency stop deceleration is related to the configured maximum
speed of the axis. If the maximum speed of the axis changes, then the value of the
emergency stop deceleration also changes (the emergency stop ramp-down time remains
unchanged).
Axis name
Define the name of the positioning axis/synchronous axis in this field. The technology object
is listed in the project navigation under this name. The variables of the technology object can
be used in the user program under this name.
Axis type
In this selection, configure whether the axis should perform linear or rotary motions.
Units of measure
In the drop-down list, select the desired measurement system for the position and velocity of
the axis.
Modulo
Select the check box "Enable modulo", if you want to employ a recurring unit of measure for
the axis (e.g. 0-360° for an axis of the "rotary" axis type).
● Modulo start value
In this field, define the position at which the modulo range should begin (e.g. 0° for an
axis of the "rotary" axis type).
● Modulo length
In this field, define the length of the modulo range (e.g. 360° for an axis of the "rotary"
axis type).
Drive type
In the drop-down list, select whether you want to deploy a PROFIdrive drive or a drive with
an analog drive connection.
PROFIdrive drives are connected to the controller by means of a digital communication
system (PROFINET or PROFIBUS). The communication occurs via PROFIdrive frames.
Drives with an analog drive connection receive the setpoint speed via an analog output
signal (e.g. from -10 V to +10 V) from the PLC.
Note
If you do not use an enable output, the drive cannot be immediately disabled on the part of
the system due to error reactions or monitoring functions. A controlled stop of the drive is not
guaranteed.
Note
The enable output and the ready input can be separately enabled.
The following conditions apply to the enabled ready input:
• The axis is not enabled (MC_Power Status=TRUE), until a signal is pending at the ready
input.
• If the signal at the ready input goes away for an enabled axis, then the axis is disabled
with an error.
• If the axis is disabled with the instruction MC_Power (Enable= FALSE), then the axis is
disabled even with a pending signal at the ready input.
Configuration - Mechanics
In the "Mechanics" configuration window, you can configure the mounting type of the
encoder, and the adaptation of the encoder value to the mechanical conditions.
Load gear
● Consider load gear and leadscrew pitch for encoder evaluation
Activate the check box, if you want to perform the configuration based on the gear ratio
and the leadscrew pitch.
Deactivate the check box, if you want to perform the configuration based on the motor
revolution and the resulting distance.
● Number of motor revolutions / number of load revolutions
The gear ratio of the load gear is specified as the ratio between motor revolutions and
load revolutions. Specify here an integral number of motor revolutions and the resulting
number of load revolutions.
Position parameter
● Leadscrew pitch (select "Consider load gear and leadscrew pitch for encoder evaluation")
In this field, configure the distance by which the load is moved when the leadscrew
makes one revolution.
● Leadscrew pitch (select "Consider load gear and leadscrew pitch for encoder evaluation")
In this field, configure the load distance for one motor revolution.
Load gear
● Number of motor revolutions / number of load revolutions
The gear ratio of the load gear is specified as the ratio between motor revolutions and
load revolutions. Specify here an integral number of motor revolutions and the resulting
number of load revolutions.
Select the same values for the number of motor revolutions and load revolutions, if no
load gear is present.
Position parameter
● Leadscrew pitch
In this field, configure the distance by which the load is moved when the leadscrew
makes one revolution.
Load gear
● Consider load gear and leadscrew pitch for encoder evaluation
Activate the check box, if you want to perform the configuration based on the gear ratio
and the leadscrew pitch.
Deactivate the check box, if you want to perform the configuration based on the motor
revolution and the resulting distance.
● Number of motor revolutions / number of load revolutions
The gear ratio of the load gear is specified as the ratio between motor revolutions and
load revolutions. Specify here an integral number of motor revolutions and the resulting
number of load revolutions.
Select the same values for the number of motor revolutions and load revolutions, if no
load gear is present.
Position parameter
● Leadscrew pitch (select "Consider load gear and leadscrew pitch for encoder evaluation")
In this field, configure the distance by which the load is moved when the leadscrew
makes one revolution.
● Leadscrew pitch (select "Consider load gear and leadscrew pitch for encoder evaluation")
In this field, configure the distance by which the load is moved when the motor makes
one revolution.
● Distance per encoder revolution
In this field, configure the distance recorded by the external measuring system per
encoder revolution.
Load gear
● Number of motor revolutions / number of load revolutions
The gear ratio of the load gear is specified as the ratio between motor revolutions and
load revolutions. Specify here an integral number of motor revolutions and the resulting
number of load revolutions.
Select the same values for the number of motor revolutions and load revolutions, if no
load gear is present.
Load gear
● Number of motor revolutions / number of load revolutions
The gear ratio of the load gear is specified as the ratio between motor revolutions and
load revolutions. Specify here an integral number of motor revolutions and the resulting
number of load revolutions.
Select the same values for the number of motor revolutions and load revolutions, if no
load gear is present.
Load gear
● Number of motor revolutions / number of load revolutions
The gear ratio of the load gear is specified as the ratio between motor revolutions and
load revolutions. Specify here an integral number of motor revolutions and the resulting
number of load revolutions.
Select the same values for the number of motor revolutions and load revolutions, if no
load gear is present.
Position parameter
● Distance per encoder revolution
● In this field, configure the distance recorded by the external measuring system per
encoder revolution.
Note
Only use hardware limit switches that remain permanently switched after the approach. This
switch state may only be canceled after the return into the permitted traversing range.
The digital inputs of the hardware limit switch are evaluated by default in cyclical data
exchange. In the settings for the input module under "I/O addresses", select the entry
"MC-Servo" for "Organization block" and the entry "PIP OB servo" for "Process image" if the
hardware limit switches are to be evaluated in the position control cycle of the drive.
CAUTION
During installation of hardware limit switches, attention must be paid to the filter times of the
digital inputs
Based on the time for a servo clock cycle and the filter time of the digital inputs, the
resulting delay times must be taken into account.
The filter time is configurable in individual digital input modules in the device configuration.
The digital inputs are set to a filter time of 6.4 ms by default. If these are used as hardware
limit switches, undesired decelerations may occur. If this occurs, reduce the filter time for
the relevant digital inputs.
The filter time can be set under "Input filter" in the device configuration of the digital inputs.
Note
Enabled software limit switches only affect a homed axis.
Maximum velocity
In this field, define the maximum permitted velocity of the axis.
Note
A change in the maximum velocity influences the acceleration and deceleration values of the
axis. The ramp-up and ramp-down times are retained.
The "maximum deceleration" for active homing with change of direction at the hardware limit
switch must be set sufficiently large, to brake the axis before reaching the mechanical
endstop.
Note
The configured smoothing time displayed in the configuration, applies only to the
acceleration ramp.
If the values of the acceleration and deceleration differ, the smoothing time of the
deceleration ramp is calculated and used according to the jerk of the acceleration ramp.
The smoothing time of the deceleration is adapted as follows:
• Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration < Deceleration
A longer smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration = Deceleration
The smoothing times of the acceleration ramp and the deceleration ramp are the
same.
If an error occurs, the axis decelerates with the configured emergency stop deceleration.
A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:
Traversing jobs initiated in the user program are executed with the selected jerk.
Velocity
In this field, define the default value for the velocity of the axis.
Note
A change in the velocity influences the acceleration and deceleration values of the axis. The
ramp-up and ramp-down times are retained.
Note
The configured smoothing time displayed in the configuration, applies only to the
acceleration ramp.
If the values of the acceleration and deceleration differ, the smoothing time of the
deceleration ramp is calculated and used according to the jerk of the acceleration ramp.
The smoothing time of the deceleration is adapted as follows:
• Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration < Deceleration
A longer smoothing time is used for the deceleration ramp compared with the
acceleration ramp.
• Acceleration = Deceleration
The smoothing times of the acceleration ramp and the deceleration ramp are the
same.
If an error occurs, the axis decelerates with the configured emergency stop deceleration.
A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:
Traversing jobs initiated in the user program are executed with the selected jerk.
The configuration of the emergency stop deceleration is related to the configured maximum
velocity of the axis. If the maximum velocity of the axis changes, then the value of the
emergency stop deceleration also changes (the emergency stop ramp-down time remains
unchanged).
6.6.4.6 Homing
Homing means matching the position value of a technology object to the real, physical
location of the drive. Absolute positions on the axis can only be approached with a homed
axis.
In S7-1500 Motion Control, axis homing is implemented with the Motion Control instruction,
"MC_Home". A distinction is made between the following operation modes of the Motion
Control instruction:
Active homing
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
Approach direction
Select the approach direction for seeking the proximity switch.
"Positive" is the approach direction in the direction of positive position values; "negative" in
the direction of negative position values.
Homing direction
Select the direction in which the zero mark should be approached for homing.
Approach velocity
In this field, specify the velocity at which the proximity switch is sought during the home
position approach. A possibly configured home position offset is traversed with the same
velocity.
Homing velocity
In this field, specify the velocity at which the axis approaches the zero mark for homing. For
zero mark detection, the proximity switch must be exited.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect, when the Motion Control instruction "MC_Home" is executed with
Mode = 5.
Homing direction
Select the direction in which the next zero mark should be approached for homing.
"Positive" is the homing direction in the direction of positive position values; "negative" in the
direction of negative position values.
Approach velocity
In the "Zero mark via PROFIdrive frame" homing mode, the approach velocity for traversing
the home position offset is used.
Homing velocity
In this field, specify the velocity at which the axis approaches the zero mark for homing.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect, when the Motion Control instruction "MC_Home" is executed with
Mode = 5.
Approach direction
Select the approach direction for seeking the homing mark.
"Positive" is the approach direction in the direction of positive position values; "negative" in
the direction of negative position values.
Homing direction
Select the direction in which the homing mark should be approached for homing.
Homing mark
Select the switch position of the "digital input" that is to be used as homing mark.
When a "digital input" is overshot, two switch edges which are spatially separated from one
another are generated. The selection of the positive or negative side ensures that the
homing mark is always evaluated based on the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the
switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of
whether it causes a rising or falling edge.
Approach velocity
In this field, specify the velocity at which the "digital input" should be sought during the home
position approach. A possibly configured home position offset is traversed with the same
velocity.
Homing velocity
In this field, specify the velocity at which the axis approaches the home position for homing.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect, when the Motion Control instruction "MC_Home" is executed with
Mode = 5.
Passive homing
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
Homing direction
Select the direction in which the zero mark should be approached for homing. The next zero
mark after exiting the proximity switch is used.
The following options are available:
● Positive
Axis moves in the direction of higher position values.
● Negative
Axis moves in the direction of lower position values.
● Current
The currently effective approach direction is used for homing.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect when the Motion Control instruction "MC_Home" is executed with
Mode = 10.
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
Homing direction
Select the direction in which the next zero mark should be approached for homing. The
following options are available:
● Positive
Axis moves in the direction of higher position values.
● Negative
Axis moves in the direction of lower position values.
● Current
The currently effective approach direction is used for homing.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect when the Motion Control instruction "MC_Home" is executed with
Mode = 10.
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
Digital input
In this dialog field, select a digital input which should act as a homing mark (reference cam).
Homing direction
Select the direction in which the homing mark should be approached for homing.
The following options are available:
● Positive
Axis moves in the direction of higher position values.
● Negative
Axis moves in the direction of lower position values.
● Current
The currently effective approach direction is used for homing.
Homing mark
Select which switch position of the "digital input" is to be used as homing mark.
When a "digital input" is overshot, two switch edges which are spatially separated from one
another are generated. The selection of the positive or negative side ensures that the
homing mark is always evaluated based on the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the
switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of
whether it causes a rising or falling edge.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect when the Motion Control instruction "MC_Home" is executed with
Mode = 10.
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
Positioning window:
In this field, configure the size of the positioning window. If the axis is located within this
window, then the position is considered to be "reached".
Warning level:
In this field, configure a percentage of the current following error limit, above which a
following error warning should be output.
Example: The current maximum following error is 100 mm; the warning level is configured at
90%. If the current following error exceeds a value of 90 mm, then a following error warning
will be output.
Following error:
In this field, configure the permissible following error for low velocities (without dynamic
adaptation).
Standstill window:
In this field, configure the size of the standstill window. For standstill to be indicated, the
velocity of the axis must be within this window.
Precontrol
In this box, configure the percentage velocity precontrol of the position control loop.
Gain
In the input field, enter the gain Kv of the control loop.
Note
Dynamic Servo Control (DSC) is only possible with standard frame 5.
See also
Function and structure of the optimization (Page 207)
Control (Page 59)
Units of measure
In the drop-down list, select the desired measurement system for the position and velocity of
the external encoder.
Modulo
Select the check box "Activate modulo", if you want to employ a recurring unit of measure for
the external encoder (e.g. 0-360° for an external encoder of the "rotary" type).
● Modulo start value
In this field, define the position at which the modulo range should begin (e.g. 0° for an
external encoder of the "rotary" type).
● Modulo length
In this field, define the length of the modulo range (e.g. 360° for an external encoder of
the "rotary" type).
Encoder type
In this area, you can configure how the encoder data are to be evaluated. The specifications
must match those in the device configuration.
See also
Configuration - Data exchange (Page 149)
Encoder to PROFINET/PROFIBUS (Page 151)
Encoder to PROFINET/PROFIBUS
Encoder type
Depending on the selected encoder type, configure the following parameters:
See also
Configuration - Data exchange (Page 149)
Encoder to technology module (Page 149)
Configuration - Mechanics
Configure the encoder parameters for the position of the externally controlled drive in the
"Mechanics" configuration window.
The configuration varies according to the type of encoder:
● Linear (Page 153)
● Rotary (Page 154)
Linear
Measuring gearbox
● Consider measuring gearbox and leadscrew pitch for encoder evaluation
Activate the check box, if you want to perform the configuration based on the gear ratio
and the leadscrew pitch.
Deactivate the check box, if you want to perform the configuration based on the encoder
revolution and the resulting distance.
● Number of encoder revolutions / number of load revolutions
The gear ratio of the load gear is specified as the ratio between motor revolutions and
load revolutions. Specify here an integral number of motor revolutions and the resulting
number of load revolutions.
Position parameter
● Leadscrew pitch (select "Consider measuring gear and leadscrew pitch for encoder
evaluation")
In this field, configure the distance by which the load is moved when the leadscrew
makes one revolution.
● Load movement per motor revolution (select "Consider measuring gear and leadscrew
pitch for encoder evaluation")
In this field, configure the load distance for one motor revolution.
See also
Configuration - Mechanics (Page 153)
Rotary (Page 154)
Rotary
Measuring gearbox
● Number of encoder revolutions / number of load revolutions
The gear ratio of the measuring gearbox is specified as the ratio between encoder
revolutions and load revolutions. Specify here an integral number of load revolutions and
the resulting number of encoder revolutions.
Select the same values for the number of motor revolutions and load revolutions, if no
load gear is present.
Position parameter
● Distance per encoder revolution
In this field, configure the value indicated by the external measuring system per encoder
revolution.
See also
Configuration - Mechanics (Page 153)
Linear (Page 153)
6.7.3.2 Homing
Configuration - Homing
Configure the parameters for homing the external encoder in the "Homing" configuration
window. Homing is performed using the Motion Control instruction "MC_Home" Mode = 2, 8
and 10.
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
Homing direction
Select the direction in which the zero mark should be approached for homing. The next zero
mark after exiting the proximity switch is used.
The following options are available:
● Positive
Axis moves in the direction of higher position values.
● Negative
Axis moves in the direction of lower position values.
● Current
The currently effective approach direction is used for homing.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect when the Motion Control instruction "MC_Home" is executed with
Mode = 10.
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
See also
Configuration - Homing (Page 155)
Zero mark via PROFIdrive frame (Page 157)
Homing mark via digital input (Page 158)
Homing direction
Select the direction in which the next zero mark should be approached for homing. The
following options are available:
● Positive
Axis moves in the direction of higher position values.
● Negative
Axis moves in the direction of lower position values.
● Current
The currently effective approach direction is used for homing.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect when the Motion Control instruction "MC_Home" is executed with
Mode = 10.
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
See also
Configuration - Homing (Page 155)
Zero mark via PROFIdrive frame and proximity switch (Page 156)
Homing mark via digital input (Page 158)
Homing direction
Select the direction in which the homing mark should be approached for homing.
The following options are available:
● Positive
Axis moves in the direction of higher position values.
● Negative
Axis moves in the direction of lower position values.
● Current
The currently effective approach direction is used for homing.
Homing mark
Select which switch position of the "digital input" is to be used as homing mark.
When a "digital input" is overshot, two switch edges which are spatially separated from one
another are generated. The selection of the positive or negative side ensures that the
homing mark is always evaluated based on the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the
switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of
whether it causes a rising or falling edge.
Home position
In this field, configure the absolute coordinate of the home position. The home position
configured here is in effect when the Motion Control instruction "MC_Home" is executed with
Mode = 10.
Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
See also
Configuration - Homing (Page 155)
Zero mark via PROFIdrive frame (Page 157)
Zero mark via PROFIdrive frame and proximity switch (Page 156)
Function scope
The following functions are available for analyzing the parameters of the technology objects
and for enabling targeted monitoring and modification.
Display functions:
● Display of parameter values in offline and online mode
● Display of status information of the parameters
● Display of value deviations and option for direct correction
● Display of configuration errors
● Display of value changes as a result of parameter dependencies
● Display of all memory values of a parameter: Start value PLC, Start value project, Monitor
value
● Display of the parameter comparison of the memory values of a parameter
Operator control functions:
● Navigation for quickly changing between the parameters and parameter structures.
● Text filter for faster searches for particular parameters.
● Sorting function for customizing the order of parameters and parameter groups to
requirements.
● Memory function for backing up structural settings of the Parameter view.
● Monitoring and modifying of parameter values online.
● Function for saving a snapshot of parameter values of the CPU in order to capture
momentary situations and to respond to them.
● Function for applying a snapshot of parameter values as start values.
● Download of modified start values to the CPU.
● Comparison functions for comparing parameter values with one another.
6.8.2.1 Toolbar
The following functions can be selected in the toolbar of the parameter view.
6.8.2.2 Navigation
Within the "Parameter view" tab, the following alternative navigation structures can be
selected.
Navigation Explanation
Functional navigation In the functional navigation, the structure of the parameters is
based on the structure in the configuration dialog ("Functional
view" tab), commissioning dialog, and diagnostics dialog.
Data structure In the data navigation navigation, the structure of the parameters
is based on the structure in the technology data block.
You can use the "Select navigation structure" drop-down list to toggle the navigation
structure.
Requirement
The technology object was added in the project navigator.
Procedure
1. Open the "Technology objects" folder in the project tree.
2. Open the technology object in the project tree.
3. Double-click the "Configuration" object.
4. Select the "Parameter view" tab in the top right corner.
Result
The Parameter view opens. Each displayed parameter is represented by one row in the
parameter table.
The displayable parameter properties (table columns) vary depending on whether you are
working with the Parameter view in offline or online mode.
In addition, you can selectively display and hide individual table columns.
6.8.4.1 Overview
The following table provides an overview of the functions of the Parameter view in online and
offline mode described in the following.
● Column "Offline" = X: This function is possible in offline mode.
● Column "Online" = X: This function is possible in online mode.
Sorting by column
1. Position the cursor in the header cell of the desired column.
The background of this cell turns blue.
2. Click the column header.
Result
The entire parameter table is sorted by the selected column. A triangle with tip facing up
appears in the column header.
Clicking the column header again changes the sorting as follows:
● Symbol “▲”: Parameter table is sorted in ascending order.
● Symbol “▼”: Parameter table is sorted in descending order.
● No symbol: The sorting is removed again. The parameter table assumes the default
display.
The “../“ prefix in the “Name in DB” column is ignored when sorting.
Error indication
Parameter assignment errors that result in compilation errors (e.g., limit violation) are
indicated in the Parameter view.
Every time a value is entered in the Parameter view, a check is made for process-related
and syntax errors and displayed with the following indicators:
● Red error symbol in the "Status of configuration" (offline mode) or "Compare result"
(online mode, depending on the selected comparison type) columns
● Table field with red background
If you click the bad field, a roll-out error message appears with information of the
permissible value range or the required syntax (format)
Compilation error
From the error message of the compiler, you can directly open the Parameter view
(functional navigation) containing the parameter causing the error in situations where the
parameter is not displayed in the configuration dialog.
Boundary conditions
● If other parameters depend on the parameter whose start value was changed, the start
value of the dependent parameters are also adapted.
● If a parameter of a technology object is not editable, it is also not editable in the
parameter view. The ability to edit a parameter can also depend on the values of other
parameters.
Error indication
When a start value is input, a check is made for process-related and syntax errors and the
result is indicated.
Bad start values are indicated by:
● Red error symbol in the "Status of configuration" (offline mode) or "Compare result"
(online mode, depending on the selected comparison type) columns
and/or
● Red background in the “Start value project” field
If you click on the bad field, a roll-out error message appears with information of the
permissible value range or the necessary syntax (format)
Requirements
● There is an online connection.
● The technology object is downloaded to the CPU.
● The Parameter view of the technology object is open.
Procedure
As soon as the Parameter view is online, the following columns are additionally displayed:
● Compare result
● Start value PLC
● Monitor value
● Modify value
● Selection for transmission
The "Monitor value" column shows the current parameter values on the CPU.
Display
All columns that are only available online have an orange background:
See also
Parameter table (Page 162)
DANGER
Danger when modifying:
Changing the parameter values while the plant is operating may result in severe damage to
property and personal injury in the event of malfunctions or program errors.
Make sure that dangerous states cannot occur before you use the "Modify" function.
Requirements
● There is an online connection.
● The technology object is downloaded to the CPU.
● The Parameter view of the technology object is open.
● The parameter can be modified (associated field in the "Modify value" column has a light-
orange background).
Procedure
To modify parameters immediately, follow these steps:
● Enter the desired modify values in the “Modify values” column of the parameter table.
The selected parameters are modified once and immediately with the specified values and
can be monitored in the "Modify values" column. The check boxes for modifying in the
"Selection for transmission" column are automatically cleared after the modify request is
complete.
Error indication
When a start value is input, a check is made immediately for process-related and syntax
errors and the result is indicated.
Bad start values are indicated by:
● Red background in the “Modify value” field
and
● If you click the bad field, a roll-out error message appears with information of the
permissible value range or the necessary syntax (format)
Requirements
● There is an online connection.
● The technology object is downloaded to the CPU.
● The Parameter view of the technology object is open.
Procedure
To compare the start values on the various target systems, follow these steps:
1. Click the "Selection of compare values" icon .
A selection list containing the comparison options opens:
– Start value project - Start value PLC (default setting)
2. Select the desired comparison option.
The selected comparison option is executed as follows:
– A scales symbol appears in the header cells of the two columns selected for
comparison.
– Symbols are used in the "Compare result" column to indicate the result of the
comparison of the selected columns.
Symbol Meaning
The compare values are equal and error-free.
At least one of the two compare values has a process-related or syntax error.
The comparison cannot be performed. At least one of the two compare values is not available (e.g., snapshot).
7.2.1 Introduction
The properties of real objects are configured by means of the technology objects and saved
in a technology data block. The technology data block contains all configuration data,
setpoint and actual values, and status information of the technology object. The TIA Portal
automatically creates the technology data block when the technology object is created. You
access the data of the technology data block with your user program.
A listing and description of the tags can be found in the Appendix (Page 332).
Description
Access to data in the technology data block occurs in accordance with the access to
standard data blocks.
Note
Save changes with "WRIT_DBL"
Changes to immediately effective tags are lost on POWER OFF of the CPU, or restart of the
technology object.
If changes in the technology data block should also be retained after POWER OFF of the
CPU, or restart of the technology object, you must write the changes to the starting value in
load memory using the extended instruction "WRIT_DBL".
Note
Using the "READ_DBL" and "WRIT_DBL" data block functions
The "READ_DBL" and "WRIT_DBL" data block functions can only be used on a single tag in
conjunction with the tags of the technology object. The "READ_DBL" and "WRIT_DBL" data
block functions cannot be applied to data structures of the technology object.
Requirements
The technology object has been created.
Procedure
To evaluate the individual bits in the data word "StatusWord", proceed as follows:
1. Crate a global data structure. Name the data structure, e.g. as "Status".
2. Create a double word (DWORD) in the data structure "Status". Name the data structure,
e.g. as "Temp".
3. Create 32 Boolean tags in the "Status" data structure. You can obtain a clearer overview
by naming Booleanhe Boolean tags as defined for the bits in the technology DB
(e.g. name the fifth Boolean tag "HomingDone").
4. Copy the tag <TO>.StatusWord as needed from the technology data block to the double
word "Temp" in your data structure.
5. Copy the bits of dword "Temp" to the corresponding Boolean tags by means of bit
access.
6. Use the Boolean tags to query the status bits.
Evaluate the "ErrorWord" and "WarningWord" data words as specified in steps 1 to 6.
Example
The following example shows how you can read and save the fifth bit "HomingDone" of the
data word "StatusWord":
SCL
Status.Temp := <TO>.StatusWord; Copy status
word
Status.HomingDone := Status.Temp.X5; Copy individual
bits per bit
access
STL
L <TO>.StatusWord Copy status
word
T Status.Temp
U Status.Temp.X5 Copy individual
bits per bit
access
= Status.HomingDone
Requirement
The technology object has been created.
Procedure
To change restart-relevant data, proceed as follows:
1. Create a data block and fill it with the restart-relevant values, that you want to change in
the technology data block. In doing so, the data types must match the tags to be
changed.
2. Write the values from your data block to the starting values of the tags of the technology
data block in load memory, using the extended instruction "WRIT_DBL".
If restart-relevant data were changed, this will be indicated in the <TO>.StatusWord.X3
(OnlineStartValuesChanged) tag of the technology object.
3. Perform a restart of the technology object using the Motion Control instruction
"MC_Reset" with parameter "Restart" = TRUE.
After the restart of the technology object, the new value is transferred into the technology
data block in work memory, and is effective.
Description
When creating your user program, take account of the following explanations of the Motion
Control instruction parameters.
Job start and receipt of the input parameters of a Motion Control instruction
When jobs are started, and when changed parameter values are received, a distinction is
made between the following Motion Control instructions:
● Motion Control instructions with "Execute" parameter
With a rising edge at the "Execute" parameter, the job is started and the values pending
in the input parameters are applied.
Subsequently changed parameter values are not applied until the next job start.
Resetting the "Execute" parameter does not end the job, but does have an effect on the
indication duration of the job status. As long as "Execute" is set to TRUE, the output
parameters will be updated. If "Execute" is reset before the completion of a job, the
parameters "Done", "Error" and "CommandAborted" are correspondingly set for only one
call cycle.
● Motion Control instructions with "Enable" parameter
The job is started by setting the "Enable" parameter.
As long as "Enable" = TRUE. the job remains enabled and changed parameter values are
immediately applied.
The job is ended by resetting the "Enable" parameter.
The input parameters "JogForward" and "JogBackward" of the "MC_MoveJog" Motion
Control instruction correspond in their behavior to the "Enable" parameter.
Job status
The following output parameters indicate the status of the job processing:
● Motion Control instructions with "Done" parameter
The normal completion of a job is indicated with parameter "Done" = TRUE.
● Motion Control instructions without "Done" parameter
The achievement of the job target is indicated by means of other parameters
(e.g. "Status", "InVelocity"). For more information, refer to the section "Tracking running
jobs (Page 184).
● "Busy" parameter
As long as a job is being processed, the parameter "Busy" shows the value TRUE. If a
job was ended or aborted, "Busy" shows the value FALSE.
● "CommandAborted" parameter
If a job was aborted by another job, CommandAborted shows the value "TRUE".
● "Error" parameter
If an error occurs in the Motion Control instruction, the "Error" parameter shows the value
TRUE. The ErrorID parameter shows the cause of the error.
As long as the "Execute" or "Enable" parameter is set to TRUE, the output parameters will
be updated. Otherwise the parameters "Done", "Error" and CommandAborted" are
correspondingly only set for one cycle.
Using "Exe_1", an "MC_MoveAbsolute" job (A1) with target position 1000.0 is initiated.
"Busy_1" is set to TRUE. The axis is accelerated to the specified velocity and moved to the
target position (see TO_1.Velocity and TO_1.Position). Before the target position is reached,
the job is overridden at time ① by another "MC_MoveAbsolute" job (A2). The abort is
signaled via "Abort_1", and "Busy_1" is set to FALSE. The axis is braked to the velocity
specified in A2, and moved to the new target position 1500.0. When the axis reaches the
target position, this is signaled via "Done_2".
Requirements
The technology object was created.
Procedure
To add Motion Control instructions in your user program, proceed as follows:
1. Double click your program block in the Project Navigator (the program block must be
called in the cyclical program).
The program block is opened in the programming editor, and the available instructions
are displayed.
2. In the "Instructions" task card, open the "Technology > Motion Control > S7-1500 Motion
Control" folder.
3. Drag and drop the Motion Control instruction, e.g. "MC_Power", into the desired segment
of the program block.
The "Call options" dialog opens.
4. In the dialog, specify a name and a number for the instance data block of the Motion
Control instruction.
5. Click "OK".
The Motion Control instruction "MC_Power" is added to the segment.
The instance data block is automatically created under "Program Blocks > System Blocks
> Program Resources".
6. Input parameters without a default value (e.g. "Axis"), must be supplied. Mark the
technology object in the Project Navigator, and drag and drop it to <...> in the "Axis"
parameter.
After specifying the technology object in the "Axis" parameter, the following buttons are
available to you:
To open the configuration of the technology object, click on the toolbox icon.
To open the diagnostics of the technology object, click on the stethoscope icon.
7. Add additional Motion Control instructions in accordance with steps 3 through 6.
See also
Tracking active jobs (Page 184)
Tags of the positioning axis/synchronous axis technology object (Page 332)
Description
Motion Control jobs are started by setting the "Execute" or "Enable" parameter of the Motion
Control instruction. The call of the Motion Control instructions for a technology object should
occur in an execution level.
When executing Motion Control jobs, you should also take note of the status of the
technology object.
Starting Motion Control jobs should be performed in the following steps:
1. Query the status of the technology object.
2. Initiate new job for the technology object.
3. Check job status.
These steps are explained using the example of a job for absolute positioning.
Additional information
An option for the evaluation of the individual status bits, error bits, and warning bits can be
found in the Evaluating StatusWord, ErrorWord and WarningWord (Page 175) section.
7.5.1 Introduction
The current status of the job processing is made available via the output parameters of the
Motion Control instruction. These parameters are updated with each call of the Motion
Control instruction.
When tracking jobs, a distinction is made between three groups:
● Motion Control instructions with "Done" parameter (Page 185)
● Motion Control instructions without "Done" parameter (Page 189)
● Motion Control instruction "MC_MoveJog" (Page 193)
Description
Jobs for Motion Control instructions with the "Done" parameter are started with a positive
edge at the "Execute" parameter. If the job was completed without errors and without
interruption by another job (e.g. "MC_ MoveAbsolute": target position reached), then the
"Done" parameter shows the value TRUE.
The following Motion Control instructions have a "Done" parameter:
● MC_Home
● MC_MoveRelative
● MC_MoveAbsolute
● MC_MoveSuperimposed
● MC_Halt
● MC_Reset
The behavior of the parameters is presented by way of example for various situations:
You set "Execute" after completion of the job to FALSE. You set "Execute" during processing of the job to FALSE.
① The job is started with a positive edge at the "Execute" parameter. Depending on the program, "Execute" can be reset
to the FALSE value while the job is still busy, or retain the TRUE value until the job has been completed.
② While the job is active, the "Busy" parameter shows the value TRUE.
③ When the job is complete (for example, for Motion Control instruction "MC_MoveAbsolute": target position reached)
the "Busy" parameter changes to FALSE, and the "Done" parameter to TRUE.
④ As long as the "Execute" parameter retains the value TRUE after completion of the job, the "Done" parameter also
retains the value TRUE.
⑤ If the "Execute" parameter has been set to FALSE before the job is complete, then the "Done" parameter only shows
the value TRUE for one execution cycle.
Job termination
If the Motion Control job is aborted during processing by another job, then this is indicated in
the "CommandAborted" parameter with the value TRUE. The signal status of the "Execute"
parameter influences the indication duration in the "CommandAborted" parameter:
You set "Execute" after the job is aborted to FALSE. You set "Execute" before the job is aborted to FALSE.
① The job is started with a positive edge at the "Execute" parameter. Depending on the program, "Execute" can be reset
to the FALSE value while the job is still busy, or retain the TRUE value until the job has been completed.
② While the job is active, the parameter "Busy" shows the value TRUE.
③ During job execution, the job is aborted by another Motion Control job. When the job is aborted, the "Busy" parameter
changes to "FALSE" and "CommandAborted" changes to TRUE.
④ As long as the "Execute" parameter retains the value TRUE after completion of the job, the "CommandAborted" pa-
rameter also retains the value TRUE.
⑤ If the "Execute" parameter has been set to FALSE before the job is aborted, then the "CommandAborted" parameter
only shows the value TRUE for one execution cycle.
You set "Execute" after the occurrence of the error to You set "Execute" before the occurrence of the error to
FALSE. FALSE.
① The job is started with a positive edge at the "Execute" parameter. Depending on the program, "Execute" can be reset
to the FALSE value while the job is still busy, or retain the TRUE value until the job has been completed.
② While the job is active, the "Busy" parameter shows the value TRUE.
③ An error occurs during the execution of the job. When the error occurs, the "Busy" parameter changes to FALSE, and
the "Error" parameter to TRUE.
④ As long as the "Execute" parameter retains the value TRUE after the occurrence of the error, the "Error" parameter
also retains the value TRUE.
⑤ If the "Execute" parameter has been set to FALSE before the occurrence of the error, then the "Error" parameter only
shows the value TRUE for one execution cycle.
Description
Motion Control instructions without the "Done" parameter use a special parameter to achieve
the job target (e.g. "InVelocity", "InGear"). The target state or the movement is paused until
the job is canceled or an error occurs.
The following Motion Control instructions have a special parameter to display the job status:
● MC_Power ( parameter "Status")
● MC_MoveVelocity (parameter "InVeloctity")
● MC_GearIn (parameter "InGear")
● MC_MoveJog (parameter "InVelocity")
The special behavior of "MC_MoveJog" is described in the section Motion Control
Instruction MC_MoveJog (Page 193).
The behavior of the parameter is shown for various situations using the Motion Control
instruction "MC_MoveVelocity" as an example:
Example "MC_MoveVelocity"
An "MC_MoveVelocity" job is started with a positive edge at the "Execute" parameter. The
job objective is fulfilled when the assigned velocity is reached and the axis travels at
constant velocity. When the assigned velocity is reached and maintained, this is indicated in
the "InVelocity" parameter with the value TRUE.
The motion of the axis can, for example, be stopped with an "MC_Halt" job.
① The job is started with a positive edge at the "Execute" parameter. Depending on the program, "Execute" can be reset
to the FALSE value before or after the parameterized velocity has been reached. While the job is active, the parame-
ter "Busy" shows the value TRUE.
② When the assigned velocity is reached, the "InVelocity" parameter changes to TRUE. The "Busy" and "InVelocity"
parameters retain the TRUE value until a different Motion Control job overrides the "MC_MoveVelocity" job.
You set "Execute" after the job is aborted to FALSE. You set "Execute" before the job is aborted to FALSE.
① The job is started with a positive edge at the "Execute" parameter. Depending on the program, "Execute" can be reset
to the FALSE value while the job is still busy, or retain the TRUE value until the job is aborted.
② While the job is active, the "Busy" parameter shows the value TRUE.
③ During job execution, the job is aborted by another Motion Control job. When the job is aborted, the "Busy" parameter
changes to "FALSE" and "CommandAborted" changes to TRUE.
④ As long as the "Execute" parameter retains the value TRUE after completion of the job, the "CommandAborted" pa-
rameter also retains the value TRUE.
⑤ If the "Execute" parameter has been set to FALSE before the job is aborted, then the "CommandAborted" parameter
only shows the value TRUE for one execution cycle.
You set "Execute" after the occurrence of the error to You set "Execute" before the occurrence of the error to
FALSE. FALSE.
① The job is started with a positive edge at the "Execute" parameter. Depending on the program, "Execute" can be reset
to the FALSE value while the job is still busy, or retain the TRUE value until the error has occurred.
② While the job is active, the "Busy" parameter shows the value TRUE.
③ An error occurs during the execution of the job. When the error occurs, the "Busy" parameter changes to FALSE, and
the "Error" parameter to TRUE.
④ As long as the "Execute" parameter retains the value TRUE after completion of the job, the "Error" parameter also
retains the value TRUE.
⑤ If the "Execute" parameter has been set to FALSE before the job is aborted, then the "Error" parameter only shows
the value TRUE for one execution cycle.
Description
An "MC_MoveJog" job is started by setting the "JogForward" or "JogBackward" parameter.
The job objective is fulfilled when the assigned velocity is reached and the axis travels at
constant velocity. When the assigned velocity is reached and maintained, this is indicated in
the "InVelocity" parameter with the value TRUE.
The job is complete when the "JogForward" or "JogBackward" parameter has been set to the
value FALSE and the axis has come to a standstill.
The behavior of the parameters is presented below for various example situations:
Jog mode is controlled by the "JogForward" parameter. Jog mode is controlled by the "JogBackward" parameter.
② While the job is active, the "Busy" parameter shows the value TRUE.
③ When the assigned velocity is reached, the "InVelocity" parameter changes to TRUE.
④ When the "JogForward" or "JogBackward" parameter is reset, the motion of the axis ends. The axis decelerates. The
"InVelocity" parameter changes to FALSE.
⑤ If the axis has come to a standstill, then the Motion Control job is complete and the "Busy" parameter changes to
FALSE.
Jog mode is controlled by the "JogForward" parameter. Jog mode is controlled by the "JogBackward" parameter.
② While the job is processing, the "Busy" parameter shows the value TRUE.
③ During job execution, the job is aborted by another Motion Control job. When the job is aborted, the "Busy" parameter
changes to "FALSE" and "CommandAborted" changes to TRUE.
④ When the "JogForward" or "JogBackward" parameter is reset, the "CommandAborted" parameter likewise changes to
FALSE.
Jog mode is controlled by the "JogForward" parameter. Jog mode is controlled by the "JogBackward" parameter.
② While the job is active, the "Busy" parameter shows the value TRUE.
③ An error occurs during the execution of the job. When the error occurs, the "Busy" parameter changes to "FALSE",
and "Error" changes to TRUE.
④ When the "JogForward" or "JogBackward" is reset to the value FALSE, the "Error" parameter likewise changes to
FALSE.
Termination of a motion
If a motion must be aborted, you can perform the following measures:
● "Execute MC_Halt (Page 275)"
To abort a motion and stop the axis, you can use the "MC_Halt" instruction.
● "Disable MC_Power (Page 234)"
In an emergency, you can stop the axis using an emergency stop ramp. For this purpose,
set the "Enable" parameter of the "MC_Power" instruction to FALSE. The axis is
decelerated according to the selected "StopMode" and all jobs at the technology object
are aborted.
Description
After the CPU is switched on, or after technology objects are downloaded into the CPU, the
system automatically initializes the technology objects with the start values from the
technology data blocks. If restart-relevant changes are detected during a reload into the
CPU, a restart of the technology object is automatically performed.
If restart-relevant data have been changed in RUN mode by the user program, then the
technology object must be reinitialized by the user in order for the changes to be used.
If changes in the technology data block should also be retained after the restart of the
technology object, then you must write the changes to the start value in load memory using
the extended instruction "WRIT_DBL".
Restart necessary
A necessary TO restart is indicated at "Technology object > Diagnostics > Status and error
bits > Axis status or Encoder status > Online start value changed", as well as in the tag of
technology object <TO>.StatusWord.X3 (OnlineStartValuesChanged).
See also
Change restart-relevant data (Page 177)
Requirement
● The configuration of the following components is complete:
– CPU
– BUS communication
– Drives
– Technology objects
● The user program has been created.
● The wiring of the CPU and of the associated I/O is complete.
● The commissioning and optimization of the drive is complete.
Procedure
Proceed as follows to commission the Motion Control-specific components of your
equipment:
Description
You traverse individual axes with the axis control panel.
A user program is necessary for the operation of the axis control panel. With the axis control
panel, you take over master control for a technology object and control the movements of the
axis.
WARNING
Uncontrolled axis motions
During operation with the axis control panel, the axis can execute uncontrolled motions
(e.g. due to erroneous configuration of the drive, or of the technology object). Furthermore,
any synchronized following axis is moved as well when moving a leading axis with the axis
control panel.
Therefore, perform the following protective measures before operation with the axis control
panel:
• Ensure that the EMERGENCY OFF switch is within the reach of the operator.
• Enable the hardware limit switches.
• Enable the software limit switches.
• Ensure that following error monitoring is enabled.
• Make sure that no following axis is coupled to the axis to be moved.
The axis control panel of the speed axis, positioning axis and synchronous axis can be found
in the Project Navigator under "Technology object > Commissioning".
The axis control panel is divided into the following areas:
● Master control
● Axis
● Operating mode
● Modify
● Axis status
● Current values
The following table lists the elements of the axis control panel:
If the master control of the axis control panel is lost repeatedly without a direct er-
ror message, the online connection to the CPU may be impaired because the
communication load is too high. In this case, the alarm "Error during commission-
ing. Sign-of-life failure between controller and TIA Portal" is displayed.
Note
No transfer of the parameters
The configured parameter values are discarded when master control is returned. Transfer
the values as needed into your configuration.
If you change configuration values with the axis control panel during operation, they have no
effect on the operation of the axis control panel.
Operating mode
The following table shows the operating modes of the axis control panel:
Requirement
● The CPU must be in RUN mode.
● The project has been created and downloaded to the CPU.
● The technology object is disabled by your user program (MC_Power.Enable = FALSE).
● The axis control panel for the technology object is not used by another installation of the
TIA Portal (Team Engineering as of CPU V1.5).
Procedure
Proceed as follows to enable control the axis using the axis control panel:
1. Click "Activate" in the "Master control" area to assume master control over the technology
object and to set up an online connection to the CPU.
A warning message is displayed.
2. If necessary, adapt the sign-of-life monitoring and confirm with "OK".
3. In the "Axis" area, click the "Enable" button to enable the technology object.
4. In the drop-down list in the "Operation mode" area, select the desired function of the axis
control panel.
5. In the "Control" area, specify the parameter values for your job.
6. Click the "Start", "Forward" or "Backward" button to start the job.
7. Click the "Stop" button to stop the job.
8. Repeat steps 3 through 6 for additional jobs.
9. In the "Axis" area, click the "Disable" button to disable the technology object.
10.In the "Master control" area, click the "Deactivate" button to return master control to your
user program.
9.4 Optimization
Description
The "Optimization" function supports you in determining the optimal gain (Kv factor) for the
position control of the axis. The axis velocity profile is recorded by means of Trace function
to this effect for the duration of a configurable positioning movement. Then you can evaluate
the recording, and adapt the gain accordingly.
The "Optimization" function for the positioning axis and synchronous axis technology objects
can be found in the Project Navigator under "Technology object > Commissioning".
The "Optimization" dialog is divided into the following areas:
● Master control
● Axis
● Optimize gain setting
● Trace
If the master control of the axis control panel is lost repeatedly without a direct er-
ror message, the online connection to the CPU may be impaired because the
communication load is too high. In this case, the alarm "Error during commission-
ing. Sign-of-life failure between controller and TIA Portal" is displayed.
In the input field for the actual value, enter the new value for the gain. The new
value is applied by clicking the "Forward" or "Backward" button.
Distance Travel distance for a test step
Measurement Time for a test step
duration
"Adapt dynamic With the "Adapt dynamic values" check box, you enable adaptation of the accelera-
values" check- tion and the maximum velocity.
box
Acceleration Presetting of the acceleration for a test step
Maximum ve- Presetting of the maximum velocity for a test step
locity
"Forward" button With the "Forward" button, you start a test step for optimization in the positive direc-
tion.
"Backward" With the "Backward" button, you start a test step for optimization in the negative
button direction.
Trace The Trace function is displayed In the lower area of the "Optimization" dialog.
With each test step a trace recording of the required parameters is automatically
started and displayed after completion of the test step.
After returning master control, the trace recording is deleted.
You will find a full description of the trace function in the section on using the trace
and logic analyzer function.
Note
No transfer of the parameters
The configured parameter values are discarded after master control is returned.
Transfer the values as needed into your configuration. You can apply the gain value in your
configuration using the "Project start value" value.
See also
Control (Page 59)
Requirement
● The CPU must be in RUN mode.
● The project has been created and downloaded to the CPU.
● The technology object is disabled by your user program (MC_Power.Enable = FALSE).
● The axis control panel for the technology object is not used by another installation of the
TIA Portal (Team Engineering as of CPU V1.5).
Note
Adapt following error limits
If error messages from following error monitoring are repeatedly displayed during
optimization, temporarily adapt the following error limits.
7. Evaluate the curve of the trace recording. Adapt the gain incrementally. Click the
"Forward" or "Backward" button after each value you enter. This applies the value and
start a new movement and trace recording each time.
When adjusting the gain, pay attention to the following properties of the curve:
● The curve shows a brief compensation time.
● The curve does not show any motion reversal of the actual position.
● When approaching the position setpoint, no overshoot occurs.
● The curve shows a stable overall behavior (oscillation-free curve).
The following trace recording shows a curve with a long settling time:
The following trace recording shows a curve with overshoot when approaching the setpoint:
The following trace recording shows a curve in which the gain is optimal and the overall
response is steady:
Note
Adapting monitoring
If error messages from the monitoring functions are repeatedly displayed during simulation,
temporarily adapt the monitoring limits.
Description
If an error occurs at a technology object (e.g. approaching a hardware limit switch), then a
technology alarm is triggered and indicated. The impact of a technology alarm on the
technology object is specified by the alarm reaction.
Alarm classes
Technology alarms are divided into three classes:
● Warning (can be acknowledged)
The processing of Motion Control jobs continues. The current motion of the axis can be
influenced, e.g. by limitation of the current dynamic values to the configured limit values.
● Alarm (must be acknowledged)
Motion jobs are aborted in accordance with the alarm reaction. In order to continue job
processing after resolving the cause of error, you must acknowledge the alarms.
● Fatal error
Motion jobs are aborted in accordance with the alarm reaction.
To be able to use the technology object again after eliminating the problem, you will need
to restart the technology object (Page 197).
Alarm reaction
A technology alarm always contains an alarm reaction, which describes the impact on the
technology object. The alarm reaction is specified by the system.
The following list shows possible alarm reactions:
● No reaction (warnings only)
<TO>.ErrorDetail.Reaction = 0
The processing of Motion Control jobs continues. The current motion of the axis can be
influenced, e.g. by limitation of the current dynamic values to the configured limit values.
● Stop with current dynamic values
<TO>.ErrorDetail.Reaction = 1
Active motion commands are aborted. The axis is braked with the dynamic values that
are pending in the Motion Control instruction, and brought to a standstill.
● Stop with maximum dynamic values
<TO>.ErrorDetail.Reaction = 2
Active motion commands are aborted. The axis is braked with the dynamic values
configured under "Technology object > Extended parameters > Dynamic limits", and
brought to a standstill. The configured maximum jerk is taken into account at the same
time.
● Stop with emergency stop ramp
<TO>.ErrorDetail.Reaction = 3
Active motion commands are aborted. The axis is braked with the emergency stop
deceleration configured under "Technology object > Extended parameters > Emergency
stop ramp", without any jerk limit, and brought to a standstill.
● Remove enable
<TO>.ErrorDetail.Reaction = 4
The setpoint zero is output, and the enablement is removed. The axis is braked
depending on the configuration in the drive, and is brought to a standstill.
● Follow-up setpoints
<TO>.ErrorDetail.Reaction = 5
Active motion commands are aborted. The actual values supplied by the drive are
automatically tracked as setpoints. The actual values are not monitored at the controller
end.
Additional information
A list of the technology alarms and alarm reactions can be found in the appendix,
Technology Alarms (Page 368).
Description
Errors in Motion Control instructions (e.g. invalid parameter value setting) are indicated at
the "Error" and "ErrorID" output parameters.
Under the following conditions, "Error" = TRUE and "ErrorID" = 16#8xxx are indicated at the
Motion Control instruction:
● Invalid status of the technology object, which prevents the execution of the job.
● Invalid parameter assignment of the Motion Control instruction, which prevents the
execution of the job.
● As a result of the alarm response for an error at the technology object.
Error indication
If an error occurs in a Motion Control instruction, the "Error" parameter shows the value
TRUE. The cause of the error can be found in the value of the ErrorID" parameter.
Jobs at the technology object are rejected when "Error" = TRUE. Running jobs are not
influenced by rejected jobs.
If "Error" = TRUE and "ErrorID" = 16#8001 are indicated during the job processing, then a
technology alarm has occurred. In this case, evaluate the indication of the technology alarm.
If "Error" = TRUE is displayed during the execution of a "MC_MoveJog" job, the axis is
braked and brought to a standstill. In this case, the deceleration configured with the
"MC_MoveJog" instruction takes effect.
Acknowledge errors
Acknowledging errors in Motion Control instructions is not required.
Restart a job after resolving the error.
Additional information
A list of the ErrorIDs can be found in the appendix, Error Detection (Page 386).
Description
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in
the TIA Portal to monitor the status and error messages for the technology object. The
Diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The
associated technology object tag is given in parentheses.
Axis status
The following table shows the possible axis status values:
Status Description
Enabled The technology object is enabled. The axis can be controlled with Motion Control instruc-
tions.
(<TO>.StatusWord.X0 (Enable))
Error An error has occurred at the technology object. Detailed information about the error is avail-
able in the "Error" area, and in the <TO>.ErrorDetail.Number and <TO>.ErrorDetail.Reaction
tags of the technology object.
(<TO>.StatusWord.X1 (Error))
Restart active The technology object is being reinitialized.
(<TO>.StatusWord.X2 (RestartActive))
Axis control panel enabled The axis control panel is enabled. The axis control panel has master control over the tech-
nology object. The axis cannot be controlled from the user program.
(<TO>.StatusWord.X4 (ControlPanelActive))
Drive ready The drive is ready to execute setpoints.
(<TO>.StatusDrive.InOperation)
Online start value changed Data relevant for the restart has been changed. The changes will not be applied until the
technology object is restarted. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Motion status
The following table shows the possible axis motion status values:
Status Description
Done (no active job) No motion job is active at the technology object.
(<TO>.StatusWord.X6 (Done))
Jog The axis is being moved by a jog mode job from the Motion Control instruction
"MC_MoveJog", or from the axis control panel.
(<TO>.StatusWord.X9 (JogCommand))
Speed preset The axis is traversed by means of a job with speed preset in Motion Control instruction
"MC_MoveVelocity", or using the axis control panel.
(<TO>.StatusWord.X10 (VelocityCommand))
Constant speed The axis is traversing at a constant speed or is at a standstill.
(<TO>.StatusWord.X12 (ConstantVelocity))
Accelerating The axis is being accelerated.
(<TO>.StatusWord.X13 (Accelerating))
Decelerating The axis is being decelerated.
(<TO>.StatusWord.X14 (Decelerating))
Warnings
The following table shows the possible warnings:
Warning Description
Configuration adapted One or several configuration parameters are adjusted internally at a certain time.
(<TO>.WarningWord.X1 (ConfigurationFault))
Job rejected Command cannot be executed.
A Motion Control command cannot be executed, because necessary preconditions are
not met.
(<TO>.WarningWord.X3 (CommandNotAccepted))
Dynamic limitation Dynamic values were limited to the dynamic limits.
(<TO>.WarningWord.X6 (DynamicError))
Error
The following table shows the possible errors:
Error Description
System An internal system error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration Configuration error
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were
incorrectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigurationFault))
User program Error in the user program in a Motion Control instruction, or in its utilization.
(<TO>.ErrorWord.X2 (UserFault))
Drive Error in the drive.
(<TO>.ErrorWord.X4 (DriveFault))
Data exchange Error in communication with a connected device.
(<TO>.ErrorWord.X7 (CommunicationFault))
I/O Error accessing a logical address.
(<TO>.ErrorWord.X13 (PeripheralError))
Job rejected Command cannot be executed.
A Motion Control instruction cannot be executed because the necessary conditions have
not been fulfilled (e.g. technology object not homed).
(<TO>.ErrorWord.X3 (CommandNotAccepted))
Dynamic limitation Dynamic values were limited to the dynamic limits.
(<TO>.ErrorWord.X6 (DynamicError))
Confirm
Click "Confirm" to acknowledge alarms and warnings pending.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
Description
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the TIA
Portal to monitor the motion status of the axis. The Diagnostics function is available in online
operation.
Status Description
Speed setpoint Speed setpoint of the axis
(<TO>.Velocity)
Speed override Speed setpoint correction as percentage
The speed setpoint specified in motion control instructions or set by the axis control panel are
superimposed with an override signal and corrected as a percentage. Valid speed correction
values range from 0.0 % to 200.0 %.
(<TO>.Override.Velocity)
Status Description
Speed Configured maximum speed
(<TO>.DynamicLimits.MaxVelocity)
Acceleration Configured maximum acceleration
(<TO>.DynamicLimits.MaxAcceleration)
Deceleration Configured maximum deceleration
(<TO>.DynamicLimits.MaxDeceleration)
Description
The "Technology object > Diagnostics > PROFIdrive frame" diagnostics function is used in
the TIA Portal to monitor the PROFIdrive frame that the drive returns to the controller. The
Diagnostics function is available in online operation.
"Drive" area
This area displays the following parameters contained in the PROFIdrive frame that the drive
returns to the controller:
● Status words "SW1" and "SW2"
● The setpoint speed that was output to the drive (NSET)
● The actual speed that was signaled from the drive (NACT)
Description
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in
the TIA Portal to monitor the status and error messages for the technology object. The
Diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The
associated technology object tag is given in parentheses.
Axis status
The following table shows the possible axis status values:
Status Description
Enabled The technology object is enabled. The axis can be controlled with Motion Control instruc-
tions.
(<TO>.StatusWord.X0 (Enable))
Homed The technology object is homed. The relationship between the position at the technology
object and the mechanical position was successfully created.
(<TO>.StatusWord.X5 (HomingDone))
Error An error has occurred at the technology object. Detailed information about the error is avail-
able in the "Error" area, and in the <TO>.ErrorDetail.Number and <TO>.ErrorDetail.Reaction
tags of the technology object.
(<TO>.StatusWord.X1 (Error))
Restart active The technology object is being reinitialized.
(<TO>.StatusWord.X2 (RestartActive))
Axis control panel enabled The axis control panel is enabled. The axis control panel has master control over the tech-
nology object. The axis cannot be controlled from the user program.
(<TO>.StatusWord.X4 (ControlPanelActive))
Drive ready The drive is ready to execute setpoints.
(<TO>.StatusDrive.InOperation)
Encoder values valid The encoder values are valid.
(<TO>.StatusSensor[n].State)
Online start value changed Data relevant for the restart has been changed. The changes will not be applied until after
reinitialization (restart) of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Motion status
The following table shows the possible axis motion status values:
Status Description
Done (no active job) No motion job is active at the technology object.
(<TO>.StatusWord.X6 (Done))
Homing job The technology object is executing a homing job from the Motion Control instruction
"MC_Home", or from the axis control panel.
(<TO>.StatusWord.X11 (HomingCommand))
Jog The axis is being moved by a jog mode job from the Motion Control instruction
"MC_MoveJog", or from the axis control panel.
(<TO>.StatusWord.X9 (JogCommand))
Velocity setpoint A job traverses the axis at the speed setpoint specified in Motion Control instruction
"MC_MoveVelocity" or at the axis control panel.
(<TO>.StatusWord.X10 (VelocityCommand))
Positioning job The axis is being moved by a positioning job from the Motion Control instructions
"MC_MoveAbsolute", "MC_MoveRelative", or from the axis control panel.
(<TO>.StatusWord.X8 (PositioningCommand))
Constant velocity The axis is traversing at a constant velocity or is at a standstill.
(<TO>.StatusWord.X12 (ConstantVelocity))
Standstill The axis is at a standstill.
(<TO>.StatusWord.X7 (StandStill))
Accelerating The axis is being accelerated.
(<TO>.StatusWord.X13 (Accelerating))
Decelerating The axis is being decelerated.
(<TO>.StatusWord.X14 (Decelerating))
Status Description
Synchronization Synchronous axis only
The axis is synchronized to the master value of a leading axis.
(<TO>.StatusWord.X21 (Synchronizing))
Gearing Synchronous axis only
The axis is synchronized and moves synchronously to the leading axis.
(<TO>.StatusWord.X22 (Synchronous))
Warnings
The following table shows the possible warnings:
Warning Description
Configuration adapted One or several configuration parameters are adjusted internally at a certain time.
(<TO>.WarningWord.X1 (ConfigurationFault))
Job rejected Command cannot be executed.
A Motion Control command cannot be executed, because necessary preconditions are
not met.
(<TO>.WarningWord.X3 (CommandNotAccepted))
Dynamic limitation Dynamic values were limited to the dynamic limits.
(<TO>.WarningWord.X6 (DynamicError))
Error
The following table shows the possible errors:
Error Description
System An internal system error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration Configuration error
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were
incorrectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigurationFault))
User program Error in the user program in a Motion Control instruction, or in its utilization.
(<TO>.ErrorWord.X2 (UserFault))
Drive Error in the drive.
(<TO>.ErrorWord.X4 (DriveFault))
Encoder Error in the encoder system.
(<TO>.ErrorWord.X5 (SensorFault))
Data exchange Error in communication with a connected device.
(<TO>.ErrorWord.X7 (CommunicationFault))
I/O Error accessing a logical address.
(<TO>.ErrorWord.X13 (PeripheralError))
Job rejected Command cannot be executed.
A Motion Control instruction cannot be executed because the necessary conditions have
not been fulfilled (e.g. technology object not homed).
(<TO>.ErrorWord.X3 (CommandNotAccepted))
Homing Error during a homing process.
(<TO>.ErrorWord.X10 HomingFault))
Positioning The axis was not correctly positioned at the end of a positioning motion.
(<TO>.ErrorWord.X12 (PositioningFault))
Dynamic limitation Dynamic values were limited to the dynamic limits.
(<TO>.ErrorWord.X6 (DynamicError))
Following error The maximum permitted following error was exceeded.
(<TO>.ErrorWord.X11 (FollowingErrorFault))
SW limit switch A software limit switch has been reached.
(<TO>.ErrorWord.X8 (SwLimit))
Hardware limit switch A hardware limit switch has been reached or overshot.
(<TO>.ErrorWord.X9 (HWLimit))
Synchronize/desynchronize Synchronous axis only
Error during synchronous operation. The leading axis specified at the Motion Control in-
struction "MC_GearIn" was not configured as a possible leading axis.
(<TO>.ErrorWord.X14 (SynchronousError))
Confirm
Click "Confirm" to acknowledge alarms and warnings pending.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
Description
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the TIA
Portal to monitor the motion status of the axis. The Diagnostics function is available in online
operation.
Status Description
Target position Current target position of an active positioning job
The target position value is only valid while a positioning job is busy.
(<TO>.StatusPositioning.TargetPosition)
Actual position Actual position of the axis
If the technology object is not homed, then the value is displayed relative to the position that
existed when the technology object was enabled.
(<TO>.ActualPosition)
Actual velocity Actual velocity of the axis
(<TO>.ActualVelocity)
Velocity override Percentage correction of the velocity override
The velocity setpoint specified in motion control instructions or set by the axis control panel are
superimposed with an override signal and corrected as a percentage. Valid velocity correction
values range from 0.0 % to 200.0 %.
(<TO>.Override.Velocity)
Status Description
Velocity Configured maximum velocity
(<TO>.DynamicLimits.MaxVelocity)
Acceleration Configured maximum acceleration
(<TO>.DynamicLimits.MaxAcceleration)
Deceleration Configured maximum deceleration
(<TO>.DynamicLimits.MaxDeceleration)
Description
The "Technology object > Diagnostics > PROFIdrive frame" diagnostics function is used in
the TIA Portal to monitor the PROFIdrive frame returned by the drive and encoder. The
display of the Diagnostics function is available in online operation.
"Drive" area
This area displays the following parameters contained in the PROFIdrive frame that the drive
returns to the controller:
● Status words "SW1" and "SW2"
● The setpoint speed that was output to the drive (NSET)
● The actual speed that was signaled from the drive (NACT)
"Encoder" area
This area displays the following parameters contained in the PROFIdrive frame that the
encoder returns to the controller:
● Status word "G1_ZSW"
● The actual position value "G1_XIST1" (cyclic actual encoder value)
● The actual position value "G1_XIST2" (absolute value of the encoder)
Description
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in
the TIA Portal to monitor the status and error messages for the technology object. The
Diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The
associated technology object tag is given in parentheses.
Encoder status
The following table shows the possible external encoder status values:
Status Description
Enabled The technology object is enabled.
(<TO>.StatusWord.X0 (Enable))
Homed The technology object is homed. The relationship between the position at the technology
object and the mechanical position was successfully created.
(<TO>.StatusWord.X5 (HomingDone))
Error An error has occurred at the technology object. Detailed information about the error is avail-
able in the "Error" area, and in the <TO>.ErrorDetail.Number and <TO>.ErrorDetail.Reaction
tags of the technology object.
(<TO>.StatusWord.X1 (Error))
Restart active The technology object is being reinitialized.
(<TO>.StatusWord.X2 (RestartActive))
Encoder values valid The encoder values are valid.
(<TO>.StatusSensor[n].State)
Online start value changed Data relevant for the restart has been changed. The changes will not be applied until the
technology object is restarted. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Motion status
The following table shows the possible axis motion status values:
Status Description
Done (no active job) No active Motion Control job at the TO.
(Enable by "MC_Power" job excepted)
(<TO>.StatusWord.X6 (Done))
Homing job The technology object is executing a homing job from the Motion Control instruction
"MC_Home".
(<TO>.StatusWord.X11 (HomingCommand))
Error
The following table shows the possible errors:
Error Description
System An internal system error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration Configuration error
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were
incorrectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigurationFault))
User program Error in the user program in a Motion Control instruction, or in its utilization.
(<TO>.ErrorWord.X2 UserFault))
Encoder Error in the encoder system.
(<TO>.ErrorWord.X5 (SensorFault))
Data exchange Missing or faulty communication.
(<TO>.ErrorWord.X7 (CommunicationFault))
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
Description
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the TIA
Portal to monitor the encoder values. The Diagnostics function is available in online
operation.
Status Description
Actual position Actual position of the axis
If the technology object is not homed, then the value is displayed relative to the position
that existed when the technology object was enabled.
(<TO>.ActualPosition)
Actual velocity Actual velocity of the axis
(<TO>.ActualVelocity)
Description
The "Technology object > Diagnostics > PROFIdrive interface" diagnostic function is used in
the TIA Portal to monitor the PROFIdrive frame of the encoder. The display of the
diagnostics function is available in the online mode TO.
"Encoder" area
This area displays the following parameters contained in the PROFIdrive frame that the
encoder returns to the controller:
● Status word "G1_ZSW"
● The actual position value "G1_XIST1" (cyclic actual encoder value)
● The actual position value "G1_XIST2" (absolute value of the encoder)
11.1.1 MC_Power
Description
The Motion Control instruction "MC_Power" is used to enable and disable technology
objects.
Applies to
● Synchronous axis
● Positioning axis
● Speed axis
● External encoder
Requirements
● The technology object has been configured correctly.
Override response
● A MC_Power job cannot be aborted by any other Motion Control job.
● A MC_Power job with the parameter Enable = TRUE enables a technology object, but
does not thereby abort any other Motion Control instructions.
● Disabling the technology object (parameter "Enable" = FALSE ) aborts all Motion Control
jobs at the corresponding technology object in accordance with the selected "StopMode".
This process cannot be aborted by the user.
Parameters
The following table shows the parameters of the "MC_POWER" Motion Control instruction:
Note
Automatic enabling after acknowledgement of a technology alarm
If the technology object is disabled due to a technology alarm, then it will automatically be
enabled again after the cause has been eliminated and the alarm has been acknowledged.
This requires the Enable parameter to have retained the value TRUE during this process.
Additional information
Additional information on enabling and disabling technology objects and drives can be found
in the appendix, MC_Power Function Charts (Page 388).
See also
Error ID (Page 386)
Function chart: Enabling a technology object, and example for alarm response
A technology object is enabled with "Enable_1= TRUE". Successful enabling can be read
from "Status_1" at time ①. The axis will then move with an "MC_MoveVelocity" job (A2). The
velocity profile of the axis can be read from "Velocity Axis_1".
At time ② an error occurs in the technology object, which results in the disabling of the
technology object (alarm response: remove enable). The axis is braked depending on the
configuration in the drive, and is brought to a standstill. When the technology object is
disabled, Status_1 is reset. Since the axis was not disabled using "Enable_1" = FALSE, the
selected "StopMode" does not apply. The cause of the error is corrected and the alarm is
acknowledged at time ③.
Since "Enable_1" is still set, the technology object is enabled again. Successful enabling can
be read from "Status_1". Next the technology object is disabled with "Enable_1" = FALSE.
11.1.2 MC_Home
Description
With the Motion Control instruction "MC_Home", you create the relationship between the
position in the technology object and the mechanical position. The position value in the
technology object is assigned to a homing mark at the same time. This homing mark
represents a known mechanical position.
The homing process occurs according to the mode selected with the "Mode" parameter, and
the configuration under "Technology object > Configuration > Extended parameters >
Homing".
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control
has been standardized within the framework of technology version V2.0. This results in a
new assignment of the parameter values for the "MC_Home.Mode" parameter. A
comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is
available in the section Version overview (Page 86).
The preset values under "Technology object > Configuration > Extended parameters >
Dynamic default values" are used for the dynamic values Acceleration, Deceleration and
Jerk.
Applies to
● Synchronous axis
● Positioning axis
● External encoder
The following table shows which modes are possible with each of the technology objects:
Requirement
● The technology object has been configured correctly.
● "Mode" = 2, 3, 5, 8, 10
The technology object must be enabled.
● "Mode" = 0, 1, 6, 7, 8
The encoder values must be valid. (<TO>.StatusSensor[n].State = 2)
Override response
● An MC_Home job for passive homing is aborted by:
– Disabling the technology object by means of "MC_Power.Enable" = FALSE
– "MC_Home" job with parameter "Mode" = 3, 5, 9
● An "MC_Home" job for passive homing does not abort any other Motion Control jobs.
● An "MC_Home" job for active homing is aborted by:
– Disabling the technology object with "MC_Power.Enable" = FALSE
– "MC_Home" job "Mode" = 3, 5
– "MC_Halt" job
– "MC_MoveAbsolute" job
– "MC_MoveRelative" job
– "MC_MoveVelocity" job
– "MC_MoveJog" job
– "MC_GearIn" job
● An "MC_Home" job for active homing aborts the following running Motion Control jobs.
– "MC_Home" job with parameter "Mode" = 3, 5, 8, 10
– "MC_Halt" job
– "MC_MoveAbsolute" job
– "MC_MoveRelative" job
– "MC_MoveVelocity" job
– "MC_MoveJog" job
– "MC_GearIn" job
– "MC_MoveSuperimposed" job
Parameters
The following table shows the parameters of the "MC_Home" Motion Control instruction:
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
11.1.3 MC_MoveJog
Description
With the Motion Control instruction "MC_MoveJog", you can move an axis in jog mode.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
● Positioning axis/synchronous axis:
A velocity is specified in the "Velocity" parameter.
● Speed axis:
A speed is specified at the "Velocity" parameter.
Applies to
● Synchronous axis
● Positioning axis
● Speed axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_MoveJog" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
Starting a "MC_MoveJog" job aborts the following active Motion Control jobs:
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
● "MC_MoveSuperimposed" job
Parameters
The following table shows the parameters of the "MC_MoveJog" Motion Control instruction:
Note
Behavior when changing the override
If the velocity / speed is influenced during constant motion by a change in the override
(<TO>.Override.Velocity), then the "InVelocity" parameter is reset during the acceleration or
deceleration. When the newly calculated velocity is reached ("Velocity" × "Override" %), then
"InVelocity" is set again.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
The axis is moved in the negative direction in jog mode via "Jog_B". When the setpoint
velocity -50.0 is reached, this is signaled via "InVel" = TRUE. After "Jog_B" is reset, the axis
is braked and brought to a standstill. Then the axis is moved in the positive direction via
"Jog_F". When the setpoint velocity 50.0 is reached, this is signaled via "InVel" = TRUE.
At time ①, if "Jog_F" is set, the setpoint velocity is changed to 100.0 by means of
"Vel_Input". Alternatively, you can also change the setpoint velocity via the velocity override.
"InVel" is reset. The axis is being accelerated. When the new setpoint velocity 100.0 is
reached, this is signaled via "InVel" = TRUE.
If "Jog_F" is set, "Jog_B" is likewise set at time ②. If both "Jog_F" and "Jog_B" are set, then
the axis is braked with the last applicable deceleration. An error is indicated via "Error", and
the "ErrorID" of the error 16#8007 (incorrect direction specification) is output.
This error is resolved by resetting the two inputs "Jog_F" and "Jog_B".
During the braking ramp, "Jog_F" is set at time ③. The axis is accelerated to the last
configured velocity. When the setpoint velocity 100.0 is reached, this is signaled via
"InVel" = TRUE.
11.1.4 MC_MoveVelocity
Description
With the Motion Control instruction "MC_MoveVelocity", you can move an axis with a
constant velocity.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
● Positioning axis/synchronous axis:
A velocity is specified in the "Velocity" parameter.
● Speed axis:
A speed is specified at the "Velocity" parameter.
Applies to
● Synchronous axis
● Positioning axis
● Speed axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_MoveVelocity" is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
Starting a "MC_MoveVelocity" job aborts the following active Motion Control jobs:
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
● "MC_MoveSuperimposed" job
Parameters
The following table shows the parameters of the "MC_MoveVelocity" Motion Control
instruction:
Note
Behavior when changing the override
If the velocity / speed is influenced during constant motion by a change in the override
(<TO>.Override.Velocity), then the "InVelocity" parameter is reset during the acceleration or
deceleration. When the newly calculated velocity / speed is reached ("Velocity" × "Override"
%), then "InVelocity" is reset.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
Function chart: Moving an axis with specification of velocity, and the response to an overriding job
A "MC_MoveVelocity" job (A1) initiated via "Exe_1" accelerates the axis and signals at time
① via "InVel_1" that the setpoint velocity 50.0 has been reached.
At time ②, the task is overridden via another "MC_MoveVelocity" job (A2). The abort is
signaled via "Abort_1". When the new setpoint velocity 15.0 is reached, this is signaled via
"InVel_2". The axis then continues moving at the constant velocity 15.0.
11.1.5 MC_MoveRelative
Description
With the Motion Control instruction "MC_MoveRelative", you can move an axis relative to the
position that exists at the beginning of job processing.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
Applies to
● Synchronous axis
● Positioning axis
Requirements
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_MoveRelative" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
Starting a "MC_MoveRelative" job aborts the following active Motion Control jobs:
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
● "MC_MoveSuperimposed" job
Parameters
The following table shows the parameters of the "MC_MoveRelative" Motion Control
instruction:
See also
Error ID (Page 386)
Function chart: Relative positioning of an axis, and the response to an overriding job
Section The axis is moved by an "MC_MoveRelative" job (A1) by the distance ("Distance") 1000.0 (the starting position
here is 0.0). When the axis reaches the target position, this is signaled at time ① via "Done_1". At this time ①,
another "MC_MoveRelative" job (A2) with distance 500.0 is started. When the axis reaches the new target
position, this is signaled via "Done_2". Since "Exe_2" was previously reset, "Done_2" is applied only to one
cycle.
Section A running "MC_MoveRelative" job (A1) is overridden by another "MC_MoveRelative" job (A2). The abort is
signaled at time ② via "Abort_1". The axis is then moved at the new velocity by the distance ("Distance")
500.0. When the new target position is reached, this is signaled via "Done_2".
11.1.6 MC_MoveAbsolute
Description
With the Motion Control instruction "MC_MoveAbsolute", you can move an axis to an
absolute position.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
Applies to
● Synchronous axis
● Positioning axis
Requirements
● The technology object has been configured correctly.
● The technology object is enabled.
● The technology object is homed.
Override response
The "MC_MoveAbsolute" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
Starting a "MC_MoveAbsolute" job aborts the following active Motion Control jobs:
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
● "MC_MoveSuperimposed" job
Parameters
The following table shows the parameters of the "MC_MoveAbsolute" Motion Control
instruction:
See also
Error ID (Page 386)
Function chart: Absolute positioning of an axis, and the response to an overriding job
Section An axis is moved to absolute position 1000.0 with an "MC_MoveAbsolute" job (A1). When the axis reaches the
target position, this is signaled at time ① via "Done_1". At this time ①, another "MC_MoveAbsolute" job (A2)
with target position 1500.0 is started. When the axis reaches the target position 1500.0, this is signaled via
"Done_2". Since "Exe_2" was previously reset, "Done_2" is applied only to one cycle.
Section A running "MC_MoveAbsolute" job (A1) is overridden at time ② by another "MC_MoveAbsolute" job (A2). The
abort is signaled via "Abort_1". The axis is braked to the changed velocity and moved to the new target position
1500.0. When the new target position is reached, this is signaled via "Done_2".
11.1.7 MC_MoveSuperimposed
Description
With the Motion Control instruction "MC_MoveSuperimposed", you can start a relative
positioning motion which is superimposed on a running basic motion.
Dynamic behavior during movement is defined with the parameters "VelocityDiff", "Jerk",
"Acceleration" and "Deceleration". The dynamic values are added to the values of the basic
motion. The duration of the basic motion is not extended by a superimposed motion.
The dynamic of the total axis motion is the sum of the dynamic values of the basic motion
and the superimposed motion.
The behavior of the total motion depends on the type of basic motion:
● The basic motion is a single-axis motion:
– The maximum dynamic of the superimposed motion is the difference between the
current dynamic values of the basic motion and the dynamic limits.
– The entire motion is limited to the configured dynamic limits.
● The basic motion is a synchronous motion:
– The maximum dynamic of the superimposed motion is the difference between the
current dynamic values of the basic motion and the dynamic limits.
– The synchronous motion of the following axis is not limited to the dynamic limits of the
following axis.
– A "MC_MoveSuperimposed" job on a lead axis in synchronous operation affects the
lead axis and the following axis.
– A "MC_MoveSuperimposed" job on a following axis in synchronous operation only
affects the following axis.
It is always the dynamic of the total motion that is displayed in the technology data block and
in the TIA Portal.
Applies to
● Synchronous axis
● Positioning axis
Requirements
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_MoveSuperimposed" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
● "MC_MoveSuperimposed" job
Starting a "MC_MoveSuperimposed" job aborts an active "MC_MoveSuperimposed" job.
Parameters
The following table shows the parameters of the "MC_MoveSuperimposed" Motion Control
instruction:
See also
Error ID (Page 386)
Section Using "Exe_1", an "MC_MoveRelative" job with a distance of 50.0 is initiated. At the point in time ①, using
"Exe_2", a MC_MoveSuperimposed job with a distance of 50.0 is initiated. The axis is traversed with the added
dynamic values of both jobs with the distance 50 + 50 = 100.0. When the axis reaches the target position,
"Done_2" is signaled.
Section Using "Exe_1", an "MC_MoveRelative" job with a distance of 50.0 is initiated. At the point in time ②, using
"Exe_2", a MC_MoveSuperimposed job with a distance of-50.0 is initiated. The axis is traversed with the added
dynamic values of both jobs with the distance 50.0 - 50.0 = 0.0. When the axis reaches the target position,
"Done_2" is signaled.
11.1.8 MC_GearIn
Description
With the Motion Control instruction "MC_GearIn", you can start a relative gearing between a
leading axis and a following axis.
Dynamic behavior of the following axis during synchronization is defined with the
parameters"Jerk", "Acceleration", and "Deceleration" .
You specify the gear ratio as the relationship between two integers (numerator/denominator)
with the parameters "RatioNumerator" and "RatioDenominator". You can change the gear
ratio during operation by placing a new "MC_GearIn" job. Transition processes are executed
with the specified dynamic values.
The numerator of the gear ratio is specified as positive or negative. This results in the
following response:
● Positive gear ratio:
The leading and following axes move in the same direction.
● Negative gear ratio:
The following axis rotates in the opposite direction of the leading axis.
You can start synchronous operation when the leading axis is at a standstill or when it is in
motion.
A position offset can occur between leading axis and following axis during synchronization.
This position offset depends on the start time of the "MC_GearIn" and the duration of the
synchronization process. The position offset is not compensated.
Applies to
● Synchronous axis
Requirements
● The technology object has been configured correctly.
● The leading axis is a positioning axis or synchronous axis.
● The following axis is a synchronous axis.
● The leading axis is specified as possible leading axis in the configuration of the following
axis in "Technology object > Configuration > Master value interconnections".
● The following axis is enabled.
Override response
The "MC_GearIn" job is aborted by:
● Disabling the following axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
Starting a "MC_GearIn" job aborts the following active Motion Control jobs:
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
Disabling the leading axis with "MC_Power.Enable" = FALSE does not abort synchronous
operation. The following axis follows the leading axis even during the braking ramp and after
the leading axis is enabled again.
Parameter
The following table shows the parameters of the "MC_GearIn" Motion Control instruction:
See also
Error ID (Page 386)
Using "Exe_1", an "MC_GearIn" job (A1) is initiated. The following axis (TO_Slave) is
synchronized to the leading axis (TO_Master_1). "InGear_1" signals at time ① that the
following axis is synchronized and moves synchronously to the leading axis.
At time ②, synchronous operation is overridden by another "MC_GearIn" job (A2). The abort
is signaled via "Abort_1". The following axis is synchronized to the new leading axis
(TO_Master_2). "InGear_2" signals at time ③ that the following axis is synchronized and
moves synchronously to the leading axis.
11.1.9 MC_Halt
Description
With the Motion Control instruction "MC_Halt", you can brake an axis to a standstill.
Dynamic behavior during the braking process is defined with the parameters "Jerk" and
"Deceleration".
Applies to
● Synchronous axis
● Positioning axis
● Speed axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_Halt" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
Starting a "MC_Halt" job aborts the following active Motion Control jobs:
● "MC_Home" job "Mode" = 3, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
● "MC_GearIn" job
● "MC_MoveSuperimposed" job
Parameters
The following table shows the parameters of the "MC_Halt" Motion Control instruction:
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
Section An axis is moved with an "MC_MoveVelocity" job (A1). When the setpoint velocity 50.0 is reached, this is sig-
naled via "InVel_1". At time ①, the "MC_MoveVelocity" job is overridden by an "MC_Halt" job (A2). The job
termination is signaled via "Abort_1". The axis is braked to a standstill. Successful completion of the "MC_Halt"
job is signaled via "Done_2".
Section The axis is moved with an "MC_MoveVelocity" job (A1). When the setpoint velocity 50.0 is reached, this is
signaled via "InVel_1". Next the "MC_MoveVelocity" job is overridden by an "MC_Halt" job (A2). The job termi-
nation is signaled via "Abort_1". During the braking process the "MC_Halt" job is overridden at time ② by an
"MC_MoveVelocity" job (A1). The job termination is signaled via "Abort_2". When the setpoint velocity 50.0 is
reached, this is signaled via "InVel_1". The axis is then moved with constant velocity.
11.1.10 MC_Reset
Description
All technology alarms that can be acknowledged in the user program are acknowledged with
the Motion Control instruction "MC_Reset". Acknowledgment also resets the "Error" and
"Warning" bits in the technology data block.
Technology objects are reinitialized (restarted) using the Motion Control instruction
"MC_Reset" with "Restart" = TRUE. Upon restart of the technology object, the new
configuration data are applied in the technology data block.
Applies to
● Synchronous axis
● Positioning axis
● Speed axis
● External encoder
Requirements
● The cause of the error for a pending technology alarm has been resolved.
● For a restart, the technology object must be disabled.
("MC_Power.Status" = FALSE and "MC_Power.Busy" = FALSE)
Override response
● Parameter "Restart" = FALSE:
Processing of the instruction "MC_Reset" can be aborted by other Motion Control jobs.
The MC_Reset job does not abort any running Motion Control jobs.
● Parameter "Restart" = TRUE:
The processing of the instruction "MC_Reset" with parameter "Restart" = TRUE cannot
be aborted by any other Motion Control job.
Parameters
The following table shows the parameters of the "MC_Reset" Motion Control instruction:
Note
Acknowledging with "Restart" = FALSE
If only the technology alarms are to be acknowledged, set "Restart" = FALSE. The
technology object cannot be used during a restart.
See also
Error ID (Page 386)
11.2.1 MC_Power
Description
The Motion Control instruction "MC_Power" is used to enable and disable technology
objects.
Applies to
● Positioning axis
● Speed axis
● External encoder
Requirements
● The technology object has been configured correctly.
Override response
● A MC_Power job cannot be aborted by any other Motion Control job.
● A MC_Power job with the parameter Enable = TRUE enables a technology object, but
does not thereby abort any other Motion Control instructions.
● Disabling the technology object (parameter "Enable" = FALSE ) aborts all Motion Control
jobs at the corresponding technology object in accordance with the selected "StopMode".
This process cannot be aborted by the user.
Parameters
The following table shows the parameters of the "MC_POWER" Motion Control instruction:
Note
Automatic enabling after acknowledgement of a technology alarm
If the technology object is disabled due to a technology alarm, then it will automatically be
enabled again after the cause has been eliminated and the alarm has been acknowledged.
This requires the Enable parameter to have retained the value TRUE during this process.
Additional information
Additional information on enabling and disabling technology objects and drives can be found
in the appendix, MC_Power Function Charts (Page 388).
See also
Error ID (Page 386)
Function chart: Enabling a technology object, and example for alarm response
A technology object is enabled with "Enable_1= TRUE". Successful enabling can be read
from "Status_1" at time ①. The axis will then move with an "MC_MoveVelocity" job (A2). The
velocity profile of the axis can be read from "Velocity Axis_1".
At time ② an error occurs in the technology object, which results in the disabling of the
technology object (alarm response: Remove enable). The axis is braked depending on the
configuration in the drive, and is brought to a standstill. When the technology object is
disabled, Status_1 is reset. Since the axis was not disabled using "Enable_1" = FALSE, the
selected "StopMode" does not apply. The cause of the error is corrected and the alarm is
acknowledged at time ③.
Since "Enable_1" is still set, the technology object is enabled again. Successful enabling can
be read from "Status_1". Next the technology object is disabled with "Enable_1" = FALSE.
11.2.2 MC_Home
Description
With the Motion Control instruction "MC_Home", you create the relationship between the
position in the technology object and the mechanical position. The position value in the
technology object is assigned to a homing mark at the same time. This homing mark
represents a known mechanical position.
The homing process occurs according to the mode selected with the "HomingMode"
parameter, and the configuration under "Technology object > Configuration > Extended
parameters > Homing".
The preset values under "Technology object > Configuration > Extended parameters >
Dynamic default values" are used for the dynamic values Acceleration, Deceleration and
Jerk.
Applies to
● Positioning axis
● External encoder
The following table shows which modes are possible with each of the technology objects:
Operating mode Positioning axis with Positioning axis with External incremental External absolute
incremental encoder absolute encoder encoder encoder
Active homing X - - -
(HomingMode = 4, 5)
Passive homing X - X -
(HomingMode = 2, 3, 8)
Setting a positioning X X X X
value
("HomingMode" = 0)
Relative shift of the X X X X
actual value
("HomingMode" = 1)
Homing absolute en- - X - X
coder
("HomingMode" = 6, 7)
Requirement
● The technology object has been configured correctly.
● "HomingMode" = 2, 3, 4, 5, 8
The technology object must be enabled.
● "HomingMode" = 0, 1, 2, 6, 7
The encoder values must be valid. (<TO>.StatusSensor[n].State = 2)
Override response
● An MC_Home job for passive homing is aborted by:
– Disabling the technology object by means of "MC_Power.Enable" = FALSE
– "MC_Home" job with parameter "HomingMode" = 4, 5, 9
● An "MC_Home" job for passive homing does not abort any other Motion Control jobs.
● An "MC_Home" job for active homing is aborted by:
– Disabling the technology object with "MC_Power.Enable" = FALSE
– "MC_Home" job "HomingMode" = 4, 5
– "MC_Halt" job
– "MC_MoveAbsolute" job
– "MC_MoveRelative" job
– "MC_MoveVelocity" job
– "MC_MoveJog" job
● An "MC_Home" job for active homing aborts the following running Motion Control jobs.
– "MC_Home" job with parameter "HomingMode" = 2, 3, 4, 5
– "MC_Halt" job
– "MC_MoveAbsolute" job
– "MC_MoveRelative" job
– "MC_MoveVelocity" job
– "MC_MoveJog" job
Parameters
The following table shows the parameters of the "MC_Home" Motion Control instruction:
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
11.2.3 MC_MoveJog
Description
With the Motion Control instruction "MC_MoveJog", you can move an axis in jog mode.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
● Positioning axis:
A velocity is specified in the "Velocity" parameter.
● Speed axis:
A speed is specified at the "Velocity" parameter.
Applies to
● Positioning axis
● Speed axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_MoveJog" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Starting a "MC_MoveJog" job aborts the following active Motion Control jobs:
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Parameters
The following table shows the parameters of the "MC_MoveJog" Motion Control instruction:
Note
Behavior when changing the override
If the velocity / speed is influenced during constant motion by a change in the override
(<TO>.Override.Velocity), then the "InVelocity" parameter is reset during the acceleration or
deceleration. When the newly calculated velocity is reached ("Velocity" × "Override" %), then
"InVelocity" is set again.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
The axis is moved in the negative direction in jog mode via "Jog_B". When the setpoint
velocity -50.0 is reached, this is signaled via "InVel" = TRUE. After "Jog_B" is reset, the axis
is braked and brought to a standstill. Then the axis is moved in the positive direction via
"Jog_F". When the setpoint velocity 50.0 is reached, this is signaled via "InVel" = TRUE.
At time ①, if "Jog_F" is set, the setpoint velocity is changed to 100.0 by means of
"Vel_Input". Alternatively, you can also change the setpoint velocity via the velocity override.
"InVel" is reset. The axis is being accelerated. When the new setpoint velocity 100.0 is
reached, this is signaled via "InVel" = TRUE.
If "Jog_F" is set, "Jog_B" is likewise set at time ②. If both "Jog_F" and "Jog_B" are set, then
the axis is braked with the last applicable deceleration. An error is indicated via "Error", and
the "ErrorID" of the error 16#8007 (incorrect direction specification) is output.
This error is resolved by resetting the two inputs "Jog_F" and "Jog_B".
During the braking ramp, "Jog_F" is set at time ③. The axis is accelerated to the last
configured velocity. When the setpoint velocity 100.0 is reached, this is signaled via
"InVel" = TRUE.
11.2.4 MC_MoveVelocity
Description
With the Motion Control instruction "MC_MoveVelocity", you can move an axis with a
constant velocity.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
● Positioning axis:
A velocity is specified in the "Velocity" parameter.
● Speed axis:
A speed is specified at the "Velocity" parameter.
Applies to
● Positioning axis
● Speed axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_MoveVelocity" is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Starting a "MC_MoveVelocity" job aborts the following active Motion Control jobs:
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Parameters
The following table shows the parameters of the "MC_MoveVelocity" Motion Control
instruction:
Note
Behavior when changing the override
If the velocity / speed is influenced during constant motion by a change in the override
(<TO>.Override.Velocity), then the "InVelocity" parameter is reset during the acceleration or
deceleration. When the newly calculated velocity / speed is reached ("Velocity" × "Override"
%), then "InVelocity" is reset.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
Function chart: Moving an axis with specification of velocity, and the response to an overriding job
A "MC_MoveVelocity" job (A1) initiated via "Exe_1" accelerates the axis and signals at time
① via "InVel_1" that the setpoint velocity 50.0 has been reached.
At time ②, the task is overridden via another "MC_MoveVelocity" job (A2). The abort is
signaled via "Abort_1". When the new setpoint velocity 15.0 is reached, this is signaled via
"InVel_2". The axis then continues moving at the constant velocity 15.0.
11.2.5 MC_MoveRelative
Description
With the Motion Control instruction "MC_MoveRelative", you can move an axis relative to the
position that exists at the beginning of job processing.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
Applies to
● Positioning axis
Requirements
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_MoveRelative" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Starting a "MC_MoveRelative" job aborts the following active Motion Control jobs:
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Parameters
The following table shows the parameters of the "MC_MoveRelative" Motion Control
instruction:
See also
Error ID (Page 386)
Function chart: Relative positioning of an axis, and the response to an overriding job
Section The axis is moved by an "MC_MoveRelative" job (A1) by the distance ("Distance") 1000.0 (the starting position
here is 0.0). When the axis reaches the target position, this is signaled at time ① via "Done_1". At this time ①,
another "MC_MoveRelative" job (A2) with distance 500.0 is started. When the axis reaches the new target posi-
tion, this is signaled via "Done_2". Since "Exe_2" was previously reset, "Done_2" is applied only to one cycle.
Section A running "MC_MoveRelative" job (A1) is overridden by another "MC_MoveRelative" job (A2). The abort is sig-
naled at time ② via "Abort_1". The axis is then moved at the new velocity by the distance ("Distance") 500.0.
When the new target position is reached, this is signaled via "Done_2".
11.2.6 MC_MoveAbsolute
Description
With the Motion Control instruction "MC_MoveAbsolute", you can move an axis to an
absolute position.
Dynamic behavior during movement is defined with the parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
Applies to
● Positioning axis
Requirements
● The technology object has been configured correctly.
● The technology object is enabled.
● The technology object is homed.
Override response
The "MC_MoveAbsolute" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Starting a "MC_MoveAbsolute" job aborts the following active Motion Control jobs:
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Parameters
The following table shows the parameters of the "MC_MoveAbsolute" Motion Control
instruction:
See also
Error ID (Page 386)
Function chart: Absolute positioning of an axis, and the response to an overriding job
Section An axis is moved to absolute position 1000.0 with an "MC_MoveAbsolute" job (A1). When the axis reaches the
target position, this is signaled at time ① via "Done_1". At this time ①, another "MC_MoveAbsolute" job (A2)
with target position 1500.0 is started. When the axis reaches the target position 1500.0, this is signaled via
"Done_2". Since "Exe_2" was previously reset, "Done_2" is applied only to one cycle.
Section A running "MC_MoveAbsolute" job (A1) is overridden at time ② by another "MC_MoveAbsolute" job (A2). The
abort is signaled via "Abort_1". The axis is braked to the changed velocity and moved to the new target position
1500.0. When the new target position is reached, this is signaled via "Done_2".
11.2.7 MC_Halt
Description
With the Motion Control instruction "MC_Halt", you can brake an axis to a standstill.
Dynamic behavior during the braking process is defined with the parameters "Jerk" and
"Deceleration".
Applies to
● Positioning axis
● Speed axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The "MC_Halt" job is aborted by:
● Disabling the axis with "MC_Power.Enable" = FALSE
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Starting a "MC_Halt" job aborts the following active Motion Control jobs:
● "MC_Home" job "HomingMode" = 4, 5
● "MC_Halt" job
● "MC_MoveAbsolute" job
● "MC_MoveRelative" job
● "MC_MoveVelocity" job
● "MC_MoveJog" job
Parameters
The following table shows the parameters of the "MC_Halt" Motion Control instruction:
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 175) section.
See also
Error ID (Page 386)
Section An axis is moved with an "MC_MoveVelocity" job (A1). When the setpoint velocity 50.0 is reached, this is sig-
naled via "InVel_1". At time ①, the "MC_MoveVelocity" job is overridden by an "MC_Halt" job (A2). The job
termination is signaled via "Abort_1". The axis is braked to a standstill. Successful completion of the "MC_Halt"
job is signaled via "Done_2".
Section The axis is moved with an "MC_MoveVelocity" job (A1). When the setpoint velocity 50.0 is reached, this is
signaled via "InVel_1". Next the "MC_MoveVelocity" job is overridden by an "MC_Halt" job (A2). The job termi-
nation is signaled via "Abort_1". During the braking process the "MC_Halt" job is overridden at time ② by an
"MC_MoveVelocity" job (A1). The job termination is signaled via "Abort_2". When the setpoint velocity 50.0 is
reached, this is signaled via "InVel_1". The axis is then moved with constant velocity.
11.2.8 MC_Reset
Description
All technology alarms that can be acknowledged in the user program are acknowledged with
the Motion Control instruction "MC_Reset". Acknowledgment also resets the "Error" and
"Warning" bits in the technology data block.
Technology objects are reinitialized (restarted) using the Motion Control instruction
"MC_Reset" with "Restart" = TRUE. Upon restart of the technology object, the new
configuration data are applied in the technology data block.
Applies to
● Positioning axis
● Speed axis
● External encoder
Requirements
● The cause of the error for a pending technology alarm has been resolved.
● For a restart, the technology object must be disabled.
("MC_Power.Status" = FALSE and "MC_Power.Busy" = FALSE)
Override response
● Parameter "Restart" = FALSE:
Processing of the instruction "MC_Reset" can be aborted by other Motion Control jobs.
The MC_Reset job does not abort any running Motion Control jobs.
● Parameter "Restart" = TRUE:
The processing of the instruction "MC_Reset" with parameter "Restart" = TRUE cannot
be aborted by any other Motion Control job.
Parameters
The following table shows the parameters of the "MC_Reset" Motion Control instruction:
Note
Acknowledging with "Restart" = FALSE
If only the technology alarms are to be acknowledged, set "Restart" = FALSE. The
technology object cannot be used during a restart.
See also
Error ID (Page 386)
A.1.1 Legend
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Tags
Legend (Page 321)
Tags
Legend (Page 321)
Tags
Legend (Page 321)
Tags
Legend (Page 321)
Tags
Legend (Page 321)
Tags
Legend (Page 321)
Tags
Legend (Page 321)
Tags
Legend (Page 321)
Tag
Legend (Page 321)
Tag
Legend (Page 321)
Tags
Legend (Page 321)
Tag
Legend (Page 321)
Tags
Legend (Page 321)
Tags
Legend (Page 321)
A.2.1 Legend
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Tags
Legend (Page 332)
Tags
Legend (Page 332)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
Tags
Legend (Page 332)
Tags
Legend (Page 332)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
100.0%
• Non-isochronous drive connection via
PROFIdrive:
0.0 to 100.0%
• Analog drive connection:
0.0 to 100.0%
EnableDSC BOOL - RES Dynamic Servo Control (DSC)
FALSE: DSC disabled
TRUE: DSC enabled
DSC is only possible if frame 5 is used.
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Synchronous operation (Page 73)
Tag
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tag
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Technology alarms (Page 215)
Tag
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
Tags
Legend (Page 332)
See also
Evaluating the technology data block (Page 173)
A.3.1 Legend
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Tags
Legend (Page 358)
Tags
Legend (Page 358)
Tags
Legend (Page 358)
Tags
Legend (Page 358)
Tags
Legend (Page 358)
Tags
Legend (Page 358)
Tags
Legend (Page 358)
Tags
Legend (Page 358)
Tag
Legend (Page 358)
Tag
Legend (Page 358)
Tags
Legend (Page 358)
Tag
Legend (Page 358)
Tags
Legend (Page 358)
A.4.1 Overview
The following table shows an overview of the technology alarms and the corresponding
alarm reactions. When a technology alarm occurs, evaluate the entire indicated alarm text, in
order to find the precise cause.
Legend
See also
Technology alarms (Page 215)
A.5 Error ID
Errors in Motion Control instructions are reported by means of "Error" and "ErrorID"
parameters.
Under the following conditions, "Error" = TRUE and "ErrorID" = 16#8xxx are indicated at the
Motion Control instruction:
● Invalid status of the technology object, which prevents the execution of the job.
● Invalid parameter assignment of the Motion Control instruction, which prevents the
execution of the job.
● As a result of the alarm reaction for an error at the technology object.
See also
Errors in Motion Control instructions (Page 219)
A.6.1.1 StopMode 0
A.6.1.2 StopMode 1
Function chart: Enabling a technology object and occurrence of a technology alarm with alarm
response "Stop with maximum dynamic values"
Function chart: Enabling a technology object and occurrence of a technology alarm with alarm
response "Remove enable"
A.6.2.1 StopMode 0
A.6.2.2 StopMode 1
Function chart: Enabling a technology object and occurrence of a technology alarm with alarm
response "Stop with maximum dynamic values"
Function chart: Enabling a technology object and occurrence of a technology alarm with alarm
reaction "Remove enable"
Axis type
The axis type differs depending on the unit of measurement according to which the axis is
positioned.
Depending on the execution of the mechanics, an axis is implemented as a linear axis or
rotary axis:
● For linear axes, the position of the axis is specified as a linear measure,
e.g. millimeters (mm).
● For rotary axes, the position of the axis is specified as an angular measure,
e.g. degrees (°).
Drive
The combination of motor (electric or hydraulic), actuator (converter, valve), control system,
measuring system and supply (infeed, accumulator).
Following error
The following error is the difference between the position setpoint and the actual position
value. The transmission times of the setpoint to the drive, and of the actual position value to
the controller, are taken into account in the calculation of the following error.
GSD file
As a Generic Station Description, this file contains all properties of a PROFINET or
PROFIBUS device that are necessary for its configuration.
Homing
With homing, you create the relationship between the position in the technology object and
the mechanical position of the axis. The position value in the technology object is assigned
to a homing mark at the same time. This homing mark represents a known mechanical
position.
Incremental encoder
Position encoder which outputs the position change incrementally in the form of a digital
numerical value.
Kv factor
Velocity gain
Gain factor in position control loop
Master value
Input variable for synchronous operation
Override
Percentage correction of the velocity/speed
PROFIdrive
PROFIdrive is a profile specified by the PNO (PROFIBUS user organization) for
PROFIBUS DP and PROFINET IO for speed- and position-controlled drives.
PROFIdrive frame
Frame for communication according to PROFIdrive.
Proximity switch
Position switch which is activated with the moving part without mechanical contact.
Restart
The technology object is reinitialized with the current configuration parameters.
Synchronous operation
Defined movement of a following axis to a leading axis.
Technology interrupt
If an error occurs at a technology object (e.g. approaching a hardware limit switch), then a
technology interrupt is triggered and indicated.
The impact of a technology interrupt on the technology object is specified by the interrupt
reaction (e.g. remove enable). The interrupt reaction is specified by the system.
Zero mark
Position reference for the movement of rotary and linear incremental encoders. The zero
mark of an incremental encoder is used as a homing mark, for example.
A G
Absolute actual value, 35 Gear ratio, 74
Absolute value adjustment, 39, 56 Gearing, 74
Active homing, 39, 43, 46, 48, 136
Actuator, 19
Axis control panel, 202, 206 H
Axis type, 26
Hardware limit switches, 65, 129
Hardware limit switches, 65, 129
Home position, 40
C
Homing mark, 40
Clock reduction, 78
Closed-loop position control, 59, 60, 146
Control, 59, 60, 146 I
Incremental actual value, 35
Interpolator OB, 78, 80
D
Default for the dynamics, 70, 132
Diagnostics J
S7-1500 Motion Control, 214, 219
Jerk limit, 70, 130, 132
Direct homing, 39, 56
Direction reversal at the hardware limit switch, 41, 55,
137
L
DSC (Dynamic Servo Control), 59, 60, 146
Dynamic Servo Control (DSC), 59, 60, 146 Leadscrew pitch, 37, 38, 125
Limit switch, 65, 67, 129
Limits for dynamics, 69, 130
E Linear axis, 26
Load gear, 37, 38, 125
Emergency stop deceleration, 71, 134
Error ID, 219, 386
ErrorID
M
Basics, 214, 219
List of ErrorIDs, 386 Master control, 202
Errors in Motion Control instructions, 214, 219, 386 Master value coupling, 76
External encoder MC_GearIn, 270, 274
Add, 99 MC_Halt, 275, 278
Basics, 18, 25 MC_Home, 239
Configuration, 147 MC_MoveAbsolute, 260, 264
Diagnostics, 231, 232, 233 MC_MoveJog, 244, 248
Functions, 20 MC_MoveRelative, 255, 259
Tags, 358 MC_MoveSuperimposed, 265, 269
MC_MoveVelocity, 249, 254
MC_Power, 234, 238
F MC_Reset, 279
MC-Interpolator OB, 78, 80
Following error monitoring, 61, 63, 64, 144
Speed axis V
Add, 99
Velocity profile, 70
Basics, 17, 21
Configuration, 102
Diagnostics, 220, 223, 224
Z
Functions, 20
Tags, 321 Zero mark, 40
Synchronous axis
Add, 99
Basics, 18, 23
Diagnostics, 225, 229, 230
Functions, 20
Tags, 332
Synchronous operation, 73, 74, 76, 124
T
Tags of the positioning axis technology object, 332
Tags of the synchronous axis technology object, 332
Tags of the technology object external encoder, 358
Tags of the technology object SpeedAxis, 321
Technology alarms
Basics, 214
List of the technology alarms, 368
Technology data block
Analyzing, 173
Basics, 18, 172
Change restart-relevant data, 177
Evaluate StatusWord, ErrorWord and
WarningWord, 175
Tags of the positioning axis technology object, 332
Tags of the synchronous axis technology
object, 332
Tags of the technology object external encoder, 358
Tags of the technology object SpeedAxis, 321
Technology object
External encoder, 18, 20, 25, 99, 147, 231, 232,
233
Positioning axis, 17, 20, 22, 99, 110, 225, 229, 230
Speed axis, 17, 20, 21, 99, 102, 220, 223, 224
Synchronous axis, 18, 20, 23, 99, 110, 225, 229,
230
Traversing range limitation, 65, 67, 68, 129
Type of encoder mounting, 37, 38, 125
U
Unit of measure, 27