s71500 Motion Control Function Manual en-US en-US
s71500 Motion Control Function Manual en-US en-US
Preface
___________________
Documentation guide 1
SIMATIC
___________________
Introduction 2
___________________
Technology objects 3
S7-1500
S7-1500 Motion Control V4.0 in
___________________
Using versions 4
TIA Portal V15
___________________
Configuring 5
Function Manual
___________________
Programming 6
___________________
Downloading to CPU 7
___________________
Commissioning 8
___________________
Diagnostics 9
___________________
Instructions 10
___________________
Appendix A
12/2017
A5E03879256-AE
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.industry.siemens.com).
Security information
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is
necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial
security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems,
machines and networks. Such systems, machines and components should only be
connected to an enterprise network or the internet if and to the extent such a connection is
necessary and only when appropriate security measures (e.g. firewalls and/or network
segmentation) are in place.
For additional information on industrial security measures that may be implemented, please
visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more
secure. Siemens strongly recommends that product updates are applied as soon as they are
available and that the latest product versions are used. Use of product versions that are no
longer supported, and failure to apply the latest updates may increase customers' exposure
to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS
Feed under (https://www.siemens.com/industrialsecurity).
Preface ...................................................................................................................................................... 4
1 Documentation guide ............................................................................................................................... 16
2 Introduction .............................................................................................................................................. 20
2.1 Interplay of the various documents ........................................................................................ 20
2.2 Integrated Motion Control functionality .................................................................................. 21
2.3 Principle of operation of S7-1500 Motion Control .................................................................. 22
2.4 Functions................................................................................................................................ 27
2.4.1 Functions - Axes .................................................................................................................... 27
2.4.2 Functions - Other technology objects .................................................................................... 28
2.5 Guidelines on use of motion control....................................................................................... 29
3 Technology objects .................................................................................................................................. 30
3.1 Configuration limits ................................................................................................................ 30
3.2 Basics - Axes ......................................................................................................................... 31
3.2.1 Axis types ............................................................................................................................... 31
3.2.2 Units of measure .................................................................................................................... 32
3.2.3 Modulo setting ........................................................................................................................ 33
3.2.4 Long-term accuracy ............................................................................................................... 33
3.2.5 Drive and encoder connection ............................................................................................... 34
3.2.5.1 Brief description ..................................................................................................................... 34
3.2.5.2 PROFIdrive telegrams ........................................................................................................... 36
3.2.5.3 Actual values .......................................................................................................................... 39
3.2.5.4 Automatic transfer of drive and encoder parameters in the device ....................................... 42
3.2.5.5 Safety functions in the drive ................................................................................................... 44
3.2.5.6 Axis in simulation ................................................................................................................... 49
3.2.5.7 Virtual axis.............................................................................................................................. 50
3.2.5.8 Data connection drive/encoder via data block ....................................................................... 50
3.2.5.9 Tags ....................................................................................................................................... 52
3.2.6 Mechanics .............................................................................................................................. 53
3.2.6.1 Brief description ..................................................................................................................... 53
3.2.6.2 Tags ....................................................................................................................................... 54
3.2.7 Traversing range limitation..................................................................................................... 55
3.2.7.1 Brief description ..................................................................................................................... 55
3.2.7.2 Hardware limit switches ......................................................................................................... 55
3.2.7.3 Software limit switch .............................................................................................................. 57
3.2.7.4 Tags ....................................................................................................................................... 58
3.2.8 Motion control and limits for dynamics ................................................................................... 59
3.2.8.1 Brief description ..................................................................................................................... 59
3.2.8.2 Velocity profile ........................................................................................................................ 60
3.2.8.3 Emergency stop deceleration ................................................................................................ 62
3.2.8.4 Dynamic limits in synchronous operation .............................................................................. 62
3.2.8.5 Torque limits........................................................................................................................... 63
A Appendix................................................................................................................................................ 431
A.1 Tags of the speed axis technology object ............................................................................431
A.1.1 Legend ..................................................................................................................................431
A.1.2 Actual values and setpoints (speed axis) .............................................................................431
A.1.3 Variable simulation (speed axis) ...........................................................................................432
A.1.4 VirtualAxis tag (speed axis) ..................................................................................................432
A.1.5 Actor tags (speed axis) .........................................................................................................433
A.1.6 Torque Limiting tag (speed axis) ..........................................................................................434
A.1.7 LoadGear tags (speed axis) .................................................................................................435
A.1.8 Units tags (speed axis) .........................................................................................................435
A.1.9 DynamicLimits tags (speed axis) ..........................................................................................436
A.1.10 DynamicDefaults tags (speed axis) ......................................................................................436
A.1.11 Override tags (speed axis) ....................................................................................................437
A.1.12 StatusDrive tags (speed axis) ...............................................................................................437
A.1.13 StatusTorqueData tags (speed axis) ....................................................................................438
A.1.14 StatusMotionIn tags (speed axis) .........................................................................................438
A.1.15 StatusWord tag (speed axis) ................................................................................................439
A.1.16 ErrorWord tag (speed axis) ...................................................................................................441
A.1.17 ErrorDetail tags (speed axis) ................................................................................................442
A.1.18 WarningWord tag (speed axis) .............................................................................................443
A.1.19 ControlPanel tags (speed axis).............................................................................................444
A.1.20 InternalToTrace tags (speed axis) ........................................................................................445
A.2 Tags of the positioning axis/synchronous axis technology object ........................................445
A.2.1 Legend ..................................................................................................................................445
A.2.2 Actual values and setpoints (positioning axis/synchronous axis) .........................................446
A.2.3 Simulation tag (positioning axis / synchronous axis) ............................................................446
A.2.4 VirtualAxis tag (positioning axis/synchronous axis) ..............................................................447
A.2.5 Actor tags (positioning axis/synchronous axis).....................................................................447
A.2.6 TorqueLimiting tag (positioning axis/synchronous axis) .......................................................449
A.2.7 Clamping tag (positioning axis/synchronous axis)................................................................449
A.2.8 Sensor[n] tags (positioning axis/synchronous axis)..............................................................450
A.2.9 Extrapolation tag (positioning axis/synchronous axis) ..........................................................452
A.2.10 LoadGear tags (positioning axis/synchronous axis) .............................................................453
A.2.11 Properties tags (positioning axis/synchronous axis).............................................................453
A.2.12 Units tag (positioning axis/synchronous axis) .......................................................................454
A.2.13 Mechanics tags (positioning axis/synchronous axis) ............................................................455
A.2.14 Modulo tags (positioning axis/synchronous axis) .................................................................456
A.2.15 DynamicLimits tags (positioning axis/synchronous axis)......................................................456
A.2.16 DynamicDefaults tags (positioning axis/synchronous axis) ..................................................457
A.2.17 PositionLimits_SW tags (positioning axis/synchronous axis) ...............................................457
A.2.18 PositionLimits_HW tags (positioning axis/synchronous axis) ...............................................458
A.2.19 Homing tags (positioning axis/synchronous axis).................................................................459
A.2.20 Override tags (positioning axis/synchronous axis) ...............................................................460
A.2.21 PositionControl tags (positioning axis/synchronous axis).....................................................461
A.2.22 DynamicAxisModel tags (positioning axis/synchronous axis) ..............................................462
A.2.23 FollowingError tags (positioning axis/synchronous axis) ......................................................463
A.2.24 PositionMonitoring tags (positioning axis/synchronous axis) ...............................................464
A.2.25 StandstillSignal tags (positioning axis/synchronous axis) ....................................................465
A.2.26 StatusPositioning tags (positioning axis/synchronous axis) .................................................465
A.2.27 StatusDrive tags (positioning axis/synchronous axis) ..........................................................466
A.2.28 StatusServo tags (positioning axis/synchronous axis) .........................................................466
Basic information
The 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
Product manuals contain a compact description of the module-specific information, such as
properties, wiring diagrams, characteristics and 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, OPC UA.
You can download the documentation free of charge from the Internet
(https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet
(https://support.industry.siemens.com/cs/us/en/view/68052815).
"mySupport"
With "mySupport", your personal workspace, you make the best out of your Industry Online
Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your
personal library in the Documentation area. In addition, your data is already filled out in
support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).
"mySupport" - Documentation
In the Documentation area in "mySupport" you can 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 "mySupport" - Documentation on the Internet
(http://support.industry.siemens.com/My/ww/en/documentation).
Application examples
The application examples support you with various tools and examples for solving your
automation tasks. Solutions are shown in interplay with multiple components in the system -
separated from the focus on individual products.
You will find the application examples on the Internet
(https://support.industry.siemens.com/sc/ww/en/sc/2054).
PRONETA
With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET
network during commissioning. PRONETA features two core functions:
● The topology overview independently scans PROFINET network and all connected
components.
● The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet
(https://support.industry.siemens.com/cs/ww/en/view/67460624).
SINETPLAN
SINETPLAN, the Siemens Network Planner, supports you in planning automation systems
and networks based on PROFINET. The tool facilitates professional and predictive
dimensioning of your PROFINET installation as early as in the planning stage. In addition,
SINETPLAN supports you during network optimization and helps you to exploit network
resources optimally and to plan reserves. This helps to prevent problems in commissioning
or failures during productive operation even in advance of a planned operation. This
increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
● Network optimization thanks to port-specific calculation of the network load
● Increased production availability thanks to online scan and verification of existing systems
● Transparency before commissioning through importing and simulation of existing STEP 7
projects
● Efficiency through securing existing investments in the long term and optimal exploitation
of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).
Overview
You create a project, configure technology objects, and download the configuration to the
CPU with 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 316) and
diagnostics (Page 332).
The following figure provides a schematic representation of the user interfaces and the
integration of Motion Control into the S7-1500 CPU. 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 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 is 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") is used to specify the speed for a
drive. You program the motion of the axis with motion control instructions.
● Positioning axis technology object
The positioning axis technology object ("TO_PositioningAxis") is used to position a drive
with closed-loop position control. You issue positioning jobs to the axis with Motion
Control instructions in your user program.
● Synchronous axis technology object
The synchronous axis technology object ("TO_SynchronousAxis") includes all functions of
the positioning axis technology object. The axis can also be interconnected with a leading
value so that the axis follows the position change of a leading axis in synchronous
operation.
The properties of real objects are configured by means of the technology objects and saved
in a technology data block (Page 284). 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 (read/write access) 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".
User program
The Motion Control instructions and the technology data block represent the programming
interfaces for the technology objects. You use Motion Control instructions to transfer Motion
Control jobs for the technology objects in your user program. You track the status of running
jobs via the output parameters of the Motion Control instructions. You access status
information of the technology object and change specific configuration parameters during
runtime using the technology data block.
2.4 Functions
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 175)
2. Working with the configuration editor (Page 178)
3. Programming (Page 284)
4. Downloading to CPU (Page 315)
5. Functional test in the Commissioning window (Page 316)
6. Diagnostics (Page 332)
You can find an overview of the Motion Control resources of a CPU in the TIA Portal under
"Tools > Resources".
Application cycle
As the number of technology objects used increases, the computing time needed by CPU to
process the technology objects increases. The Motion Control application cycle (Page 95)
can be adapted according to the number of technology objects used.
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
Force Torque
N, kN Nm, kNm
lbf, ozf, pdl lbf in, lbf ft, ozf in, ozf ft, pdl in, pdl ft
The unit of measure for time is permanently specified for the following technology objects:
Note
When setting or changing the units of measure, take into consideration the effect on the
display of parameter values and the user program:
• Display of parameter values in the technology data block
• Assignment of parameters in the user program
• Input and display of the position and velocity in the TIA Portal
• Setpoint settings by leading axes in synchronous operation
All information and displays correspond to the selected unit of measure.
The set units are displayed in the tag structure of the technology object <TO>.Units. The tag
structure is described in the Appendix (Page 431) under the tags of the respective
technology object.
The traversing time restarts when one of the following conditions is fulfilled:
● You have homed the axis with "MC_Home".
● You have changed the velocity of the axis
A change in the velocity has the consequence that the traversing time changes
accordingly.
PROFIdrive
PROFIdrive is the standardized drive technology profile for connecting drives and encoders
via PROFIBUS DP and PROFINET IO. Drives that support the PROFIdrive profile are
connected according to the PROFIdrive standard.
The current PROFIdrive specification is available at:
http://www.profibus.com (http://www.profibus.com)
Communication between the controller and drive/encoder is performed using various
PROFIdrive telegrams. Each of the telegrams has a standardized structure. You can select
the appropriate telegram according to the application. Control words and status words as
well as setpoints and actual values are transmitted in the PROFIdrive telegrams.
The PROFIdrive profile likewise supports the "Dynamic Servo Control" (DSC) control
concept. DSC uses rapid closed loop position control in the drive. This can be used to solve
highly dynamic Motion Control tasks.
Stepper motors
Drives with a stepper motor interface are connected using telegram 3 and with the help of
PTO (Pulse Train Output) pulse generators.
For functional support of stepper motor operation, quantization of the control deviation can
be set.
Through the specification of a quantization, a range around the target position is defined in
which no correction of the actual position is to be made. This prevents a possible oscillation
of the stepper motor around the target position. Two types of quantization can be set:
● Quantization of the control deviation corresponding to the encoder resolution
(<TO>.PositionControl.ControlDifferenceQuantization.Mode = 1)
This prevents oscillation of the stopped motor between two increment values, for
example. This mode is especially helpful when using multiple encoders. With this setting,
the quantization is adapted appropriately at an encoder switchover. This mode is helpful
for stepper motors with encoders in which the resolution of the encoder is lower than the
step size of the stepper motor.
● Direct specification of a value for quantization of the control deviation.
(<TO>.PositionControl.ControlDifferenceQuantization.Mode = 2, value setting in
<TO>.PositionControl.ControlDifferenceQuantization.Value)
This mode is helpful for stepper motors with encoders in which the resolution of the
encoder is greater than the step size of the stepper motor.
Telegram types
The following table shows the supported PROFIdrive telegram types for the assignment of
drives and encoders:
See also
Data connection drive/encoder via data block (Page 50)
Brief description
For position-controlled motion and positioning, the controller must know the actual position
value.
The actual position value is provided by a PROFIdrive telegram.
The actual values are represented as incremental or absolute values in the PROFIdrive
telegram. The actual values are normalized in the controller to the technological unit taking
into account the configuration of the mechanics. The reference to a physical position of the
axis or external encoder is established by homing.
The controller supports the following types of actual values (encoder types):
● Incremental actual value
● Absolute actual value with the setting absolute (measuring range > traversing range of
the axis)
● Absolute actual value with the setting absolute (measuring range < traversing range of
the axis)
See also
Virtual axis (Page 50)
Axis in simulation (Page 49)
Absolute actual value with setting absolute (measuring range > traversing range)
The axis position results directly from the current actual encoder value. The traversing range
must be within an encoder measuring range. This means that the zero passage 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 actual
encoder value.
Absolute actual value with setting cyclic 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 saved traversed measuring ranges 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.
See also
Absolute value adjustment (Page 85)
Tags
The tags named in the Homing (Page 87) section are relevant for adapting actual values.
Parameters
The controller settings are made in the TIA Portal under "Technology object > Configuration
> Hardware interface > Data exchange with the drive/encoder".
The drive and encoder settings are made in the configuration or the respective hardware.
The following table compares the settings in the TIA Portal, in the controller and the
corresponding drive/encoder parameters:
Additional information
Additional information on the safety functions in SINAMICS drives and on the SIC is
available in the SINAMICS S120 Safety Integrated Function Manual.
https://support.industry.siemens.com/cs/document/99668646
(https://support.industry.siemens.com/cs/ww/en/view/99668646)
The tables below provide an overview of the four SIC status words and the required
response for each to prevent faults in plant operation.
S_ZSW1B
S_V_LIMIT_B
S_ZSW2B
S_ZSW3B
0 Brake test 1 Brake test selected MC_Power remains enabled. Do not start travel motion with user
program.
0 Deselected None – brake test is inactive (normal plant operation)
1 Setpoint value 1 Specification for drive The speed setpoint is specified by the SBT function.
specification Application-dependent evaluation
drive / external
0 External specification The "normal" speed setpoint is in effect.
(control) Application-dependent evaluation – setpoint value specification
through user program required
2 Active brake 1 Test brake 2 active Status message (if required in the user program)
Application-dependent evaluation
0 Test brake 1 active Status message (if required in the user program)
Application-dependent evaluation
3 Brake test 1 Test active Status message (if required in the user program)
active Application-dependent evaluation
0 Inactive None
4 Brake test 1 Test required Status message (if required in the user program)
result Application-dependent evaluation
0 With error(s) Status message (if required in the user program)
Application-dependent evaluation, test must usually be successful
to guarantee safety of the brake.
5 Brake test 1 Run test Status message (if required in the user program)
complete Application-dependent evaluation
0 Incomplete Status message (if required in the user program)
Application-dependent evaluation, usually test is repeated
6 External brake 1 Closing the brake Closing external brake (when controlled by user program)
request Application-dependent evaluation
0 Opening the brake Opening external brake (when controlled by user program)
Application-dependent evaluation
7 Current load 1 Negative sign Status of the load sign if required in the user program
sign 0 Positive sign Application-dependent evaluation
8 … Reserved - -
13
14 Acceptance 1 Acceptance test SLP(SE) Status message (if required in the user program)
test SLP(SE) selected Application-dependent evaluation
selected
0 Deselected None
15 Acceptance 1 Acceptance test mode Status message (if required in the user program)
test selected Application-dependent evaluation
mode selected 0 Deselected None
See also
PROFIdrive telegrams (Page 36)
Organization Blocks for Motion Control (Page 95)
Connect drive/encoder via data block (Page 269)
3.2.5.9 Tags
The following technology object tags are relevant for the drives and encoder connections:
Drive telegram
<TO>.Actor.Interface.AddressIn Input address for the PROFIdrive telegram
<TO>.Actor.Interface.AddressOut Output address for the PROFIdrive telegram or the analog
setpoint
<TO>.Actor.DriveParameter.Reference Reference value (100%) for the speed setpoint (NSET) of
Speed the drive
<TO>.Actor.DriveParameter.MaxSpeed Maximum value for the speed setpoint of the drive (NSET)
<TO>.Actor.DriveParameter.Reference Reference torque for the torque transferred as a percent-
Torque age
Encoder telegram
<TO>.Sensor[n].Interface.AddressIn Input address for the PROFIdrive telegram
<TO>.Sensor[n].Interface.AddressOut Output address for the PROFIdrive telegram
<TO>.Sensor[n].System Encoder system linear or rotary
<TO>.Sensor[n].Type Encoder type, incremental, absolute or cyclic absolute
<TO>.Sensor[n].Parameter.Resolution Resolution for linear encoder
The grid spacing corresponds to the distance between
two marks.
<TO>.Sensor[n].Parameter.StepsPer Steps per revolution for rotary encoder
Revolution
<TO>.Sensor[n].Parameter.Determinable Number of differentiable encoder revolutions for a multi-
Revolutions turn absolute encoder
Fine resolution
<TO>.Sensor[n].Parameter.Fine Number of bits for fine resolution XIST1 (cyclic actual
ResolutionXist1 encoder value)
<TO>.Sensor[n].Parameter.Fine Number of bits for fine resolution XIST2 (absolute value of
ResolutionXist2 encoder)
Simulation mode
<TO>.Simulation.Mode Simulation mode
0: No simulation, normal operation
1: Simulation mode
3.2.6 Mechanics
External encoder
The following configuration options for mechanics are supported:
● Measuring gear (for rotary encoders)
● Leadscrew pitch (only with linear system of units and rotary encoders)
● Inversion of encoder direction
Speed axis
The following configuration options for mechanics are supported:
● Load gear
● Inversion of drive direction
3.2.6.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 numerator
<TO>.LoadGear.Denominator Load gear denominator
Leadscrew pitch
<TO>.Mechanics.LeadScrew Leadscrew pitch
Encoder mounting type
<TO>.Sensor[n].MountingMode Encoder mounting type
<TO>.Sensor[n].Parameter.Distance Load distance per encoder revolution with an externally
PerRevolution mounted encoder
Inversion
<TO>.Actor.InverseDirection Setpoint inversion
<TO>.Actor.Efficiency Efficiency of leadscrew pitch
<TO>.Sensor[n].InverseDirection Actual value inversion
Modulo
<TO>.Modulo.Enable Enable modulo
<TO>.Modulo.Length Modulo length
<TO>.Modulo.StartValue Modulo start value
① Mechanical endstop
② Hardware limit switches
③ Software limit switches
④ Maximum traversing range
⑤ Operating range
Exception
If the hardware limit switches are used as reversing cams or reference cams during homing,
then the monitoring of the hardware limit switches has no effect.
When hardware limit switches are used as reversing cams, the axis is braked with the
deceleration configured in the dynamic defaults.
This must be taken into account when planning the distance of the hardware limit switch to
the mechanical endstop.
Retracting
The position of the axis when the hardware limit switch is detected is stored internally on the
CPU. The status of the reached 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 retract the axis after it reaches the hardware limit switch and to reset the status of the
hardware limit switch, follow the steps below:
1. To enable motion in the retraction direction, acknowledge the technology alarm.
2. Traverse the axis in the retraction direction until the hardware limit switch is left.
The axis must then be within the maximum traversing range.
If you move the axis opposite the retraction direction before the hardware limit switch is
left, the monitoring will be triggered again.
The following chart shows the behavior of the status word when the hardware limit switch is
reached and when the axis is retracted:
① <TO>.StatusWord.X17 (HWLimitMinActive)
0: Negative hardware limit switch not reached
1: Negative hardware limit switch reached or overtraveled
② <TO>.StatusWord.X18 (HWLimitMaxActive)
0: Positive hardware limit switch not reached
1: Positive hardware limit switch reached or overtraveled
③ The position of the axis when the positive hardware limit switch is detected is saved internally
in the CPU. To reset the status of the hardware limit switch, the axis position must fall short of
this position.
④ The position of the axis when the negative hardware limit switch is detected is saved internally
in the CPU. To reset the status of the hardware limit switch, the axis position must go past this
position.
Modulo enabled
With modulo enabled, the modulo position is monitored.
The software limit switches are configured and activated in the axis configuration. The
software limit switches can be activated or deactivated in the user program using the
<TO>.PositionLimits_SW.Active tag, If the positions of both software limit switches are
outside the modulo range, the monitoring has no effect. No check is made to determine
whether the positions of the software limit switches are within the modulo range.
Retracting
To retract the axis after violation of the software limit switch, follow the steps below:
1. Acknowledge the technology alarm.
2. Move the axis in the retraction direction until the software limit switch is left.
If you move the axis opposite the retraction direction before the software limit switch is
left, the monitoring with be triggered again.
3.2.7.4 Tags
The following technology object tags are relevant for software limit switches:
Status indicators
<TO>.StatusWord.X15 (SWLimitMinActive) Negative software limit switch is active
<TO>.StatusWord.X16 (SWLimitMaxActive) Positive software limit switch is active
<TO>.ErrorWord.X8 (SWLimit) An alarm is pending, that a software limit switch was
violated
Control bits
<TO>.PositionLimits_SW.Active Enables / disables the monitoring of the software limit
switches
Position values
<TO>.PositionLimits_SW.MinPosition Position of the negative software limit switch
<TO>.PositionLimits_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 active
<TO>.StatusWord.X18 (HWLimitMaxActive) Positive hardware limit switch is active
<TO>.ErrorWord.X9 (HWLimit) An alarm is pending; a hardware limit switch was
violated
Control bits
<TO>.PositionLimits_HW.Active Enables / disables the monitoring of the hardware
limit switches
Parameters
<TO>.PositionLimits_HW.MinSwitchLevel Level selection for activation of the low hardware limit
switch:
FALSE: At low level, the signal is active
TRUE: At high level, the signal is active
<TO>.PositionLimits_HW.MinSwitchAddress Byte number of the I/O address of the hardware limit
switch for the low or minimum position
<TO>.PositionLimits_HW.MaxSwitchLevel Level selection for activation of the high hardware
limit switch:
FALSE: At low level, the signal is active
TRUE: At high level, the signal is active
<TO>.PositionLimits_HW.MaxSwitchAddress Byte number of the I/O address of the hardware limit
switch for the high or maximum position
See also
Dynamic limits in synchronous operation (Page 62)
Acceleration
Deceleration
Acceleration
Deceleration
A velocity profile with jerk limitation is employed for a continuous acceleration and
deceleration sequence. The jerk can be specified.
Leading axis
The dynamic limits configured for the technology object are always in effect for the leading
axis.
Following axis
If a synchronous axis is operated as a following axis in synchronous operation with
MC_GearIn, the following dynamic limits apply depending on the phase of the synchronous
operation.
● Synchronization
During the synchronizing phase, dynamic limits configured for the technology object apply
to the following axis.
● Synchronous motion
When the synchronous axis is moving synchronously to the leading axis as a following
axis, the dynamics of the following axis is limited only to the maximum speed of the drive
(<TO>.Actor.DriveParameter.MaxSpeed). The dynamics of the following axis results from
the synchronous operation function.
If the dynamic limits configured for the following axis are exceeded, this will be indicated
in the technology object tag <TO.>StatusSynchronizedMotion.StatusWord.
If the following axis cannot follow the leading value, this results in a following error, which
is monitored by the following error monitoring.
● Synchronous operation override
As soon as synchronous operation has been overridden, the dynamic limits configured for
the technology object apply to the following axis again. With the start of the overriding job,
the active dynamics is transitioned (smoothed) to the configured dynamic limits and the
specifications for the Motion Control instruction.
See also
StatusSynchronizedMotion tags (synchronous axis) (Page 469)
Override response V4: Synchronous operation jobs (Page 429)
Force/torque limiting
Adjustable force/torque limiting is available for the speed axis, positioning axis and
synchronous axis technology objects. The force/torque limiting can be activated and
deactivated before and during a motion job. To use force/torque limiting, the drive and the
PROFIdrive telegram must support torque reduction. A telegram 10x can be used.
The limit value can be configured as a default value during configuration of the axis or it can
be defined in the user program using Motion Control instruction "MC_TorqueLimiting".
The user specifies the limiting values in the configured unit of measure for force or torque.
The units of measure are defined in the "Basic parameters" configuration window.
The following configuration options are available for force/torque limiting.
● "Linear" axis type
– Torque limiting is active on motor side
– Force limiting is active on the load side
● "Rotary" axis type
– Torque limiting is active on load side or motor side
The force/torque limit defined by the user in accordance with the specification in the
PROFIdrive telegrams 10x are transferred internally to the drive as a percentage torque
reduction. The reference torque set in the "Data exchange with the drive" configuration
dialog must match the reference torque set for the drive.
Linear axis type
Load-side force limitation you have defined is converted by the technology into torque
reduction. If the limiting relates to the load side, the gear and leadscrew parameters defined
in the "Mechanics" configuration dialog are taken into consideration. If the gear and
leadscrew efficiency is crucial, you can set them in the <TO>.Actor.Efficiency tag.
Rotary axis type:
The torque is reduced on the load side with the rotary axis type. The gear parameters
defined in the "Mechanics" configuration window are taken into consideration. If the
efficiency of the gear is crucial, you can set them in the <TO>.Actor.Efficiency tag.
The defined limiting values act as an absolute value and thus in the same way for positive
and negative forces/torques.
See also
MC_TorqueLimiting: Activate and deactivate force/torque limit / fixed stop detection V4
(Page 417)
Fixed stop detection (Page 65)
Configuration - Torque limits (Page 190)
Configuration - Torque limits (Page 214)
Retracting
Retracting from the fixed stop is only possible with a position-controlled motion job in the
opposite direction to the fixed stop.
The "Travel to fixed stop" or "Clamping" function is ended when the "Positioning tolerance" is
left in the retraction direction.
See also
Force/torque limiting (Page 63)
Configuration - Fixed stop detection (Page 215)
MC_TorqueLimiting: Activate and deactivate force/torque limit / fixed stop detection V4
(Page 417)
See also
MC_TorqueAdditive: Specify additive torque V4 (Page 422)
See also
MC_TorqueRange: Set high and low torque limits V4 (Page 425)
3.2.8.6 Tags
The following technology object tags are relevant for motion control:
Status
<TO>.StatusWord Status indicator for an active motion
<TO>.Position Position setpoint
<TO>.Velocity Velocity setpoint / speed setpoint
<TO>.ActualPosition Actual position
<TO>.ActualVelocity Actual velocity
<TO>.ActualSpeed Actual speed of the motor (only with PROFIdrive drive type)
<TO>.Acceleration Setpoint acceleration
<TO>.ActualAcceleration Actual acceleration
<TO>.StatusSynchronizedMotion.StatusWord.X0 Set to value TRUE when the maximum velocity configured for the
(MaxVelocityExceeded) following axis is exceeded during synchronous operation.
<TO>.StatusSynchronizedMotion.StatusWord.X1 Set to value TRUE when the maximum acceleration configured for
(MaxAccelerationExceeded) the following axis is exceeded during synchronous operation.
<TO>.StatusSynchronizedMotion.StatusWord.X2 Set to value TRUE when the maximum deceleration configured for
(MaxDecelerationExceeded) the following axis is exceeded during synchronous operation.
<TO>.StatusMotionIn.FunctionState Status of the MotionIn function
0: No function activated
1: MotionInVelocity activated
2: MotionInPosition activated
Override
<TO>.Override.Velocity Velocity or speed override
Torque limiting
<TO>.TorqueLimiting.LimitDefaults.Torque Limiting torque
<TO>.TorqueLimiting.LimitDefaults.Force Limiting force
<TO>.TorqueLimiting.LimitBase Torque limiting motor or drive side
0: Motor side
1: Load side
<TO>.TorqueLimiting.PositionBasedMonitorings Disable/enable positioning and following error monitoring
0: Deactivate
1: Keep active
<TO>.StatusTorqueData.CommandAdditiveTorqueActive Additive torque setpoint function
0: Deactivated
1: Activated
<TO>.StatusTorqueData.CommandTorqueRangeActive Torque limits function
0: Deactivated
1: Activated
<TO>.StatusTorqueData.ActualTorque Actual torque of the axis
3.2.9 Homing
Homing status
The technology object tag <TO>.StatusWord.X5 (HomingDone) indicates whether the axis or
external encoder technology object is homed.
Type of homing
Homing can occur by means of an independent homing motion (active homing), the
detection of a homing mark during a motion initiated on the user side (passive homing) or a
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 homing mark
approach. When the homing mark is detected, the actual position is set to the value
specified in MC_Home. It is possible to specify a home position offset. Retraction to the
home position offset occurs automatically during the home position approach.
When active homing starts, current traversing movements are aborted.
● Passive homing
The homing job does not perform its own homing motion. When the homing mark is
detected during a motion initiated on the user side, the actual position is set to the value
specified in "MC_Home".
Passive homing is also called homing on the fly.
● Direct homing
With the homing job, the actual position is set directly to the value specified in
"MC_Home" or is offset by this value.
● Absolute encoder adjustment
The absolute encoder adjustment compares the existing absolute actual value with the
value specified in "MC_Home".
Homing mode
Depending on the type of homing mark and homing mark search, a distinction is made
among the following homing modes (Page 72):
● Homing with homing cam and zero mark via PROFIdrive telegram
● Homing with zero mark via PROFIdrive telegram
● Homing with digital input
3.2.9.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 encoder module.
● An edge at the digital input
The negative or positive edge at a digital input is used as a homing mark.
Reference cam
If there are several zero marks in the traversing range, the reference cam is used to select a
specific zero mark before or after the reference cam.
Home position
At the end of the active homing motion, the axis arrives at the home position.
Homing with homing cam and zero mark via PROFIdrive telegram
The system checks for when the reference cam is reached. After the reference cam has
been reached and left again in the assigned homing direction, zero mark detection is
enabled via the PROFIdrive telegram.
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 555)
Motion sequence
The motion occurs in the following sequence:
1. Start of active homing via the "MC_Home" Motion Control instruction
2. Approach to reference cam
3. Detection of the reference cam in the homing direction and travel with homing velocity
4. Departure from the reference cam and travel to the homing mark
With the departure from the reference cam, 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" in "MC_Home" = 3
Position = value in parameter "Position" minus
<TO>.Sensor[n].ActiveHoming.HomePositionOffset
– Parameter "Mode" in "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 155).
Note
If the velocity cannot be reduced to the reference velocity between detection of the
reference cam and the zero mark, homing is performed at the velocity present when the
zero mark is crossed.
See also
Homing SINAMICS drives with external zero marks (Page 555)
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" in "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 155).
See also
Homing SINAMICS drives with external zero marks (Page 555)
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 positive edge at the digital input, while moving with homing velocity
3. Approach to the homing mark
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 155).
Note
If the velocity on the span from the detection of the positive edge to the negative 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. Activation of passive homing using the Motion Control instruction "MC_Home".
2. Motion due to a Motion Control job from the application
The detection of the reference cam and homing mark is enabled when the actual position
value of the axis or encoder moves in the assigned homing direction.
3. Detection of the reference cam
4. Departure from the reference cam
The departure from the reference cam 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" in "MC_Home" = 2, 8
Position = value in parameter "Position"
– Parameter "Mode" in "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 155).
Note
If the motion direction changes after departure from the reference cam and before
detection of the homing mark, the reference cam 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 155).
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 155).
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 distance 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.
● Error in 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 155).
● 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
Absolute encoder
In the following cases, the "Homed" status is reset, and the technology object must be
rehomed.
● Replacement of the CPU
● Modification of the encoder configuration
● Restoration of the CPU factory settings
● Transfer of a different project into the controller
When you use a new absolute value encoder you need to home the absolute encoder once
again.
Resetting the memory of the CPU or upgrading a project does not require another absolute
value adjustment.
3.2.9.14 Tags
The following technology object tags are relevant for homing:
Status indicators
<TO>StatusWord.X11 (HomingCommand) Homing job running
<TO>StatusWord.X5 (HomingDone) Technology object is homed
<TO>ErrorWord.X10 (HomingFault) Error occurred during homing
Approach to reference cam
<TO>.Homing.ApproachDirection Start direction or approach direction for the
approach to the reference cam
<TO>.Homing.ApproachVelocity Velocity for the approach to the reference cam
Approach to the homing mark
<TO>.Sensor[n].ActiveHoming.Direction Homing direction
<TO>.Homing.ReferencingVelocity Velocity for the approach to the homing mark
Move to homing point
<TO>.Homing.ApproachVelocity Velocity for the move to homing point
Positions
<TO>.Homing.AutoReversal Reversal at the hardware limit switches
<TO>.Homing.HomePosition Home position
<TO>.StatusSensor[n].AbsEncoderOffset Calculated offset after the absolute encoder
adjustment
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.DigitalInputAddress Address of digital input
<TO>.Sensor[n].ActiveHoming.HomePositionOffset Offset of the homing mark from the home
position
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.DigitalInputAddress Address of digital input
Note
Evaluation of the bits in StatusWord, ErrorWord and WarningWord
Read the information provided in section Evaluate StatusWord, ErrorWord and WarningWord
(Page 288).
The following figure shows the chronological sequence and the positioning window:
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 reaching of the target position on the part of the setpoint
● by position controlled stopping during the motion by 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.2.10.5 Tags
The following technology object tags are relevant for position monitoring and for the
standstill:
Status indicators
<TO>.StatusWord.X7 (Standstill) Set to the value TRUE when the actual velocity reaches
the standstill window and does not exit it within the
minimum dwell time.
The standstill signal is only present for the positioning
axis/synchronous axis.
<TO>.StatusWord.X6 (Done) Positioning axis/synchronous axis
Set to the TRUE, when the actual velocity value reach-
es the positioning window within the tolerance time and
remains in the window for the minimum dwell time.
Speed axis
Set to TRUE, when the motion is complete and the
speed setpoint is therefore 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 velocity setpoint 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)
Velocity precontrol
The velocity precontrol can be used to minimize the velocity-based following error during
position control. As a result, faster positioning is achieved, if needed, because the position
controller only has to compensate disturbances.
When using the velocity precontrol, the velocity setpoint is additionally added to the output of
the position controller. You can weight this additional setpoint by a factor.
See also
PROFIdrive telegrams (Page 36)
The following figure shows the effective closed loop control structure with DSC:
See also
Configuration - Control loop (Page 228)
3.2.11.3 Tags
The following technology object tags are relevant for the closed-loop control:
Parameters
<TO>.PositionControl.Kv Proportional gain of the closed loop position control
<TO>.PositionControl.Kpc Velocity precontrol of the positioning system (in %)
<TO>.PositionControl.EnableDSC Enable DSC
<TO>.DynamicAxisModel.VelocityTime Speed control loop substitute time [s]
Constant
<TO>.PositionControl.ControlDifference- Type of quantification
Quantization.Mode Configuration of a quantization when a drive with stepper
motor interface is connected
0: No quantification
1: Quantization corresponding to encoder resolution
2: Quantization to a direct value (value input in
<TO>.PositionControl.ControlDifferenceQuantization.-
Value)
(configuration is performed using the parameter view
(data structure))
<TO>.PositionControl.ControlDifference- Value of quantification
Quantization.Value Configuration of a value for quantization to a direct value
(<TO>.PositionControl.ControlDifferenceQuantization.-
Mode = 2)
The quantization value is specified in the position unit of
the axis.
(configuration is performed using the parameter view
(data structure))
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.
MC-PreServo [OB67] and MC-PostServo [OB95]
In addition, you can create the organization blocks MC-PreServo [OB67] and
MC-PostServo [OB95].
The organization blocks MC-PreServo [OB67] and MC-PostServo [OB95] can be
programmed. They are called in the configured application cycle. This means you can use
the organization blocks MC-PreServo [OB67] and MC-PostServo [OB95] for consistent data
processing or time-critical events, such as starting of motions or homing functions for the
process that may have to run synchronously with the application cycle.
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 98) will occur. In order to achieve optimal control quality,
the calculations of the organization blocks MC-PreServo [OB67], MC-Servo [OB91] and
MC-PostServo [OB95] must be performed within a send cycle.
You can check the runtime of MC-Servo [OB91] and MC-Interpolator [OB92] with the
expanded instruction "RT_INFO".
The current application cycle (information in µs) of the organization blocks MC-
PreServo [OB67] and MC-PostServo [OB95] can be read using the start information.
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 26 (default value 26)
● MC-Interpolator [OB92]
Priority 16 to 25 (default value 24)
The priority of MC-Servo [OB91] must be at least one higher than the priority of
MC-Interpolator [OB92].
The priority of the organization blocks MC-PreServo [OB67] and MC-PostServo [OB95]
correspond to the priority of the MC-Servo [OB91]. MC-PreServo [OB67] is called
immediately before MC-Servo [OB91]. MC-PostServo [OB95] is called immediately after
MC-Servo [OB91].
See also
Data connection drive/encoder via data block (Page 50)
Overflows
Overflows can occur if the configured application cycle is not adhered to, for example
because additional technology objects or programs are added in the MC-PreServo [OB67] or
MC-PostServo [OB95]. The application cycle must be adapted in this case to prevent
overflows.
A message is generated in the diagnostic buffer of the CPU in the case of an overflow of
MC-Servo [OB91] in the send clock. The controller no longer runs isochronously.
The CPU switches to STOP mode in the case of an overflow of MC-Servo [OB91] in the
application cycle.
The following figure shows the behavior in the case of overflow of MC-Servo [OB91] in the
application cycle and in the send clock with a reduction ratio of 2:
The following figure shows the operational sequence if there are four consecutive individual
overflows of MC-Interpolator [OB92]:
④ RUN → STOP When the CPU changes from RUN mode to STOP mode, all technology objects are disabled
in accordance with the alarm response "remove enable". Active Motion Control jobs are
aborted.
If restart-relevant data has been changed for technology objects in RUN, the CPU performs a
restart of the corresponding technology objects.
⑤ STARTUP → HOLD Breakpoint in the start-up routine reached.
STOP mode
In STOP mode the user program is not processed and all 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.
See also
Axis types (Page 31)
Note
The leading values and following values are coupled without conversion into the relevant
configured user unit. If, for example, a linear leading axis moves by 10 mm, a rotary following
axis moves by 10° with at a gear ratio of 1:1.
Synchronization
Synchronization begins with the start of an "MC_GearIn (Page 413)" job. When a
synchronous axis is synchronizing to a leading value, this is indicated in the technology
object tag <TO>.StatusWord.X21 (Synchronizing). Active motion jobs are overridden. The
dynamic values (acceleration, delay, jerk) of the following axis for the synchronization are
specified at "MC_GearIn".
The synchronization duration and distance are dependent on the following parameters:
● Start time of the "MC_GearIn" job
● Dynamics of the following axis at the start time
● Dynamic value settings for "MC_GearIn"
● Dynamics of the leading axis
If the following axis has reached the velocity and the acceleration of the leading axis, taking
into account the gear ratio, the following axis is synchronized. The following axis travels
synchronously with the leading axis.
Synchronous motion
When a synchronous axis is synchronized to a leading value, the "Synchronous" status is
indicated by parameter "MC_GearIn.InGear" = TRUE as well as in the technology object tag
<TO>.StatusWord.X22 (Synchronous). The following axis follows the dynamics of the
leading axis according to the gear ratio.
The response characteristic during gearing is expressed by a linear relationship between the
leading value and following value.
Direction
The numerator of the gear ratio is specified as positive or negative. This yields the following
behavior:
● Positive gear ratio:
The leading and following axes move in the same direction.
● Negative gear ratio:
The following axis moves in the opposite direction of the leading axis.
See also
MC_GearIn: Start gear synchronization V4 (Page 413)
Tags for synchronous operation (Page 109)
MC_MoveSuperimposed: Position axes overlapping V4 (Page 395)
Dynamic limits in synchronous operation (Page 62)
Status indicators
<TO>.StatusSynchronizedMotion.ActualMaster When a synchronous operation job is started, the number of the
technology data block of the currently used leading axis is dis-
played.
"ActualMaster" = 0 when synchronous operation is inactive
<TO>.StatusSynchronizedMotion.PhaseShift Current absolute leading value shift
<TO>.StatusWord.X21 (Synchronizing) Set to value TRUE when the synchronous axis synchronizes to a
leading value.
<TO>.StatusWord.X22 (Synchronous) Set to value TRUE when the synchronous axis is synchronized and
moves synchronously to the leading axis,
<TO>.ErrorWord.X14 (SynchronousError) Error during synchronous operation
The leading axis specified in the Motion Control instruction was not
configured as a possible leading axis.
<TO>.StatusSynchronizedMotion.StatusWord.X0 Set to value TRUE when the maximum velocity configured for the
(MaxVelocityExceeded) following axis is exceeded during synchronous operation.
<TO>.StatusSynchronizedMotion.StatusWord.X1 Set to value TRUE when the maximum acceleration configured for
(MaxAccelerationExceeded) the following axis is exceeded during synchronous operation.
<TO>.StatusSynchronizedMotion.StatusWord.X2 Set to value TRUE when the maximum deceleration configured for
(MaxDecelerationExceeded) the following axis is exceeded during synchronous operation.
Measurement types
Two types of measurement can be performed:
● One-time measurement (Page 116)
Up to two measured values are acquired with edge accuracy with one measuring job. A
one-time measuring job is started with "MC_MeasuringInput".
● Cyclic measuring (Page 117)
With cyclic measuring, up to two measured values are acquired with edge accuracy in
each position control cycle.
A cyclic measuring job is started with "MC_MeasuringInputCyclic". The measurements
are continued cyclically until they are ended per command.
The edges to be detected are selected when starting the measurement using Motion Control
instruction "MC_MeasuringInput" or "MC_MeasuringInputCyclic".
Assignment
The measuring input technology object must always be assigned to another technology
object whose position will be evaluated by the measuring input.
The measuring input technology object can be assigned to the following technology objects:
● Synchronous axis
● Positioning axis
● External encoder
Exactly one axis or one external encoder can be assigned to a measuring input technology
object.
An axis or external encoder can be assigned multiple measuring input technology objects.
Correction time
The time of the measurement can be corrected by setting a correction time
(<TO>.Parameter.CorrectionTime) for the measuring input technology object.
Corrections may be required for the following examples:
● Times for mechanical displacement of the measuring input
● Times for the generation of the measured signal before the input at the measurement
module
● Filter times at the input or filter times for the measurement inputs on the SINAMICS drive
unit
The correction time is calculated by the measuring input technology object for time-based
measured value acquisition ("TIME_BASED") and for direct position detection
("PROFIDRIVE").
Also note the time delay when measuring on a virtual axis. See section Brief description
(Page 39).
3.7.2 Measuring
Measuring job
A measuring job is started using the Motion Control instruction "MC_MeasuringInput". The
<TO>.Status tag in the technology data block changes to "WAITING_FOR_TRIGGER". The
technology object activates the measurement when the selected edge is detected.
The measurement occurs at the measurement input in the form of up to two system times.
Based on the times, the associated position is determined and output, taking into
consideration a correction time, if present.
With direct position detection, the detected position value is supplied directly from the drive
or encoder module to the technology object via the PROFIdrive telegram.
The measurement is then finished. An additional measurement must be restarted using
Motion Control instruction "MC_MeasuringInput".
Table 3- 1 Mode and display of the results of measurement results when using one-time measurement
Configured "Mode" parameter in Motion Control Output of Motion Control instruction "MC_MeasuringInput"
instruction "MC_MeasuringInput" MeasuredValue1 MeasuredValue2
Measure positive edge only Actual position at the time of the –
Measure negative edge only edge
Measure the next two edges Actual position at the time of the Actual position at the time of the
first edge second edge
Measure the next two edges starting with the Actual position at the time of the Actual position at the time of the
positive edge positive edge negative edge
Measure the next two edges starting with the Actual position at the time of the Actual position at the time of the
negative edge negative edge positive edge
The last detected values are set in the technology data block. If a new job is initiated with the
function block, the outputs of the function block are initialized. The technology data block is
not initialized. After detecting the first valid measuring cycle, the values in the technology
data block and function block are consistent with one another.
The finished measuring command is indicated in the function block in
"MC_MeasuringInput.DONE" = TRUE or in the technology data block in <TO>.Status =
"TRIGGER_OCCURRED".
See also
Time-related boundary conditions (Page 122)
MC_MeasuringInput: Start measuring once V4 (Page 399)
Measuring job
A cyclic measuring job is started with Motion Control instruction "MC_MeasuringInputCyclic",
and the measuring job is issued to the corresponding technology module. Depending on the
functionality of the technology module, up to two measuring events and thus measuring
times can be captured with edge reference in each position control cycle and then forwarded
to the technology object. The technology object determines the measuring positions for the
measuring times taking into consideration any specified correction times.
The technology data block tag "<TO>.Status" changes from "INACTIVE" to
"WAITING_FOR_TRIGGER" and remains in this status as long as additional events are
awaited.
The mode set in the Motion Control instruction specifies the edges for which the measured
values are to be acquired. At most, the following edges can be detected in each position
control cycle:
● Two positive edges when detecting positive edges
● Two negative edges when detecting negative edges
● One positive edge and one negative edge when detecting positive and negative edges
See also
MC_MeasuringInputCyclic: Start cyclic measuring V4 (Page 402)
Figure 3-1 Example of measuring with measuring range in Mode = 0 (measurement of next positive
edge)
Only measured values within the measuring range are displayed for the technology object.
● If no measuring edge within the measuring range is detected during a one-time
measurement, the measuring job is canceled and an alarm is triggered.
● Cyclic measuring remains active even if no measuring edge within the measuring range
was detected.
For axes without modulo function, it is immaterial in which order the start and end positions
are specified. If the start position is greater than the end position, the two values are
interchanged in the application. If the start position for an axis with modulo function is greater
than the end position, the measuring range is extended from the start position past the
modulo transition of the axis to the end position.
Definition of tags
● Tservo = Call interval of the technology object in the servo cycle clock [ms]
● TSend = Send clock [ms]
● MeasuringRangeActivationTime = See section Measuring with measuring range
(Page 121)
To prevent asynchronous processing from overwriting a measured value that was just
determined, a new one-time measuring job cannot be started until the active measurement
has concluded. The sum of the activation time and the time until display or conclusion must
be taken into account for this.
With cyclic measuring, evaluation or temporary storage of the measurement results in the
synchronous MC-PostServo [OB95] is recommended from the user perspective.
3.7.5 Tags
Status display
<TO>.Status Measuring input function status
0: Measurement is not active ("INACTIVE")
1: The measuring input is waiting for a measuring event
("WAITING_FOR_TRIGGER")
2: The measuring input has acquired one or more measured values
("TRIGGER_OCCURRED").
3: Error during the measurement ("MEASURING_ERROR")
<TO>.InputState Measuring input input status
Parameters
<TO>.Parameter.MeasuringInputType Measuring input type
<TO>.Parameter.PROFIdriveProbeNumber Number of the measuring input to be used for a measurement using
PROFIdrive telegram
<TO>.Parameter.MeasuringRangeActivation- System-defined activation time allocation [ms]
Time
<TO>.Parameter.MeasuringRangeAdditional- Additional user-defined activation time allocation [ms]
ActivationTime
<TO>.Parameter.CorrectionTime User-defined correction time for the measurement result [ms]
Interface
<TO>.Interface.Address I/O address for the digital measuring input
Units
<TO>.Units.LengthUnit Unit of the length data
<TO>.Units.TimeUnit Unit of the time data
MeasuredValues
<TO>.MeasuredValues.MeasuredValue1 First measured value
<TO>.MeasuredValues.MeasuredValue2 Second measured value (when measuring two or more edges in one posi-
tion control cycle)
<TO>.MeasuredValues.MeasuredValue1- Count value for the first measured value
Counter
<TO>.MeasuredValues.MeasuredValue2- Count value for the second measured value
Counter
<TO>.MeasuredValues.LostEdgeCounter1 Lost edges in the cycle clock of the first measured value acquisition
(zero in the case of one-time measurement)
<TO>.MeasuredValues.LostEdgeCounter2 Lost edges in the cycle clock of the second measured value acquisition
(zero in the case of one-time measurement)
StatusWord
<TO>.StatusWord.X0 (Control) The technology object is in operation.
<TO>.StatusWord.X1 (Error) An error occurred at the technology object.
<TO>.StatusWord.X2 (RestartActive) The technology object is being reinitialized. The tags of the technology
data block are not updated with active restart.
<TO>.StatusWord.X3 (OnlineStart- Data relevant for the restart has been changed. The changes are applied
ValuesChanged) only after a restart of the technology object.
<TO>.StatusWord.X5 (CommunicationOk) The measuring input is synchronized with the measuring module and can
be used.
ErrorWord
<TO>.ErrorWord.X0 (SystemFault) A system-internal error has occurred.
<TO>.ErrorWord.X1 (ConfigFault) 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.X2 (UserFault) Error in user program at a Motion Control instruction or its use.
<TO>.ErrorWord.X3 (CommandNotAccepted) Command cannot be executed.
A Motion Control instruction cannot be executed because necessary re-
quirements have not been met.
<TO>.ErrorWord.X13 (PeripheralError) Error accessing a logical address.
ErrorDetail
<TO>.ErrorDetail.Number Alarm number
<TO>.ErrorDetail.Reaction Effective alarm reaction
0: No reaction
6: End measuring input processing
Assignment
The output cam technology object must always be assigned to another technology object
whose position will be evaluated.
The output cam technology object can be assigned to the following technology objects:
● Synchronous axis
● Positioning axis
● External encoder
Exactly one axis or one external encoder can be assigned to an output cam.
Multiple output cams can be assigned to one axis or external encoder.
Position reference
The switching points of the output cams can be referenced to the following positions,
depending on the interconnected technology object.
● Actual position of a synchronous axis/positioning axis
● Position setpoint of a synchronous axis/positioning axis
● Position of an external encoder
Homing the interconnected technology object
A change to the position of an axis or external encoder using Motion Control instruction
"MC_Home" is regarded as a sudden position change.
● Distance output cams are either skipped or correspondingly output.
● Time-based output cams are skipped. A time-based output cam is switched on only when
the start position is crossed and remains switched on for the on-load factor.
● Switched time-based output cams are not canceled by a homing operation.
Switch-on range
The switch-on range of distance output cams is basically defined by the start position and
end position.
Start position smaller than end position
When the start position is less than the end position, the switch-on range begins with the
start position and ends with the end position.
Switching characteristics
After activation, a distance output cam switches on in the following cases:
● The position of the interconnected technology object reaches the start or end position in
the activation direction configured in Motion Control instruction "MC_OutputCam".
● The position of the interconnected technology object is moved into the switch-on range of
the output cam (e.g. during homing) in the activation direction configured in Motion
Control instruction "MC_OutputCam". If both activation directions are enabled in Motion
Control instruction "MC_OutputCam", the output cam switches on even when the
interconnected technology object is at a standstill.
● The output cam is switched on permanently using Motion Control instruction
"MC_OutputCam" with "Mode" = 3.
An active distance output cam switches off in the following cases:
● The position is outside the switch-on range of the output cam.
● The position value is moved outside the switch-on range of the output cam.
● Motion Control instruction "MC_OutputCam" is set to "Enable" = FALSE.
● The motion direction of the interconnected technology object is reversed and no longer
agrees with the enabled activation direction.
Switching characteristics
A time-based output cam switches on in the following cases:
● The start position has been reached and the motion direction of the interconnected
technology object corresponds to the effective direction enabled by the instruction.
Note
• If the start position is reached again while an output cam is switched on, the on-load
factor is not re-triggered.
• If due to the Motion Control instruction "MC_Home", the position value of the
interconnected technology object is placed directly on or behind the start position of
the output cam during the motion, the output cam does not switch on.
3.8.5 Hysteresis
Possible variations in the actual position/position setpoint can result in unwanted switch-on
and switch-off of cams.
Minimal changes of the actual value of an axis at standstill can result in switch-on or switch-
off of an actual value output cam with specified positive or negative effective direction. Even
minimal changes of the setpoints of a switched-off axis in follow-up mode can result in
switch-on or switch-off of an actual value output cam with specified positive or negative
effective direction. Such unwanted switching states can be prevented by configuring a
hysteresis (> 0.0). The configuration of a hysteresis value (> 0.0) is recommended in
particular with reference to the actual position.
The hysteresis is a position tolerance within which the position values may vary without
changing the switching state of the output cam. Changes of direction detected within the
hysteresis are ignored.
The hysteresis is set for the technology object in <TO>.Parameter.Hysteresis.
Behavior
● The hysteresis is activated at a direction reversal.
● The following applies within the hysteresis:
– The switching state of distance output cams is not changed.
– The motion direction is not determined again.
– If the start position of a time-based output cam is within the hysteresis, the time-based
output cam is switched on when leaving the hysteresis with the corresponding
effective direction.
– The on-load factor of time-based output cams remains unchanged.
● After the hysteresis range is exited, distance output cams are set according to the output
cam settings.
① Actual position
② Effective position
③ Hysteresis range
The following examples show the effects of the hysteresis on the switching behavior of
output cams with positive activation direction.
Hysteresis range
The maximum size of the hysteresis range in the system is as follows: for an axis with
modulo function, one quarter of the modulo range; for an axis without modulo function, one
quarter of the operating range.
Note
• The following must be met for the times:
On-load factor > deactivation time - activation time
(The on-load factor for distance output cams is determined by the switching positions and
the current velocity)
• If the output cam has been switched taking the lead times into consideration, this action
has taken place from the system perspective and will not be restarted in response to any
subsequent variation in the actual speed.
• System-dependent runtimes are automatically taken into consideration when output by
TM Timer DIDQ is used.
When the output with a digital output module is used, system-dependent runtimes are not
taken into consideration and must be set as correction times in the activation time or
deactivation time.
3.8.7 Tags
Status display
<TO>.CamOutput The output cam is switched.
Parameters
<TO>.Parameter.OutputCamType Output cam type
0: Distance output cam
1: Time-based output cam
<TO>.Parameter.PositionType Position reference
0: Position setpoint
1: Actual position
<TO>.ParameterOnCompensation Activation time (lead time for the switch-on edge)
<TO>.Parameter.OffCompensation Deactivation time (lead time for the switch-off edge)
<TO>.Parameter.Hysteresis Hysteresis value
Interface
<TO>.Interface.EnableOutput Activation of the output cam output
FALSE: No output
TRUE: Output
<TO>.Interface.Address I/O address of the output cam
<TO>.Interface.LogicOperation Logical operation of the output cam signals at the output
0: OR operation
1: AND operation
Units
<TO>.Units.LengthUnit Unit of the length data
<TO>.Units.TimeUnit Unit of the time data
StatusWord
<TO>.StatusWord.X0 (Control) The technology object is in operation.
<TO>.StatusWord.X1 (Error) An error occurred at the technology object.
<TO>.StatusWord.X2 (RestartActive) The technology object is being reinitialized. The tags of the technology
data block are not updated with active restart.
<TO>.StatusWord.X3 (OnlineStart- Data relevant for the restart has been changed. The changes are applied
ValuesChanged) only after a restart of the technology object.
<TO>.StatusWord.X4 (OutputInverted) The output cam output is inverted.
<TO>.StatusWord.X5 (CommunicationOk) The cam is synchronized with the output module and available for use.
ErrorWord
<TO>.ErrorWord.X0 (SystemFault) A system-internal error has occurred.
<TO>.ErrorWord.X1 (ConfigFault) 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.X2 (UserFault) Error in user program at a Motion Control instruction or its use.
<TO>.ErrorWord.X3 (CommandNotAccepted) Command cannot be executed.
A Motion Control instruction cannot be executed because necessary re-
quirements have not been met.
<TO>.ErrorWord.X13 (PeripheralError) Error accessing a logical address.
ErrorDetail
<TO>.ErrorDetail.Number Alarm number
You can find a list of the technology alarms and alarm reactions in the
Technology Alarms (Page 513) appendix.
<TO>.ErrorDetail.Reaction Effective alarm reaction
0: No reaction
6: Output cam processing is complete.
You can find a list of the technology alarms and alarm reactions in the
Technology Alarms (Page 513) appendix.
① Start position
② End position
③ Cam track length
Figure 3-2 Cam track with distance output cam
The output cam positions are defined relative to the cam track. The start of the cam track is
always 0.0. The output cam positions on the cam track are thus always positive.
When the cam track is processed, the output cams with start position within the track length
are taken into consideration.
If the end of a cam track is crossed, connected output cams behave as follows within the
cam track:
● Time-based output cams remain switched on for the set on-load factor.
● Distance output cams whose end position lie outside the cam track are switched off when
the cam track is left.
Cams whose start and end positions lie outside the cam track length are ignored. They
become active only if the cam track length is increased so that at least the respective start
position of an output cam is within the new track length.
Figure 3-3 Cam track with output cam output at negative axis position
The cam track is mapped onto the position of the interconnected technology object starting
from the reference position and is continued cyclically in both directions.
① Axis with modulo length 360° ① Axis with modulo length 360°
② Cam track with track length 120° ② Cam track with track length 160°
⇒ Ratio = 360° / 120° = 3 ⇒ Ratio = 360° / 160° = 2.25
The cam track is output 3 times on a The cam track is output 2.25 times on the
modulo length. first modulo length and continued corre-
spondingly in the other modulo lengths.
During cyclic processing of the cam track, the continued reference position of the current
cam track is displayed in the <TO>.MatchPosition tag. The continued reference position is
independent of direction and always the position of the left boundary of the cam track. The
unique detection and output of the position is only possible when the assigned technology
object is in motion. The distance to the current reference position of the current cam track
(<TO>.MatchPosition) is displayed in the <TO>.TrackPosition tag.
Assignment
The cam track technology object must always be assigned to another technology object
whose position is evaluated.
The cam track technology object can be assigned to the following technology objects:
● Synchronous axis
● Positioning axis
● External encoder
Exactly one axis or one external encoder can be assigned to a cam track.
Multiple cam tracks can be assigned to one axis or external encoder.
Position reference
The switching points of the output cams of a cam track can be referenced to the following
positions, depending on the interconnected technology object.
● Actual position of a synchronous axis/positioning axis
● Position setpoint of a synchronous axis/positioning axis
● Position of an external encoder
Homing the interconnected technology object
A change to the position of an axis or external encoder using Motion Control instruction
"MC_Home" is regarded as a sudden position change. An enabled cam track is referenced
to the changed position and processed further from there.
● For axes with modulo function, homing also has an effect on the current position of the
cam track (<TO>.TrackPosition). The position is formed again as quickly as possible due
to the offset.
● Distance output cams are either skipped or correspondingly output.
● Time-based output cams are skipped. A time-based output cam is switched on only when
the start position is crossed and remains switched on for the on-load factor.
● Switched time-based output cams are not canceled by a homing operation.
We recommend locking the cam track before or during homing.
Figure 3-5 Executing a cam track with distance output cams dependent on the motion direction of
the axis
● With positive motion direction, the output cams of the cam track are output in the order
Output Cam N1, Output Cam N2, Output Cam N3
● In the case of negative motion direction, the output cams of the cam track are output in
the order Output Cam N3, Output Cam N2, Output Cam N1
● The distance output cams switch on at ① and switch off at ②
Figure 3-6 Executing a cam track with time-based output cams dependent on the motion direction of
the axis
● With positive motion direction, the output cams of the cam track are output in the order
Output Cam N1, Output Cam N2, Output Cam N3
● In the case of negative motion direction, the output cams of the cam track are output in
the order Output Cam N3, Output Cam N2, Output Cam N1
● The time-based output cams switch on at ① and remain switched on for the set switch-
on duration ②
Changing cam track data when modulo length is not a multiple of the track length
For the switching times to be set correctly, we recommend the following procedure for
changes:
● Enter changes as soon as possible after start of a new cam track
● Enter a new reference position (<TO>.Parameter.ReferencePosition) for the changed
cam track. The new reference position is composed as follows depending on the
direction:
– Positive effective direction: Current reference position (<TO>.MatchPosition) + cam
track length (<TO>.Parameter.CamTrackLength)
– Negative effective direction: Current reference position (<TO>.MatchPosition) - cam
track length (<TO>.Parameter.CamTrackLength)
● Output the changes of the cam track when calling the Motion Control instruction
"MC_CamTrack" and "Mode" = 1.
Example
The following figure shows an example of the differences in the activation behavior.
A1 A The cam track is activated the first time with "MC_CamTrack.Enable" = TRUE and the
output cams are output immediately with set "MC_CamTrack.Mode" = 0.
B After cam track data were changed (①), the cam track is activated by calling Motion
Control instruction "MC_CamTrack" with "Enable" = TRUE and the modified data takes
effect immediately (①) with set "MC_CamTrack.Mode" = 0.
A2 A The cam track is activated the first time with "MC_CamTrack.Enable" = TRUE and the
output cams are output immediately with set "MC_CamTrack.Mode" = 1.
B After cam track data were changed (①), the cam track is activated by calling Motion
Control instruction "MC_CamTrack" with "Enable" = TRUE and the modified data takes
effect at the end of the current track cycle (②) with set "MC_CamTrack.Mode" = 1.
3.9.5 Hysteresis
The hysteresis is set in the cam track technology object. The behavior and effect of the
hysteresis setting corresponds to the hysteresis (Page 136) for the cam technology object.
3.9.7 Tags
Status display
<TO>.Status 0: Inactive
1: Active
2: Active and waiting for next track
<TO>.TrackOutput A cam of cam track is switched.
<TO>.SingleCamState Switched on output cam (bit-masked)
<TO>.TrackPosition Display of the current position within the cam track
The distance to the current reference position of the current cam track
(<TO>.MatchPosition) is displayed.
<TO>.MatchPosition Reference position of the current cam track
During cyclic processing of the cam track, the continued reference position of
the current cam track is displayed. The unique detection and output of the
position is only possible when the assigned technology object is in motion.
Parameters
<TO>.Parameter.CamTrackType Output cam type
0: Distance output cam
1: Time-based output cam
<TO>.Parameter.PositionType Position reference
0: Position setpoint
1: Actual position
<TO>.Parameter.ReferencePosition Reference position
<TO>.Parameter.CamTrackLength Track length
<TO>.Parameter.CamMasking Bit masking of individual output cams
<TO>.Parameter.OnCompensation Activation time (lead time for the switch-on edge)
<TO>.Parameter.OffCompensation Deactivation time (lead time for the switch-off edge)
<TO>.Parameter.Hysteresis Hysteresis value
<TO>.Parameter.Cam[1 … 32].OnPosition Start position (distance and time-based output cams)
<TO>.Parameter.Cam[1 … 32].OffPosition End position (distance output cam)
<TO>.Parameter.Cam[1 … 32].Duration Switch-on duration (time-based output cam)
Compatibility list
The table below shows the compatibility of the technology version with the CPU version:
You can find additional information about the "MC_Home.Mode" parameter in the description
of the Motion Control instruction "MC_Home" (Page 369).
Innovations
Technology Version V4.0 contains the following new features:
● Exchange of torque data with the drive in the technological units of the technology object.
– Additive setpoint torque
– Current actual torque
– Permissible torque range
● Extension of the data structure of the positioning axis and synchronous axis for using
technology object kinematics
● Use of optimized data blocks (drive/encoder connection)
● MC_CamTrack V4.0
● MC_GearIn V4.0
● MC_GearInPos V4.0 (S7-1500T)
● MC_PhasingAbsolute V4.0 (S7-1500T)
● MC_PhasingRelative V4.0 (S7-1500T)
● MC_CamIn V4.0 (S7-1500T)
● MC_SynchronizedMotionSimulation V4.0 (S7-1500T)
● MC_InterpolateCam V4.0 (S7-1500T)
● MC_GetCamFollowingValue V4.0 (S7-1500T)
● MC_GetCamLeadingValue V4.0 (S7-1500T)
● MC_MotionInVelocity V4.0 (S7-1500T)
● MC_MotionInPosition V4.0 (S7-1500T)
● MC_TorqueAdditive V4.0
● MC_TorqueRange V4.0
● MC_GroupInterrupt V4.0 (S7-1500T)
● MC_GroupContinue V4.0 (S7-1500T)
● MC_GroupStop V4.0 (S7-1500T)
● MC_MoveLinearAbsolute V4.0 (S7-1500T)
● MC_MoveLinearRelative V4.0 (S7-1500T)
● MC_MoveCircularAbsolute V4.0 (S7-1500T)
● MC_MoveCircularRelative V4.0 (S7-1500T)
● MC_DefineWorkspaceZone V4.0 (S7-1500T)
● MC_DefineKinematicsZone V4.0 (S7-1500T)
● MC_SetWorkspaceZoneActive V4.0 (S7-1500T)
● MC_SetWorkspaceZoneInactive V4.0 (S7-1500T)
● MC_SetKinematicsZoneActive V4.0 (S7-1500T)
● MC_SetKinematicsZoneInactive V4.0 (S7-1500T)
● MC_DefineTool V4.0 (S7-1500T)
● MC_SetTool V4.0 (S7-1500T)
● MC_SetOcsFrame V4.0 (S7-1500T)
If you switch from a technology version <V4.0 to ≥V4.0 or vice versa, an error occurs during
the compilation. You have to adapt the UDT names manually.
Innovations
Technology Version V3.0 contains the following new features:
● Technology object measuring input
● Technology object output cam
● Cam track technology object
● Force/torque limiting
● Fixed stop detection
● Axis type virtual axis
● MC-PreServo [OB67] and MC-PostServo [OB95]
● Technology CPU S7-1500T
Innovations
Technology Version V2.0 contains the following new features:
● Synchronous axis technology object
● Gearing with MC_GearIn
● Superimposed positioning with MC_MoveSuperimposed
● Standardization of the "MC_Home.Mode" parameter for S7-1200 Motion Control and
S7-1500 Motion Control
● Simulation mode
● Support of safety functions of the drive
5.1.1 Introduction
Adding and configuring a drive is described in the following section with the example of a
SINAMICS S120 drive. If you use a SINAMICS V90 PN or a SINAMICS drive with Startdrive,
you can find additional information in the following documentation.
Using Startdrive
If you use a SINAMICS drive with Startdrive, you can find additional information in the
hardware catalog in the "Drives & Starter" folder. For additional information on connecting
via Startdrive, refer to:
● "Getting Started SINAMICS S120 in the Startdrive V14 SP1":
https://support.industry.siemens.com/cs/document/109747452
(https://support.industry.siemens.com/cs/ww/en/view/109747452)
● Application example "Positioning an S120 (Startdrive) with SIMATIC S7-1500 (TO)":
https://support.industry.siemens.com/cs/document/109743270
(https://support.industry.siemens.com/cs/ww/en/view/109743270)
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, it must be installed in the "Options" 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 drive as in the real configuration with the port of the PLC. At
the same time, note the rules for topology configuration.
Configuring the PLC as the sync master and setting isochronous mode
1. Select the device view of the PLC.
2. In the Properties window, select the tab "PROFINET interface [X1] > Advanced options >
Real-time 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 telegram of the configured drive is assigned to the "PIP OB Servo" process image.
Result
The PROFINET IO drive is configured in such a way that it can be controlled in isochronous
mode in the PROFINET IO network.
The properties of the SINAMICS drive must be configured according to the configuration of
the axis with the STARTER software or SINAMICS Startdrive.
See also
PROFIdrive telegrams (Page 36)
Add technology object (Page 175)
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, you must install the drive in the "Options"
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 telegram of the configured drive is assigned to the "PIP OB Servo" process image.
Result
The PROFIBUS DP drive is configured in such a way that it can be controlled in isochronous
mode in the PROFIBUS network.
The properties of the SINAMICS drive must be configured according to the configuration of
the axis with the STARTER software or SINAMICS Startdrive.
See also
PROFIdrive telegrams (Page 36)
Add technology object (Page 175)
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 connection" select "Encoder on technology module (TM)".
7. Select the channel of the incremental encoder from the "Technology module" list under
"local modules".
8. Open the configuration "Hardware interface > Data exchange with encoder > Fine
resolution" and enter the "0" value for "bits in the incr. actual value".
For information on how to add a technology object, refer to the section Add technology
object (Page 175)
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 175)
Requirement
● A project with a CPU S7-1500 has been created.
● For the output cam, cam track, measuring input technology objects:
A speed axis, positioning axis, synchronous axis or external encoder technology object is
created in the project.
Procedure
To add a technology object, follow these steps:
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 opens.
4. Select the required technology object. You can infer the function of the technology object
from the displayed description.
5. If you add output cams, cam tracks, measuring inputs to a technology object, select the
higher-level technology object in the "Axis or external encoder that is to be assigned".
6. In the "Name" input field, adapt the name to your requirements.
7. To change the suggested data block number, select the "Manual" option.
8. To add your own information about the technology object, click "Additional information".
9. To open the configuration after adding the technology object, select the "Add new and
open" check box.
10.To add the technology object, click "OK".
Result
The new technology object was created and created in the "Technology objects" folder in the
project tree.
If the "MC-Servo" and "MC-Interpolator" organizational units were not yet available, they
were added.
Requirement
● A project with a CPU S7-1500 has been created.
● You have created an technology object in the project.
Procedure
To copy a technology object, follow these steps:
1. Open the CPU's folder in the project navigator.
2. Open the "Technology Objects" folder.
3. If necessary, open the higher-level technology object.
4. Select the technology object to be copied.
5. Select "Copy" in the shortcut menu.
6. Select the "Technology objects" folder or the higher-level technology object.
7. Select "Paste" in the shortcut menu.
Result
The selected technology object, including lower-level technology objects, has been copied
and created in the "Technology objects" folder of the project tree.
Requirement
● A project with a CPU S7-1500 has been created.
● You have created an technology object in the project.
Procedure
To delete a technology object, follow these steps:
1. Open the CPU's folder in the project navigator.
2. Open the "Technology Objects" folder.
3. Select the technology object to be deleted.
4. Select the "Delete" command in the shortcut menu.
The "Confirm delete" dialog is opened.
5. To delete the technology object, click "Yes".
Result
The selected technology object has been deleted.
Note
Differences between online and offline values
By adding or deleting technology objects that have a connection to other technology objects,
such as cams, cam tracks, measuring inputs or synchronized axes, differences can occur
when online and offline values are compared. These differences can be eliminated by re-
compiling the project and then uploading it to the CPU.
Symbol Description
Start value in CPU matches the configured start value in project
Start value in CPU does not match the configured start value in project
Software error in lower-level component: The online and offline versions differ in at least
one lower-level software component.
The comparison of the Start value in CPU with the configured start value in project cannot
be performed.
Comparison of the online and offline values is not advisable.
Use this button to show the start value of the CPU and the start value of the project for the
respective parameter.
You can change the start value of the CPU directly and then download it to the CPU. For
directly editable parameters, the actual value can also be changed and the change will be
transferred directly to the CPU.
Name
Define the name of the speed axis in this field. The technology object is listed under this
name in the project tree. You can use the variables of the speed axis in the user program
under this name.
Axis type
If you want to use the axis in the CPU exclusively as a virtual leading axis for
synchronization, for example, select the "Virtual axis" check box. The configuration of a drive
and encoder connection is not relevant.
Simulation
If you want to move a real axis in the simulation mode, select the "Activate simulation" check
box.
In simulation mode, speed, positioning and synchronous axes can be simulated in the CPU
without connected drives and encoders. Simulation mode is possible as of Technology
Version V3.0 even without a configured drive and encoder connection.
For simulation mode without hardware connected to the CPU, you can influence the startup
time of the CPU via the "Configuration time for central and distributed I/Os" parameter. You
can find the parameter in the CPU properties in the "Startup" area navigation.
See also
Units of measure (Page 32)
Axis in simulation (Page 49)
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 is performed via PROFIdrive
telegrams.
Drives with an analog drive connection receive the speed setpoint 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 boundary conditions apply to the activated ready input:
• The axis is only enabled (MC_Power Status = TRUE) when a signal is present at the
ready input.
• If the signal at the ready input goes away for an enabled axis, the axis is disabled with the
alarm reaction "Remove enable".
• If the axis is disabled with the instruction MC_Power (Enable = FALSE), the axis is
disabled even when a signal is present at the ready input.
See also
Configuration - Data exchange with the drive (Page 183)
Connect drive/encoder via data block (Page 269)
Drive and encoder connection (Page 34)
Note
Automatic transfer of drive parameters is only possible with SINAMICS drives as of V4.x. For
this, "Drive" must be selected for the data connection in configuration window "Hardware
interface > Drive".
See also
Automatic transfer of drive and encoder parameters in the device (Page 42)
Connect drive/encoder via data block (Page 269)
Drive and encoder connection (Page 34)
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.
See also
Mechanics (Page 53)
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 jerk value is identical for the acceleration and deceleration ramp. The smoothing time
in effect for the deceleration ramp results from the following relationships:
• 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 and deceleration ramp are equal.
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:
Motion jobs started in the user program are performed with the selected jerk.
See also
Velocity profile (Page 60)
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).
See also
Emergency stop deceleration (Page 62)
5.3.3.4 Limits
Maximum speed
In this field, define the maximum permitted speed of the axis.
Note
Change of maximum speed
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
Various acceleration and deceleration values
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 and deceleration ramp are equal.
If an error occurs, the axis decelerates with the configured emergency stop deceleration
(Page 60) (alarm reaction "Stop with maximum dynamic values"). A configured jerk limit is
not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:
Motion jobs started in the user program are performed with the selected jerk.
See also
Emergency stop deceleration (Page 62)
Dynamic limits in synchronous operation (Page 62)
Effective
In the drop-down list, select whether the limit value is to be in effect "on load side" or "on
motor side".
Torque limiting
Enter a default value for the torque limit in the specified unit of measure in this field.
The default value is in effect when the torque limiting is specified using Motion Control
instruction "MC_TorqueLimiting", input parameter "Limit" < 0.
If the gear efficiency is critical, this can be set in the <TO>.Actor.Efficiency tag.
See also
Force/torque limiting (Page 63)
Name
Define the name of the positioning axis/synchronous axis in this field. The technology object
is listed under this name in the project tree. The variables of the technology object can be
used in the user program under this name.
Axis type
If you want to use the axis in the CPU exclusively as a virtual leading axis for
synchronization, for example, select the "Virtual axis" check box. The configuration of a drive
and encoder connection is not relevant.
In this selection, configure whether the axis should perform linear or rotary motions.
Units of measure
In the drop-down list, select the desired units of measure for the position, velocity, torque
and force of the axis.
Modulo
Select the "Enable modulo" check box if you want to use a recurring system of units for the
axis (e.g. 0 to 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).
Simulation
If you want to move a real axis in the simulation mode, select the "Activate simulation" check
box.
In simulation mode, speed, positioning and synchronous axes can be simulated in the CPU
without connected drives and encoders. Simulation mode is possible as of Technology
Version V3.0 even without a configured drive and encoder connection.
For simulation mode without hardware connected to the CPU, you can influence the startup
time of the CPU via the "Configuration time for central and distributed I/Os" parameter. You
can find the parameter in the CPU properties in the "Startup" area navigation.
See also
Axis in simulation (Page 49)
Units of measure (Page 32)
Modulo setting (Page 33)
Mechanics (Page 53)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
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 is performed via PROFIdrive
telegrams.
Drives with an analog drive connection receive the speed setpoint 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 boundary conditions apply to the activated ready input:
• The axis is only enabled ( MC_Power Status = TRUE) when a signal is present at the
ready input.
• If a signal is not present at the ready input on an enabled axis, the axis is disabled with
an error.
• If the axis is disabled with the instruction MC_Power (Enable = FALSE), the axis is
disabled even when a signal is present at the ready input.
See also
Connect drive/encoder via data block (Page 269)
Data connection drive/encoder via data block (Page 50)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Data connection
In the drop-down list, select whether the data connection should be established directly with
the encoder or via a data block that can be edited in the user program.
The selection is only possible for encoders that are connected via PROFIdrive and support
parameter P979.
Encoder type
Select the encoder type of the encoder in the drop-down list. The following encoder types
are available:
● Incremental
● Absolute
● Cyclic absolute
See also
Positioning axis technology object (Page 104)
Data connection drive/encoder via data block (Page 50)
Connect drive/encoder via data block (Page 269)
Synchronous axis technology object (Page 105)
Data connection
In the drop-down list, define whether the data connection should be made via supplemental
telegrams or data blocks:
● If you select the entry "Supplemental telegram" in the "Data connection" drop-down list,
you can edit the "Supplemental telegram" drop-down list.
● If you select the "Data block" entry in the "Data connection" drop-down list, you can select
the previously created data block which contains a tag structure of the "PD_TELx" data
type ("x" stands for the additional telegram number that is used).
Data block / supplemental telegram
Select an supplemental telegram configured in the "Supplemental telegram" field.
Select the "Show all modules" check box if you want to display all submodules of the
connected drive. You can also find self-defined supplemental telegrams with this function.
In the "Data block" field, select the data block which you want to use to integrate the torque
data.
Note
Automatic transfer of drive parameters is only possible with SINAMICS drives as of V4.x. To
do this, set the "Drive" data connection in the configuration window "Hardware interface >
Drive".
See also
Positioning axis technology object (Page 104)
Automatic transfer of drive and encoder parameters in the device (Page 42)
Connect drive/encoder via data block (Page 269)
Synchronous axis technology object (Page 105)
Encoder telegram
The telegram to the encoder that is set in the device configuration is preselected in the drop-
down list.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of
product version A16. For this, "Hardware interface > Encoder" must be selected as the
"Encoder" data connection in the configuration window.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of
product version A16. For this, "Hardware interface > Encoder" must be selected as the
"Encoder" data connection in the configuration window.
Alternatively, you must manually calibrate the following parameters, depending on encoder
type.
Encoder type
Depending on the selected encoder type, configure the following parameters:
See also
Positioning axis technology object (Page 104)
Automatic transfer of drive and encoder parameters in the device (Page 42)
Connect drive/encoder via data block (Page 269)
Synchronous axis technology object (Page 105)
Configuration - Data exchange (Page 232)
Coupling type
In the "Type of coupling" column, configure whether the leading value is to be coupled via
setpoint or actual value.
"Actual value" is available only for the S7-1500T CPU.
See also
Leading value coupling (Page 107)
Synchronous axis technology object (Page 105)
Configuration - Mechanics
In the "Mechanics" configuration window, configure the mounting type of the encoder, and
the adaptation of the actual encoder value to the mechanical conditions.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Load gear
The gear ratio of the load gear is specified as the ratio between motor revolutions and load
revolutions.
Number of motor revolutions
In this configuration field, configure the integer number of motor revolutions.
Number of load revolutions
In this configuration field, configure the integer number of load revolutions.
Position parameters
Leadscrew pitch
In this configuration field, configure the distance by which the load is moved when the
leadscrew makes one revolution.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Load gear
The gear ratio of the load gear is specified as the ratio between motor revolutions and load
revolutions.
Number of motor revolutions
In this configuration field, configure the integer number of motor revolutions.
Number of load revolutions
In this configuration field, configure the integer number of load revolutions.
Position parameters
Leadscrew pitch
In this configuration field, configure the distance by which the load is moved when the
leadscrew makes one revolution.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Load gear
The gear ratio of the load gear is specified as the ratio between motor revolutions and load
revolutions.
Number of motor revolutions
In this configuration field, configure the integer number of motor revolutions.
Number of load revolutions
In this configuration field, configure the integer number of load revolutions.
Position parameters
Leadscrew pitch
In this configuration field, configure the distance by which the load is moved when the
leadscrew makes one revolution.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Load gear
The gear ratio of the load gear is specified as the ratio between motor revolutions and load
revolutions.
Number of motor revolutions
In this configuration field, configure the integer number of motor revolutions.
Number of load revolutions
In this configuration field, configure the integer number of load revolutions.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Load gear
The gear ratio of the load gear is specified as the ratio between motor revolutions and load
revolutions.
Number of motor revolutions
In this configuration field, configure the integer number of motor revolutions.
Number of load revolutions
In this configuration field, configure the integer number of load revolutions.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Load gear
The gear ratio of the load gear is specified as the ratio between motor revolutions and load
revolutions.
Number of motor revolutions
In this configuration field, configure the integer number of motor revolutions.
Number of load revolutions
In this configuration field, configure the integer number of load revolutions.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
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 jerk value is identical for the acceleration and deceleration ramp. The smoothing time
in effect for the deceleration ramp results from the following relationships:
• 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 and deceleration ramp are equal.
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:
Motion jobs started in the user program are performed with the selected jerk.
See also
Positioning axis technology object (Page 104)
Velocity profile (Page 60)
Synchronous axis technology object (Page 105)
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).
See also
Positioning axis technology object (Page 104)
Emergency stop deceleration (Page 62)
Synchronous axis technology object (Page 105)
5.4.4.4 Limits
Note
Only use hardware limit switches that remain permanently switched after the approach. This
switching state may only be canceled after the return into the permitted traversing range.
The digital inputs of the hardware limit switches are evaluated by default in cyclic data
exchange. In the settings for the input module under "I/O addresses", select the entry
"MC-Servo" for "Organization block" and the entry "TPA OB Servo" for "Process image" if the
hardware limit switches are to be evaluated in the position control cycle clock 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 one position control cycle clock 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
Activated software limit switches act only on a homed axis.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
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 and deceleration ramp are equal.
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:
Motion jobs started in the user program are performed with the selected jerk.
See also
Velocity profile (Page 60)
Dynamic limits in synchronous operation (Page 62)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Effective
In the drop-down list, select whether the limit value is to be in effect "on load side" or "on
motor side".
Torque limits
Enter a default value for the torque limiting in the specified unit of measurement in this field.
The default value is in effect when the torque limiting is specified using Motion Control
instruction "MC_TorqueLimiting", input parameter "Limit" < 0.
Torque limiting applies to the following axis configurations:
● Axis type is "Rotary" and limit value is in effect "On load side" or "On motor side"
● Axis type is "Linear" and limit value is in effect "On motor side"
Force limit
Enter a default value for the force limit in the specified unit of measure in this field.
The default value is in effect when the force limit is specified using Motion Control instruction
"MC_TorqueLimiting", input parameter "Limit" < 0.
The force limit applies to the following axis configuration: Axis type is "Linear" and limit value
is in effect "On load side"
If the gear and leadscrew efficiency is crucial, this can be set in the <TO>.Actor.Efficiency
tag.
See also
Force/torque limiting (Page 63)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Positioning tolerance
In this configuration field, configure the positioning tolerance that is regarded as a breaking
away or turning back of the fixed stop when exceeded. To detect the breaking away or
turning back of the fixed stop, the position setpoint must be located outside the positioning
tolerance. The configured position tolerance must be less than the configured following error.
Following error
If the drive is stopped by a mechanical fixed stop during a motion job, the following error is
increased. The accumulating following error serves as a criterion for fixed stop detection. In
the "Following error" configuration field, configure the value of the following error starting
from which the fixed stop detection is to take effect. The configured following error must be
greater than the configured position tolerance.
Note
If the following error monitoring was activated in the position monitoring configuration, the
"Maximum following error" configured there must be greater than the "Following error" of the
fixed stop detection.
See also
Fixed stop detection (Page 65)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
5.4.4.5 Homing
Homing means matching the position value of a technology object to the real, physical
location of the drive. Absolute target positions of the axis can only be approached with a
homed axis.
In S7-1500 Motion Control, the axis is homed with the Motion Control instruction,
"MC_Home". A distinction is made between the following operating modes of the Motion
Control instruction:
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Homing (Page 69)
Active homing
Note
Parameter "MC_Home.Mode" (S7-1500 CPU)
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 155).
Settings for
In the drop-down list, select the encoder for which the homing settings are to apply (only for
S7-1500T).
See also
Homing (Page 69)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Approach direction
Select the approach direction for the reference cam search.
"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 reference cam is searched for during the
homing procedure. Any configured home position offset is traversed at 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 reference cam 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.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Homing (Page 69)
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.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Homing (Page 69)
Approach direction
Select the approach direction for the homing mark search.
"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 for homing is to be approached.
Homing mark
Select the switch position of the "digital input" that is to be used as the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one
another are generated. The selection of the positive or negative side ensures that the
homing mark is always evaluated at 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 axis searches for the "digital input" during the
home position approach. Any configured home position offset is traversed at 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.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Homing (Page 69)
Passive homing
Note
Parameter "MC_Home.Mode" (S7-1500 CPU)
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 155).
Settings for
In the drop-down list, select the encoder for which the homing settings are to apply (only for
S7-1500T).
See also
Homing (Page 69)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
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 155).
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Homing (Page 69)
Homing direction
Select the direction in which the zero mark should be approached for homing. The next zero
mark after leaving the reference cam 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 155).
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Homing (Page 69)
Homing direction
Select the direction in which the homing mark for homing is to be approached.
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 the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one
another are generated. The selection of the positive or negative side ensures that the
homing mark is always evaluated at 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 155).
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Homing (Page 69)
Positioning window:
Configure the size of the positioning window in this field. If the axis is located within this
window, the position is considered to be "reached".
Tolerance time
In this field, configure the tolerance time within which the position value must reach the
positioning window.
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Position monitoring functions (Page 88)
Warning level:
Configure a percentage of the current following error limit, above which a following error
warning should be output in this field.
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
adjustment of the following error).
See also
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Position monitoring functions (Page 88)
Standstill window:
Configure the size of the standstill window in this field. For standstill to be indicated, the
velocity of the axis must be within this window.
See also
Positioning axis technology object (Page 104)
Standstill signal (Page 90)
Synchronous axis technology object (Page 105)
Precontrol
Configure the percentage velocity precontrol in this field.
Note
Dynamic Servo Control (DSC) is only possible with one of the following PROFIdrive
telegrams:
• Standard telegram 5 or 6
• SIEMENS telegram 105 or 106
See also
Closed-loop control (Page 92)
Control structure (Page 93)
Function and structure of the optimization (Page 325)
Positioning axis technology object (Page 104)
Synchronous axis technology object (Page 105)
Name
Define the name of the external encoder in this field. The technology object is listed under
this name in the project tree. The tags of the external encoder can be used in the user
program under this name.
Units of measure
In the drop-down list, select the desired units of measure for the position and velocity of the
external encoder.
Modulo
Select the check box "Enable modulo", if you want to use a recurring measuring system 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).
See also
Units of measure (Page 32)
Modulo setting (Page 33)
Technology object external encoder (Page 110)
Data connection
In the drop-down list, select whether the data connection should be established directly with
the encoder or via a data block that can be edited in the user program.
The selection is only possible for encoders that are connected via PROFIdrive and support
parameter P979.
Encoder type
Select the encoder type in this configuration field. The following encoder types are available
for selection:
● Incremental encoder
● Absolute encoder
● Absolute encoder cyclic absolute
See also
Technology object external encoder (Page 110)
Data connection drive/encoder via data block (Page 50)
Connect drive/encoder via data block (Page 269)
See also
Technology object external encoder (Page 110)
Encoder telegram
In the drop-down list for the technology module, select the telegram that you have configured
in the technology module.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of
product version A16. For this, "Hardware interface > Encoder" must be selected as the
"Encoder" data connection in the configuration window.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of
product version A16. For this, "Hardware interface > Encoder" must be selected as the
"Encoder" data connection in the configuration window.
Encoder type
Configure how the encoder data are to be evaluated in this area. The specifications must
match those in the device configuration.
See also
Configuration - Data exchange (Page 232)
Encoder to PROFINET/PROFIBUS (Page 235)
Technology object external encoder (Page 110)
Encoder to PROFINET/PROFIBUS
Encoder telegram
The telegram to the encoder that is set in the device configuration is preselected in the drop-
down list.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of
product version A16. For this, "Hardware interface > Encoder" must be selected as the
"Encoder" data connection in the configuration window.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of
product version A16. For this, "Hardware interface > Encoder" must be selected as the
"Encoder" data connection in the configuration window.
Encoder type
Depending on the selected encoder type, configure the following parameters:
See also
Configuration - Data exchange (Page 232)
Encoder to technology module (Page 232)
Technology object external encoder (Page 110)
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 238)
● Rotary (Page 239)
See also
Technology object external encoder (Page 110)
Mechanics (Page 53)
Linear
Load gear
Number of motor revolutions / number of load revolutions
The gear ratio of the measuring gearbox is specified as the ratio between motor revolutions
and load revolutions. Specify here an integer 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 parameters
Leadscrew pitch
In this configuration field, configure the distance by which the load is moved when the
leadscrew makes one revolution.
See also
Configuration - Mechanics (Page 238)
Rotary (Page 239)
Technology object external encoder (Page 110)
Mechanics (Page 53)
Rotary
Load gear
Number of motor 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.
See also
Configuration - Mechanics (Page 238)
Linear (Page 238)
Technology object external encoder (Page 110)
Mechanics (Page 53)
5.5.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 155).
See also
Technology object external encoder (Page 110)
Homing direction
Select the direction in which the zero mark should be approached for homing. The next zero
mark after leaving the reference cam 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 155).
See also
Configuration - Homing (Page 240)
Use zero mark via PROFIdrive telegram (Page 242)
Homing mark via digital input (Page 243)
Technology object external encoder (Page 110)
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 155).
See also
Configuration - Homing (Page 240)
Reference cam and zero mark via PROFIdrive telegram (Page 241)
Homing mark via digital input (Page 243)
Technology object external encoder (Page 110)
Homing direction
Select the direction in which the homing mark for homing is to be approached.
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 the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one
another are generated. The selection of the positive or negative side ensures that the
homing mark is always evaluated at 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 155).
See also
Configuration - Homing (Page 240)
Use zero mark via PROFIdrive telegram (Page 242)
Reference cam and zero mark via PROFIdrive telegram (Page 241)
Technology object external encoder (Page 110)
Name
Define the name of the measuring input in this field. The technology object is listed under
this name in the project tree. The tags of the measuring input can be used in the user
program under this name.
Unit of measure
The indicated unit of measure for the position of the measuring input corresponds to the unit
of measure of the higher-level technology object.
See also
Units of measure (Page 32)
Technology object measuring input (Page 111)
See also
Automatic transfer of drive and encoder parameters in the device (Page 42)
Technology object measuring input (Page 111)
Configuring technology modules for Motion Control (Page 255)
See also
Measuring with measuring range (Page 121)
Time-related boundary conditions (Page 122)
Technology object measuring input (Page 111)
Name
Define the name of the output cam in this field. The technology object is listed under this
name in the project tree. The tags of the output cam can be used in the user program under
this name.
Unit of measure
The indicated unit of measure for the position of the output cam corresponds to the unit of
measure of the higher-level technology object.
When a time-based output cam is selected as the output cam type, the unit of measure for
the switch-on duration and other times is also indicated. For output cams, this is always ms.
See also
Units of measure (Page 32)
Technology object output cam (Page 126)
See also
Technology object output cam (Page 126)
Configuring technology modules for Motion Control (Page 255)
See also
Compensation of actuator switching times (Page 138)
Technology object output cam (Page 126)
See also
Hysteresis (Page 136)
Technology object output cam (Page 126)
Name
Define the name of the cam track in this field. The technology object is listed under this
name in the project tree. The tags of the cam track can be used in the user program under
this name.
Unit of measure
The indicated unit of measure for the position of the cam track corresponds to the unit of
measure of the higher-level technology object.
When a time-based output cam is selected as the output cam type, the unit of measure for
the switch-on duration and other times is also indicated. For output cams, this is always ms.
See also
Units of measure (Page 32)
Cam track technology object (Page 141)
See also
Cam track technology object (Page 141)
Configuring technology modules for Motion Control (Page 255)
See also
Time offset of cam switching points (Page 153)
Cam track technology object (Page 141)
Configuration - Hysteresis
To prevent unwanted changes in the switching state of the output cam of a cam track, enter
a hysteresis value.
When using an output cam with reference to actual position, always enter a hysteresis value
(> 0.0).
See also
Hysteresis (Page 153)
Cam track technology object (Page 141)
Track length
Enter the corresponding track length.
Also take into account the output cam data of the individual output cams when defining the
track length. Output cams, the start position of which lies outside the cam track length are
not included. They become active only if the cam track length is increased so that at least
the respective start position of an output cam is within the new track length.
See also
Cam track technology object (Page 141)
See also
Cam track technology object (Page 141)
5.9.1 Overview
Isochronous mode
Technology modules can be used centrally or distributed in the system. However,
isochronous mode is supported only in distributed operation with suitable PROFINET
interface modules.
Configuration
Technology module Technology object
TM Count 1x24V / TM Count 2x24V Axis External encoder
TM Count 1x24V / TM Count 2x24V > – –
Channel 0/1 > Operating mode
Select "Position detection for Motion
Control technology object" mode
TM Count 1x24V / TM Count 2x24V > Hardware interface > Encoder Hardware interface > Encoder
Channel 0/1 > Module parameters
– Select "Encoder" data connection and Select "Encoder" data connection and
the channel configured for Motion the channel configured for Motion
Control on the technology module as Control on the technology module as
encoder encoder
Signal type Select encoder type corresponding to Select encoder type corresponding to
configuration for technology module configuration for technology module
• Incremental encoder
• Incremental • Incremental
– Hardware interface > Data exchange Hardware interface > Data exchange
with encoder
Telegram "DP_TEL83_STANDARD" is Telegram "DP_TEL83_STANDARD" is
automatically selected after the selec- automatically selected after the selec-
tion of the encoder. tion of the encoder.
Disable "Automatic transfer of encoder Disable "Automatic transfer of encoder
parameter values" parameter values"
Select rotary or linear measuring sys- Select rotary or linear measuring sys-
tem type tem type
Signal evaluation Select fine resolution corresponding to Select fine resolution corresponding to
configuration for technology module configuration for technology module
• Single
• Double • 0 = Single • 0 = Single
Enter increments per revolution Enter increments per revolution cor- Enter increments per revolution cor-
• Linear type: responding to configuration at tech- responding to configuration at tech-
nology module (1:1) nology module (1:1)
Configuration not relevant
• Linear type: • Linear type:
Configuration
Technology module Technology object
TM Count 1x24V / TM Count 2x24V Axis External encoder
– Hardware interface > Data exchange –
with the drive
• Rotary type: Enter reference speed
Configuration
Technology module Technology object
TM PosInput 1 / TM PosInput 2 Axis External encoder
TM PosInput 1/2 > Channel 0/1 > – –
Operating mode
Select "Position detection for Motion
Control technology object" mode
TM PosInput 1/2 > Channel 0/1 > Hardware interface > Encoder Hardware interface > Encoder
Module parameters
You set the parameters for the encoder
signals of the channel under "Module
parameters" in the "Position input for
Motion Control" mode. The parameters
must be set depending on the encoder
used.
The configuration of the encoder is
required for use with an SSI absolute
encoder. Information on the configura-
tion is available in the documentation
for the respective technology module.
– Select "Encoder" data connection and Select "Encoder" data connection and
the channel activated and configured the channel activated and configured
as encoder on the technology module as encoder on the technology module
Signal type Select encoder type corresponding to Select encoder type corresponding to
configuration for technology module configuration for technology module
• Incremental encoder
• Absolute encoder • Incremental • Incremental
• Absolute / cyclic absolute • Absolute / cyclic absolute
– Hardware interface > Data exchange Hardware interface > Data exchange
with encoder
Telegram "DP_TEL83_STANDARD" is Telegram "DP_TEL83_STANDARD" is
automatically selected after the selec- automatically selected after the selec-
tion of the encoder. tion of the encoder.
Disable "Automatic transfer of encoder Disable "Automatic transfer of encoder
parameter values" parameter values"
Select rotary or linear measuring sys- Select rotary or linear measuring sys-
tem type tem type
Signal evaluation Select fine resolution corresponding to Select fine resolution corresponding to
configuration for technology module configuration for technology module
• Single
• Double • Incremental encoder: • Incremental encoder:
– 0 = Single – 0 = Single
• Quadruple
– 1 = Double – 1 = Double
– 2 = Quadruple – 2 = Quadruple
• Absolute encoder: • Absolute encoder:
– 0 = Single – 0 = Single
Configuration
Technology module Technology object
TM PosInput 1 / TM PosInput 2 Axis External encoder
• Rotary type: • Rotary type: • Rotary type:
Enter increments per revolution Enter increments per revolution cor- Enter increments per revolution cor-
• Linear type: responding to configuration at tech- responding to configuration at tech-
nology module (1:1) nology module (1:1)
Configuration not relevant
• Linear type: • Linear type:
"–" No configuration for technology module/technology object is required for these parameters
Configuration
Technology module Technology object
TM Timer DIDQ 10x24V / TM Timer DIDQ 16x24V Output cam / Cam track
Basic parameters –
Select desired number of outputs under channel configura-
tion (ET 200MP TM Timer DIDQ 16x24V only)
Channel parameters Hardware interface > Output cam output / Output cam track
– Activate output
Select output by TM Timer DIDQ
Select "Timer DQ" mode for the respective output Select output cam output
I/O addresses –
Select "Isochronous mode"
The organization block ("MC-Servo") and the process image
("TPA OB Servo") are updated automatically for the input
and output addresses by selecting the channel in the en-
coder configuration at the technology object.
"–" No configuration for technology module/technology object is required for these parameters
Configuration
Technology module Technology object
TM Timer DIDQ 10x24V / TM Timer DIDQ 16x24V Measuring input
Basic parameters –
Select desired number of inputs under channel configuration
Channel parameters Hardware interface > Measuring input
Configuration of DI group: Use inputs individually –
Select "Timer DI" mode for the respective input Select measuring using TM Timer DIDQ
– Select measuring input
Select application-dependent input delay –
I/O addresses
Select "Isochronous mode"
The organization block ("MC-Servo") and the process image
("TPA OB Servo") are updated automatically for the input
and output addresses by selecting the channel in the input
configuration at the technology object.
"–" No configuration for technology module/technology object is required for these parameters
Configuration
TM Pulse 2x24V Technology object
Axis
TM Pulse 2x24V > Channel configuration –
Select if you want to use 1 or 2 channels.
TM Pulse 2x24V > Channel > Operating mode
Select "Pulse width modulation PWM" or "PWM with DC
motor" operating mode
TM Pulse 2x24V > Channel > Parameters Hardware interface > Drive
Select "S7 analog output" output format Select analog drive connection
For the selection of the analog output, create a PLC tag of
the "Int" type with corresponding address. The offset for the
PLC tag to the start address is 2.
To activate the output of the PWM signal, set the following
two bits of the control interface of the PWM channel in the
user program:
• SW_ENABLE (= Bit 0 in Byte 9)
• TM_CTRL_DQ (= Bit 1 in Byte 9)
The offset for byte 9 to the start address of the PWM chan-
nel is 9.
TM Pulse 2x24V > Channel > I/O addresses –
Select the organization block "MC-Servo" for the input and
output addresses. The "TPA OB Servo" process image is
selected automatically for the input and output addresses by
selecting the organization block.
5.9.6 TM PTO 4
For use with Motion Control, the following parameters must be configured.
Configuration
Technology module Technology object
TM PTO 4 Axis
TM PTO 4 > Channel configuration –
Configure the number of channels (1 to 4) you want to use.
TM PTO 4 > Channel 0…3 > Operating mode
Select signal type:
• PTO (pulse (P) and direction (D))
• PTO (count up (A) and count down (B))
• PTO (A, B phase-shifted)
• PTO (A, B phase-shifted - quadruple)
Select signal interface:
• RS422, symmetrical / TTL (5V), asymmetrical
• 24V asymmetric
Configure the interpulse pause for direction reversal.
– Hardware interface > Drive
Select drive type "PROFIdrive" and "Drive" data connection.
Select the pulse output configured at the technology module
as drive.
Hardware interface > Encoder
The encoder of the actuator telegram (simulated encoder) is
automatically selected. Alternatively, an existing encoder
interface can be selected.
TM PTO 4 > Channel 0...3 > Diagnostic interrupts -
When the "Enable diagnostic interrupts" check box is se-
lected, diagnostic interrupts are activated if:
• No supply voltage
• Errors occur at digital outputs
The detected error is displayed for the respective channel
with feedback bit Fault_Present and Sensor_Error.
TM PTO 4 > Channel 0…3 > Axis parameters Data exchange with the drive
– Telegram "DP_TEL3_STANDARD" is automatically selected
after the selection of the drive.
Deselect "Automatic transfer of drive parameter values"
Enter reference speed corresponding to configuration for Enter reference speed of the drive
technology object (1:1)
Enter maximum speed corresponding to configuration for Enter maximum speed of the drive.
technology object (1:1) If the maximum speed is exceeded, technology alarm 102 is
triggered and displayed.
Configuration
Technology module Technology object
TM PTO 4 Axis
– Data exchange with encoder
Telegram "DP_TEL3_STANDARD" is automatically selected
after the selection of the encoder.
Disable "Automatic transfer of encoder parameter values"
Select rotary measuring system type.
Enter increments per revolution Enter increments per revolution corresponding to configura-
tion at technology module (1:1)
Configure fine resolution Configure fine resolution corresponding to configuration for
technology module.
• 0 = Single
• 2 = Quadruple • 0 = Single
• 2 = Quadruple
Configure stop behavior -
• Quick stop time
• Ramp stop time
TM PTO 4 > Channel 0…3 > Hardware inputs/outputs –
If you want to use a hardware output to enable the drive, No setting required at the technology object. The output is
select the "Use drive enable" check box. Next select one of automatically controlled by the MC_Power.
the two hardware outputs DQ0 or DIQ2.
Homing
Activate the hardware input (DI0) for the reference cam. Use the homing mode "Use zero mark via PROFIdrive tele-
Select the edge of the hardware input for triggering the gram".
reference cam function.
When using a measuring input, select the "Use DI1 check "Measuring input > Configuration > Hardware interface"
box as measuring input". technology object
Select the measuring input type "Measurement using
PROFIdrive telegram (drive or external encoder)".
Select the measuring input "1" under hardware connection.
Select the "Use "drive ready"" check box. In the ""Drive No setting required at the technology object. When the input
ready" input", select the hardware input that is to be used to is used, MC_Power waits until the input signal is present
display whether the drive is ready. before it sets the drive enable.
Configuring input delay –
TM PTO 4 > Channel 0…3 > Sign-of-life error
Configure tolerated number of sign-of-life errors
TM PTO 4 > I/O addresses
The organization block ("MC-Servo") and the process image
("TPA OB Servo") are selected automatically for the input
and output addresses by selecting the PTO channel for the
technology object.
"–" No configuration required for these parameters at the technology module/technology object
Configuration
CPU 1511C-1 PN / CPU 1512C-1 PN Technology object
Axis
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 > –
General
To activate a channel for PTO mode, select one of the fol-
lowing operating modes:
• PTO (pulse (A) and direction (B))
• PTO (count up (A), count down (B))
• PTO (A,B phase shifted)
• PTO (A,B phase shifted, quadruple)
– Hardware interface > Drive
Select drive type "PROFIdrive" and "Drive" data connection.
Select the pulse generator of the CPU configured for PTO
mode as drive.
Hardware interface > Encoder
The encoder of the actuator telegram (simulated encoder) is
automatically selected. Alternatively, an existing encoder
interface can be selected.
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 > Axis Hardware interface > Data exchange with the drive
parameters
– Telegram "DP_TEL3_STANDARD" is automatically selected
after the selection of the drive.
Deselect "Automatic transfer of drive parameter values"
Enter reference speed corresponding to configuration for Enter reference speed of the drive
technology object (1:1)
Enter reference speed corresponding to configuration for Enter maximum speed of the drive.
technology object (1:1) If the maximum speed is exceeded, technology alarm 102 is
triggered and displayed.
– Hardware interface > Data exchange with encoder
Telegram "DP_TEL3_STANDARD" is automatically selected
after the selection of the encoder.
Disable "Automatic transfer of encoder parameter values"
Select rotary measuring system type.
Enter increments per revolution Enter increments per revolution corresponding to configura-
tion for CPU (1:1)
The fine resolution has the fixed value "0 bit" (= single) and Enter the fine resolution corresponding to the configuration
cannot be changed. for CPU
Bits in incr. actual value (G1_XIST1): 0 (= single)
Configuration
CPU 1511C-1 PN / CPU 1512C-1 PN Technology object
Axis
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 > Homing
Hardware inputs/outputs
Select the hardware input for the reference switch Use the homing mode "Use zero mark via PROFIdrive tele-
In addition, configure the input delay for the selected hard- gram" for drive connection via PTO.
ware input. You configure the input delay in the device con-
figuration at the corresponding DI channel (DI 16/DQ 16 >
Inputs > Channel > Input parameters > Input delay).
Select the edge of the hardware input for triggering the
reference cam function.
When using a measuring input, select the hardware input of –
the measuring input. The following table includes the con-
figuration description.
Select the hardware input that is used to display whether the
drive is ready.
In addition, configure the input delay for the selected hard-
ware input. You configure the input delay in the device con-
figuration at the corresponding DI channel (DI 16/DQ 16 >
Inputs > Channel > Input parameters > Input delay).
With selected "PTO (PTO (pulse (A) and direction (B))"
mode, the hardware output for the PTO signal A ("Pulse
output (A)") is automatically selected through the device
configuration and cannot be changed. For PTO signal B
("Direction output (B)") select one of the hardware outputs
offered in the selection box.
The hardware outputs for the PTO signals are selected
through the device configuration for the following operating
modes and cannot be changed:
• PTO (count up (A), count down (B))
• PTO (A,B phase shifted)
• PTO (A,B phase shifted, quadruple)
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 >
I/O addresses
The organization block ("MC-Servo") and the process image
("TPA OB Servo") are selected automatically for the input
and output addresses by selecting the PTO channel for the
technology object.
Additional configuration for use with the technology object measuring input
Configuration
Technology module Technology object
CPU 1511C-1 PN / CPU 1512C-1 PN Measuring input
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 > Hardware interface > Measuring input
Hardware inputs/outputs
Select the hardware input of the measuring input. Measuring using PROFIdrive telegram (drive or external
In addition, configure the input delay for the selected hard- encoder)
ware input. You configure the input delay in the device con- In the "Number of the measuring input" selection box, select
figuration at the corresponding DI channel (DI 16/DQ 16 > "1" (measuring input 1).
Inputs > Channel > Input parameters > Input delay).
Configuration
CPU 1511C-1 PN / CPU 1512C-1 PN Technology object
Speed axis
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 > –
General
Select "Pulse width modulation PWM" mode
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 >
Hardware inputs/outputs
Select the hardware output to be used for pulse output.
Select whether the set hardware output is to work as a fast
push-pull switch or as P switch.
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 > Hardware interface > Drive
Parameters
Select "S7 analog output" output format Select analog drive connection
For the selection of the analog output, create a PLC tag of
the "Int" type with corresponding address. The offset for the
PLC tag of the control interface of the PWM channel is 2.
To activate the output of the PWM signal, set the following
two bits of the control interface of the PWM channel in the
user program:
• SW_ENABLE (= Bit 0 in Byte 9)
• TM_CTRL_DQ (= Bit 1 in Byte 9)
The offset for byte 9 to the start address of the PWM chan-
nel is 9.
Configuration
CPU 1511C-1 PN / CPU 1512C-1 PN Technology object
Speed axis
Select minimum pulse width of 0 μs –
Select required period duration (e.g. 100 μs)
Pulse generators (PTO/PWM) > PTO1…4/PWM1…4 > I/O
addresses
Select the organization block "MC-Servo" for the input and
output addresses. The "TPA OB Servo" process image is
selected automatically for the input and output addresses by
selecting the organization block.
Configuration
CPU 1511C-1 PN / CPU 1512C-1 PN Technology object
Axis External encoder
High-speed counter (HSC) > HSC 1…6 – –
> General > Enable
Enable high-speed counter
High-speed counter (HSC) > HSC 1…6
> Basic parameters > Operating mode
Select "Position input for Motion Con-
trol" mode
High-speed counter (HSC) > HSC 1…6 Hardware interface > Encoder Hardware interface > Encoder
> Basic parameters > Module parame-
ters
– Select "Encoder" data connection and Select "Encoder" data connection and
the high-speed counter activated and the high-speed counter activated and
configured as encoder on the CPU configured as encoder on the CPU
Signal type Select encoder type according to the Select encoder type according to the
device configuration of the CPU device configuration of the CPU
• Incremental encoder
• Incremental • Incremental
– Hardware interface > Data exchange Hardware interface > Data exchange
with encoder
Telegram "DP_TEL83_STANDARD" is Telegram "DP_TEL83_STANDARD" is
automatically selected after the selec- automatically selected after the selec-
tion of the encoder. tion of the encoder.
Deselect "Automatic transfer of encod- Deselect "Automatic transfer of encod-
er parameter values" er parameter values"
Select rotary measuring system type. Select rotary measuring system type.
Configuration
CPU 1511C-1 PN / CPU 1512C-1 PN Technology object
Axis External encoder
Signal evaluation Set fine resolution according to the Set fine resolution according to the
configured signal evaluation set for the configured signal evaluation set for the
• Single
high-speed counter (HSC) high-speed counter (HSC)
• Double
• 0 = Single • 0 = Single
• Quadruple
• 1 = Double • 1 = Double
• 2 = Quadruple • 2 = Quadruple
Enter increments per revolution Enter increments per revolution corre- Enter increments per revolution corre-
sponding to device configuration for sponding to device configuration for
CPU (1:1) CPU (1:1)
– Hardware interface > Data exchange –
with the drive
Enter reference speed corresponding Enter reference speed
to configuration for technology object
(1:1)
– Homing Homing
Select the homing signal for homing Use the homing mode "Use zero mark Use the homing mode "Use zero mark
mark 0: via PROFIdrive telegram". via PROFIdrive telegram".
• Signal N of the incremental encoder
• DI0 (can be set with the hardware
inputs/outputs)
Additional configuration for use with the technology object measuring input
Configuration
Technology module Technology object
CPU 1511C-1 PN / CPU 1512C-1 PN Measuring input
High-speed counter (HSC) > HSC 1…6 > Hardware in- Hardware interface > Measuring input
puts/outputs
Select the hardware input of the measuring input. Measuring using PROFIdrive telegram (drive or external
In addition, configure the input delay for the selected hard- encoder)
ware input. You configure the input delay in the device con- In the "Number of the measuring input" selection box, select
figuration at the corresponding DI channel (DI 16/DQ 16 > "1" (measuring input 1).
Inputs > Channel > Input parameters > Input delay).
Note
"Input" and "Output" relate to the view of the closed loop position control. For example, the
input area contains the actual values of the drive and the output area contains the setpoints
for the drive.
The data block may contain the data structures of multiple axes and encoders and other
contents.
NOTICE
Machine damage
Improper manipulation of drive and encoder telegrams may result in unwanted drive
motions.
Check your user
program for consistency in the drive and encoder connection.
An application example for the use of MC-PreServo and MC-PostServo is available at:
https://support.industry.siemens.com/cs/document/109741575
(https://support.industry.siemens.com/cs/document/109741575)
See also
PROFIdrive telegrams (Page 36)
Data connection drive/encoder via data block (Page 50)
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 in project,
Monitor value
● Display of the parameter comparison of the memory values of a parameter
5.11.2.1 Toolbar
The following functions can be selected in the toolbar of the parameter view.
Select navigation structure Toggle between function-based navigation and the view of the
data structure of the technology data block.
Couples the function view and Enables the targeted toggling between the parameter view and
parameter view for the objects function-based view.
selected in the navigation
Collapse/expand all nodes and Collapses or expands all nodes and objects of the navigation or
objects the data structure in the currently active view.
Collapse/expand the nodes Collapses or expands the marked nodes and objects of the
below the marked nodes navigation or the data structure in the currently active view.
Text filter... After entry of a character string: Display of all parameters con-
taining the entered string in one of the currently visible col-
umns.
Selection of compare values Selection of parameter values that are to be compared with one
another in online mode (Start value in project, Start value PLC)
Only in online mode.
Save window settings Saves your display settings for the Parameter view (e.g. se-
lected navigation structure, activated table columns, etc.)
5.11.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 window ("Function
view" tab), commissioning window and diagnostics window.
Data structure In the "Data structure" navigation, the structure of the parameters
is based on the structure of 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.
5.11.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.
Sort column-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 display
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 window.
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 display
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 in 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:
● Values in light-orange cells can be changed.
● Values in cells with a dark orange background cannot be changed.
See also
Parameter table (Page 273)
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 "Monitor values" column. The check boxes for modifying in the
"Selection for transmission" column are automatically cleared after the modify request is
complete.
Error display
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 in 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).
6.2.1 Introduction
The properties of real objects (e.g. drives) 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 (read/write access) with
your user program.
A listing and description of the tags can be found in the Appendix (Page 431).
Changes to values in the technology data block by the user program can take effect at
various points in time. The relevant property of the individual tags can be found in their
descriptions in the Appendix (Page 431):
Note
Save changes with "WRIT_DBL"
Changes to tags immediately in effect 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 start value in the
load memory with 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 may only be used on individual
tags in conjunction with the tags of the technology object. The "READ_DBL" and
"WRIT_DBL" data block functions must not be applied to data structures of the technology
object.
See also
Organization Blocks for Motion Control (Page 95)
Requirements
The technology object has been created.
Procedure
To evaluate the individual bits in the data word "StatusWord", follow these steps:
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 double word,
e.g. as "Temp".
3. Create 32 Boolean tags in the "Status" data structure. You can obtain a clearer overview
by giving the individual Boolean tags identical names as 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 individual bits of double word "Temp" to the corresponding Boolean tags with bit
accesses.
6. Use the Boolean tags to query the status bits.
Evaluate the data words "ErrorWord" and "WarningWord" as specified in steps 1 to 6.
Example
The following example shows how you can read out and save the fifth bit "HomingDone" of
the data word "StatusWord":
SCL Explanation
#Status.Temp := "TO".StatusWord; //Copy status word
#Status.HomingDone := #Status.Temp.%X5; //Copy individual bits per bit access
STL Explanation
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
The individual Motion Control instructions are described in detail in the section
MC_Power V4 (Page 361).
When creating your user program, take the following explanations of the Motion Control
instruction parameters into account.
Job status
The following output parameters indicate the status of the job execution:
● 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 objective is indicated by other parameters (e.g. "Status",
"InVelocity"). For more information, refer to the section Tracking running jobs (Page 302).
● Parameter "Busy"
As long as a job is being processed, the "Busy" parameter shows the value TRUE. If a
job was ended or aborted, "Busy" shows the value FALSE.
● Parameter "CommandAborted"
If a job was aborted by another job, the CommandAborted parameter shows the value
"TRUE".
● Parameter "Error"
If a Motion Control instruction error occurs, the "Error" parameter shows the value TRUE.
The ErrorID parameter indicates 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 set for only 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".
See also
Instructions (Page 361)
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 tree (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" folder.
3. Using drag-and-drop, move the Motion Control instruction, e.g. "MC_Power", to 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 inserted into the network.
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 assigned. Select the
technology object in the project tree and move it onto <...> in the "Axis" parameter using
drag-and-drop.
Once the technology object is specified 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.
See also
Tracking active jobs (Page 302)
Tags of the positioning axis/synchronous axis technology object (Page 445)
Example 1
The following table shows the declaration of the tags used:
SCL Explanation
#instMC_POWER(Axis := #axis, Enable := #on); //Call of the Motion Control instruction MC_Power
with enable of the axis
#actPosition := #axis.ActualPosition; //Query of the actual position from the technology
data block
Example 2
The data type "DB_Any" provides a further option for the transfer of specific data types of the
technology object. Unlike the data types of the technology object in the program, "DB_Any"
can be assigned during runtime.
This example shows how you can program variable switching of up to four cams at
"MC_CamIn".
To do this, tags of the data type "DB_Any" are first created as input parameter of the block.
The cam to be used is assigned by an additional input parameter.
The following table shows the declaration of the tags used:
SCL Explanation
//Selection of the desired cam 1..4
//Using an input tag of data type Int
CASE #camToUse OF
1: #tempCamSel := #cam1; //Instruction for scenario 1
2: #tempCamSel := #cam2; //Instruction for scenario 2
3: #tempCamSel := #cam3; //Instruction for scenario 3
4: #tempCamSel := #cam4; //Instruction for scenario 4
ELSE //Instruction for Int ≤ 0 or > 4
#tempCamSel := #cam1; //Corresponds to default cam 1
END_CASE;
//Calling of the MC_CamIn with variable transfer
of the cam technology object using the temporary
tag "tempCamSel"
Additional information
You can find more program examples using the data type "DB_Any" in the following FAQ:
https://support.industry.siemens.com/cs/document/109750880
(https://support.industry.siemens.com/cs/ww/en/view/109750880)
MC_Power
The axis is enabled without closed loop position control with "MC_Power" and the parameter
"StartMode" = 0. The closed loop position control remain switched off until a different Motion
Control instruction changes the status of the closed loop position control.
Note
If the leading axis is set to the non-position-controlled mode during active synchronization,
your setpoint is then set to zero. A setpoint step change is obtained as a result of coupling
the setpoint of following axis. The setpoint step change is compensated according to the
constant function. The only limiting factor is the maximum speed of the drive.
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 288) section.
6.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 302)
● Motion Control instructions without "Done" parameter (Page 306)
● Motion Control instruction "MC_MoveJog" (Page 310)
Description
Jobs of Motion Control instructions with the "Done" parameter are started with a positive
edge at the "Execute" parameter. If the job was completed without errors or interruption by
another job (e.g. "MC_MoveAbsolute": Target position reached), 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
● MC_MeasuringInput
● MC_AbortMeasuringInput
The behavior of the parameters is shown below 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 programming, "Execute" can be
reset to the value FALSE during the job or the value TRUE can be retained until after completion of the job.
② While the job is being executed, the "Busy" parameter shows the value TRUE.
③ At the completion of the job (for example, with 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 was already set to FALSE before completion of the job, the "Done" parameter shows the
value TRUE for only one execution cycle.
Job abort
If the Motion Control job is aborted during processing by another job, this is indicated in the
"CommandAborted" parameter with the value TRUE. The signal state of the "Execute"
parameter influences the display duration for 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 programming, "Execute" can be
reset to the value FALSE during the job or the value TRUE can be retained until after completion of the job.
② While the job is being executed, 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 was already set to FALSE before the job is aborted, the "CommandAborted" parameter
shows the value TRUE for only 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 programming, "Execute" can be
reset to the value FALSE during the job or the value TRUE can be retained until after completion of the job.
② While the job is being executed, 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 was already set to FALSE before the occurrence of the error, the "Error" parameter shows
the value TRUE for only one execution cycle.
Description
Motion Control instructions without the "Done" parameter use a special parameter to indicate
that the command objective (e.g. "InVelocity", "InGear") has been achieved. The target state
or motion is stopped until the job is aborted or an error occurs.
The following Motion Control instructions have a special parameter for indicating the job
status:
● MC_Power ("Status" parameter)
● MC_MoveVelocity ("InVeloctity" parameter)
● MC_GearIn ("InGear" parameter)
● MC_MoveJog ("InVelocity" parameter)
The special behavior of "MC_MoveJog" is described in the section Motion Control
instruction MC_MoveJog (Page 310).
● MC_TorqueLimiting ("InClamping" and "InLimitation") parameters
The following Motion Control instructions have no special parameter for indicating the job
status: Feedback is provided via the following tags:
● MC_MeasuringInputCyclic
The execution of a measuring job is indicated with parameter "Busy" = TRUE. Completed
measuring events are indicated in the corresponding event counters
<TO>.MeasuredValues.MeasuredValue1Counter and
<TO>.MeasuredValues.MeasuredValue2Counter of the technology data block.
● MC_OutputCam
The execution of a job is indicated with parameter "Busy" = TRUE. The CamOutput tag in
the associated technology data block indicates the switching state of the output cam.
● MC_CamTrack
The execution of a job is indicated with parameter "Busy" = TRUE. The TrackOutput tag
in the associated technology data block indicates the switching state of the output cam.
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 programming, "Execute" can be
reset to the value FALSE before or after the assigned velocity has been reached. While the job is being executed, the
parameter "Busy" shows the value TRUE.
② When the assigned velocity is reached, the "InVelocity" parameter changes to TRUE. The "Busy" and "InVelocity"
parameters retain the value TRUE until another 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 programming, "Execute" can be
reset to the value FALSE during the job or the value TRUE can be retained until after the job is aborted.
② While the job is being executed, 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 was already set to FALSE before the job is aborted, the "CommandAborted" parameter
shows the value TRUE for only 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 programming, "Execute" can be
reset to the value FALSE during the job or the value TRUE can be retained until after the error has occurred.
② While the job is being executed, 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 was already set to FALSE before the job is aborted, the "Error" parameter shows the value
TRUE for only 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 being executed, 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 being executed, 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.
Completion of job
The completion of a Motion Control job is indicated as described in the Tracking running jobs
(Page 302) section.
Job termination
The termination and substitution behavior are described in the section Override response of
Motion Control jobs V4 (Page 428). Special pending jobs can be cancelled with
"MC_Power".
Motion abort
If a motion must be aborted, you can perform the following measures:
● Execute "MC_Halt (Page 374)"
To abort a motion and stop the axis, you can use the "MC_Halt" instruction.
● Deactivate "MC_Power (Page 361)"
In an emergency, you can stop the axis via an emergency stop ramp. To do so, set the
"Enable" parameter of the "MC_Power" instruction to FALSE. The axis is decelerated
according to the selected "StopMode" and all jobs for 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. At a
RUN → STOP transition, the CPU automatically performs a restart of technology objects with
restart-relevant changes.
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 required
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 289)
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:
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 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 tree under "Technology object > Commissioning".
The axis control panel is divided into the following areas:
● Master control
● Axis
● Operating mode
● Modify
● Axis status
● Actual values
If the "Stop" button is covered during operation with the axis control panel, for
example by scrolling or by another window, the master control is retained but the
axis is stopped with maximum deceleration.
If you change to another window within the TIA Portal, to the project tree for ex-
ample, during operation with the axis control panel, the master control and motion
of the axis is maintained, provided that the axis control panel is embedded in the
TIA Portal. If the axis control panel is replaced by the TIA Portal and you change
to another window within the TIA Portal, to the project tree for example, the mas-
ter control is retained but the axis is stopped with maximum deceleration.
If you change to another window outside the TIA Portal during operation with the
axis control panel, the master control is retained but the axis is stopped with
maximum deceleration.
• When you click the "Activate" button, a warning message is displayed. In the
warning, you can adapt the sign-of-life monitoring (100 to 60000 ms).
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 message "Error during commis-
sioning" is entered in the message display log. Sign-of-life failure between con-
troller 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 have changed configuration values during operation with the axis control panel, these
changes 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 project has been created and downloaded to the CPU.
● The CPU must be in the RUN mode.
● 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 instance 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. To assume master control of the technology object and to set up an online connection to
the CPU, click "Activate" in the "Master control" area.
A warning message is displayed.
2. If necessary, adapt the sign-of-life monitoring and click "OK".
3. To enable the technology object, click the "Enable" button in the "Axis" area.
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. Depending on the mode selected, click the "Start", "Forward" or "Backward" button to
start the job.
7. Click the "Stop" button to stop the job.
8. Repeat steps 4 through 6 for additional jobs.
9. To disable the technology object, click the "Disable" button in the "Axis" area.
10.To return master control to your user program, click the "Deactivate" button in the "Master
control" area.
8.4 Optimization
Description
The "Optimization" function supports you in determining the optimal precontrol and gain
(Kv factor) for the closed loop position control of the axis. The axis velocity profile is recorded
by means of the Trace function for this purpose for the duration of a configurable positioning
movement. You can then evaluate the recording, and adjust the precontrol and gain
accordingly.
WARNING
Uncontrolled axis motions
During operation with the optimization, the axis can execute uncontrolled motions (for
example, due to erroneous configuration of the drive or the technology object). In addition,
when a leading axis is moved, any synchronized following axis is also moved.
Therefore, perform the following protective measures before operation with the
optimization:
• 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 "Optimization" function for the positioning axis and synchronous axis technology objects
can be found in the project tree under "Technology object > Commissioning".
The "Tuning" dialog is divided into the following areas:
● Master control
● Axis
● Measurement configuration
● Optimize position controller
● Run measurement
● 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 message "Error during commis-
sioning" is entered in the message display log. Sign-of-life failure between con-
troller and TIA Portal" is displayed.
Enter the new value in the text field for the actual value. The new value is applied
by clicking the "Forward" or "Backward" button in the "Run measurement" area.
Precontrol Current percentage velocity precontrol of the position controller
Speed control Current speed control loop substitute time
loop substitute With velocity precontrol, a simplified speed control loop model can be generated
time using the speed control loop substitute time. This prevents overmodulation by the
position controller of the manipulated variable for velocity during the acceleration and
deceleration phases. To accomplish this, the position setpoint of the position control-
ler is delayed by the amount of the speed control loop substitute time in relation to
the velocity precontrol.
Gain Current gain of the position controller (Kv)
Run measure- In the "Run measurement" area, you perform the test steps.
ment "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.
"Stop" button You stop a test step with the "Stop" button. The axis decelerates with the configured
maximum deceleration.
If another window is superimposed on the "Stop" button, the axis stops.
Trace The Trace function is displayed in the lower area of the "Tuning" dialog.
With each test step, a Trace recording of the required parameters is automatically
started and displayed after completion of the test step.
After master control has been returned, the Trace recording is deleted.
You can find a full description of the trace function in the section on using the trace
and logic analyzer function.
Note
No automatic transfer of the parameters to the technology object
The configured parameter values are discarded after master control is returned.
Transfer the values as needed into your configuration. You can apply the values for the gain,
precontrol and speed control loop substitute time in your configuration using the "Project
start value" value.
See also
Closed-loop control (Page 92)
Requirements
● The CPU must be in the 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.
8. 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:
Description
If an error occurs at a technology object (e.g. approaching a hardware limit switch), 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:
● Acknowledgeable warning
The processing of Motion Control job is continued. The current motion of the axis can be
influenced, e.g. by limiting the current dynamic values to the configured limit values.
● Alarm requiring acknowledgment
Motion jobs are aborted in accordance with the alarm reaction. You must acknowledge
the alarms in order to continue execution of new jobs after eliminating the cause of the
error.
● Fatal error
Motion jobs are aborted in accordance with the alarm reaction.
To be able to use the technology object again after eliminating the cause of the error, you
must restart the technology object (Page 314).
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.
<TO>.ErrorDetail.Reaction = 6
• Cam track
<TO>.ErrorDetail.Reaction = 7
• Measuring input
<TO>.ErrorDetail.Reaction = 8
• Cam
<TO>.ErrorDetail.Reaction = 9
• External encoder
<TO>.ErrorDetail.Reaction = 10
Additional information
You can find a list of the technology alarms and alarm reactions in the Technology alarms
(Page 513) appendix.
Description
Errors in Motion Control instructions (e.g. invalid parameter value setting) are indicated by
the "Error" and "ErrorID" output parameters.
Under the following conditions, "Error" = TRUE and "ErrorID" = 16#8xxx are indicated for the
Motion Control instruction:
● Illegal 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 a technology object error.
Error display
If there is a Motion Control instruction error, the "Error" parameter shows the value TRUE.
The cause of the error is given in the "ErrorID" parameter.
Jobs to the technology object are rejected when "Error" = TRUE. Running jobs are not
influenced by rejected jobs.
If "Error" = TRUE and "ErrorID" = 16#8001 is indicated during job execution, a technology
alarm has occurred. In this case, evaluate the indication of the technology alarm.
If "Error" = TRUE is displayed during execution of a "MC_MoveJog" job, the axis is braked
and brought to a standstill. In this case, the deceleration configured for the "MC_MoveJog"
instruction takes effect.
Acknowledge error
Acknowledging errors in Motion Control instructions is not required.
Restart a job after resolving the error.
Additional information
You can find a list of the ErrorIDs in the Error detection (Page 542) appendix.
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
Simulation active The axis is simulated in the CPU. Setpoints are not output to the drive.
Enabled The technology object has been enabled. The axis can be moved with motion jobs.
(<TO>.StatusWord.X0 (Enable))
Error An error occurred at the technology object. Detailed information about the error is available
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 active. The axis control panel has master control over the technol-
ogy object. The axis cannot be controlled from the user program.
(<TO>.StatusWord.X4 (ControlPanelActive))
Drive ready Drive is ready to execute setpoints.
(<TO>.StatusDrive.InOperation)
Restart required Data relevant for the restart has been changed. The changes are applied only after a re-
start of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Motion status
The following table shows the possible axis motion status values:
Status Description
Done (no job running) No motion job is running for the technology object.
(<TO>.StatusWord.X6 (Done))
Jog The axis is being moved with a job for jog mode of Motion Control instruction
"MC_MoveJog" or from the axis control panel.
(<TO>.StatusWord.X9 (JogCommand))
Speed setpoint The axis is traversed with a job with speed setpoint of the Motion Control instruction
"MC_MoveVelocity" or using the axis control panel.
(<TO>.StatusWord.X10 (VelocityCommand))
Constant speed The axis is moved with constant speed or is stationary.
(<TO>.StatusWord.X12 (ConstantVelocity))
Accelerating Axis is being accelerated.
(<TO>.StatusWord.X13 (Accelerating))
Decelerating The axis is being decelerated.
(<TO>.StatusWord.X14 (Decelerating))
Torque limiting enabled The configured threshold for the force/torque affects the axis.
(<TO>.StatusWord.X27 (InLimitation))
Warnings
The following table shows the possible warnings:
Warning Description
Configuration One or several configuration parameters are adapted internally at a given time.
(<TO>.WarningWord.X1 (ConfigWarning))
Job rejected A job cannot be executed.
A Motion Control instruction cannot be executed because necessary requirements have not
been met.
(<TO>.WarningWord.X3 (CommandNotAccepted))
Dynamic limitation The dynamic values are limited to the dynamic limits.
(<TO>.WarningWord.X6 (DynamicError))
Error
The following table shows the possible errors:
Error Description
System A system-internal error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration A configuration error has occurred.
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were incor-
rectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigFault))
User program An error occurred in the user program with a Motion Control instruction or its use.
(<TO>.ErrorWord.X2 (UserFault))
Drive An error occurred in the drive.
(<TO>.ErrorWord.X4 (DriveFault))
Data exchange Communication with a connected device is faulty.
(<TO>.ErrorWord.X7 (CommunicationFault))
I/O An error occurred accessing a logical address.
(<TO>.ErrorWord.X13 (PeripheralError))
Job rejected A job cannot be executed.
A Motion Control instruction cannot be executed because necessary requirements have not
been met (e.g. technology object not homed).
(<TO>.ErrorWord.X3 (CommandNotAccepted))
Dynamic limitation The dynamic values are limited to the dynamic limits.
(<TO>.ErrorWord.X6 (DynamicError))
Alarm display
For additional information and to acknowledge the error, go to the Inspector window by
clicking on the "Alarm display" link.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 288) section.
See also
StatusWord tag (speed axis) (Page 439)
ErrorWord tag (speed axis) (Page 441)
WarningWord tag (speed axis) (Page 443)
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.
"Setpoints" area
The following table shows the meaning of the status data:
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 cor-
rection values range from 0.0 % to 200.0 %.
(<TO>.Override.Velocity)
Status Description
Actual speed Actual speed of the axis
(<TO>.ActualSpeed)
Status Description
Speed Configured maximum speed
(<TO>.DynamicLimits.MaxVelocity)
Acceleration Configured maximum acceleration
(<TO>.DynamicLimits.MaxAcceleration)
Deceleration Configured maximum deceleration
(<TO>.DynamicLimits.MaxDeceleration)
Jerk Configured maximum jerk
(<TO>.DynamicLimits.MaxJerk)
Description
The "Technology object > Diagnostics > PROFIdrive telegram" diagnostics function is used
in the TIA Portal to monitor the PROFIdrive telegram 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 telegram from the
drive to the controller:
● Status words "ZSW1" and "ZSW2"
● The speed setpoint (NSET) that was output to the drive
● 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
Simulation active The axis is simulated in the CPU. Setpoints are not output to the drive.
(<TO>.StatusWord.X25 (AxisSimulation))
Enabled The technology object has been enabled. You can move the axis with motion jobs.
(<TO>.StatusWord.X0 (Enable))
Position-controlled mode The axis is in position-controlled mode.
(Inversion of <TO>.StatusWord.X28 (NonPositionControlled))
Homed The technology object is homed. The relationship between the position in the technology
object and the mechanical position was successfully created.
(<TO>.StatusWord.X5 (HomingDone))
Error An error occurred at the technology object. Detailed information about the error is available
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 active. The axis control panel has master control over the technol-
ogy object. You cannot control the axis from the user program.
(<TO>.StatusWord.X4 (ControlPanelActive))
Drive ready Drive is ready to execute setpoints.
(<TO>.StatusDrive.InOperation)
Encoder values valid The actual encoder values are valid.
(<TO>.StatusSensor[n].State)
Active encoder Current encoder on the axis
(<TO>.OperativeSensor)
Restart required Data relevant for the restart has been changed. The changes are applied only after a re-
start of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Status Description
Negative SW limit switch The negative software limit switch was reached.
approached. (<TO>.StatusWord.X15 (SWLimitMinActive))
Positive SW limit switch The positive software limit switch was reached.
approached. (<TO>.StatusWord.X16 (SWLimitMaxActive))
Negative HW limit switch The negative hardware limit switch has been approached or overtraveled.
approached. (<TO>.StatusWord.X17 (HWLimitMinActive))
Positive HW limit switch The positive hardware limit switch has been approached or overtraveled.
approached. (<TO>.StatusWord.X18 (HWLimitMaxActive))
Motion status
The following table shows the possible axis motion status values:
Status Description
Done (no job running) No job active at technology object.
(<TO>.StatusWord.X6 (Done))
Homing job The technology object executes a homing job of the Motion Control instruction "MC_Home"
or from the axis control panel.
(<TO>.StatusWord.X11 (HomingCommand))
Jog The axis is being moved with a command for jog mode of Motion Control instruction
"MC_MoveJog".
(<TO>.StatusWord.X9 (JogCommand))
Velocity specification The axis is traversed with a job with velocity specification of the Motion Control instruction
"MC_MoveVelocity" or from the axis control panel.
(<TO>.StatusWord.X10 (VelocityCommand))
Positioning job The axis is traversed with a positioning job of Motion Control instruction
"MC_MoveAbsolute" or "MC_MoveRelative" or from the axis control panel.
(<TO>.StatusWord.X8 (PositioningCommand))
Constant velocity The axis is moved with constant velocity or is stationary.
(<TO>.StatusWord.X12 (ConstantVelocity))
Standstill The axis is in standstill.
(<TO>.StatusWord.X7 (StandStill))
Accelerating Axis is being accelerated.
(<TO>.StatusWord.X13 (Accelerating))
Decelerating The axis is being decelerated.
(<TO>.StatusWord.X14 (Decelerating))
Torque limiting enabled The configured threshold for the force/torque affects the axis.
(<TO>.StatusWord.X27 (InLimitation))
Status Description
Synchronization Synchronous axis only
The axis is synchronized to the leading value of a leading axis.
(<TO>.StatusWord.X21 (Synchronizing))
Synchronous operation 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 One or several configuration parameters are adjusted internally at a certain time.
(<TO>.WarningWord.X1 (ConfigWarning))
Job rejected Job cannot be executed.
You cannot execute a Motion Control instruction because necessary requirements are not
fulfilled.
(<TO>.WarningWord.X3 (CommandNotAccepted))
Dynamic limitation The dynamic values are limited to the dynamic limits.
(<TO>.WarningWord.X6 (DynamicError))
Synchronization Synchronous axis only
An error occurred during synchronization. The leading axis specified for the corresponding
Motion Control instruction was not configured as a possible leading axis.
(<TO>.WarningWord.X14 (SynchronousError))
Error
The following table shows the possible errors:
Error Description
System A system-internal error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration A configuration error has occurred.
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were incor-
rectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigFault))
User program An error occurred in the user program with a Motion Control instruction or its use.
(<TO>.ErrorWord.X2 (UserFault))
Drive An error occurred in the drive.
(<TO>.ErrorWord.X4 (DriveFault))
Encoder An error occurred in the encoder system.
(<TO>.ErrorWord.X5 (SensorFault))
Data exchange Communication with a connected device is faulty.
(<TO>.ErrorWord.X7 (CommunicationFault))
I/O An error occurred accessing a logical address.
(<TO>.ErrorWord.X13 (PeripheralError))
Job rejected A job cannot be executed.
You cannot execute a Motion Control instruction because necessary requirements are not
fulfilled (for example, technology object not homed).
(<TO>.ErrorWord.X3 (CommandNotAccepted))
Homing An error occurred during a homing process.
(<TO>.ErrorWord.X10 HomingFault))
Positioning The positioning axis was not positioned correctly at the end of a positioning motion.
(<TO>.ErrorWord.X12 (PositioningFault))
Dynamic limitation The dynamic values are limited to the dynamic limits.
(<TO>.ErrorWord.X6 (DynamicError))
Following error The maximum permitted following error has been exceeded.
(<TO>.ErrorWord.X11 (FollowingErrorFault))
SW limit switch A software limit switch has been reached.
(<TO>.ErrorWord.X8 (SwLimit))
HW limit switch A hardware limit switch has been reached or overtraveled.
(<TO>.ErrorWord.X9 (HWLimit))
Adaptation An error occurred during data adaption.
(<TO>.ErrorWord.X15 (AdaptionError))
Synchronization Synchronous axis only
An error occurred during synchronization. The leading axis specified for the corresponding
Motion Control instruction was not configured as a possible leading axis.
(<TO>.ErrorWord.X14 (SynchronousError))
Alarm display
For additional information and to acknowledge the error, go to the Inspector window by
clicking on the "Alarm display" link.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 288) section.
See also
StatusWord tag (positioning axis/synchronous axis) (Page 472)
ErrorWord tag (positioning axis/synchronous axis) (Page 475)
WarningWord tag (positioning axis/synchronous axis) (Page 477)
Additional displays for the technology CPU (Page 350)
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.
"Setpoints" area
The following table shows the meaning of the status data:
Status Description
Target position Current target position of an active positioning job
The target position value is only valid during execution of a positioning job.
(<TO>.StatusPositioning.TargetPosition)
Position setpoint Setpoint position of the axis
(<TO>.Position)
Velocity setpoint Velocity setpoint of the axis
(<TO>.Velocity)
Velocity override Percentage correction of the velocity specification
The velocity setpoint specified in Motion Control instructions or set by the axis control panel is
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
Operative encoder Operative encoder of the axis
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)
Following error Following error of the axis
(<TO>.StatusPositioning.FollowingError)
Status Description
Velocity Configured maximum velocity
(<TO>.DynamicLimits.MaxVelocity)
Acceleration Configured maximum acceleration
(<TO>.DynamicLimits.MaxAcceleration)
Deceleration Configured maximum deceleration
(<TO>.DynamicLimits.MaxDeceleration)
Jerk Configured maximum jerk
(<TO>.DynamicLimits.Jerk)
See also
Additional displays for the technology CPU (Page 350)
Description
The "Technology object > Diagnostics > PROFIdrive telegram" diagnostics function is used
in the TIA Portal to monitor the PROFIdrive telegrams 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 telegram from the
drive to the controller:
● Status words "ZSW1" and "ZSW2"
● The speed setpoint (NSET) that was output to the drive
● The actual speed that was signaled from the drive (NACT)
"Encoder" area
This area displays the following parameters contained in the PROFIdrive telegram from the
encoder to the controller:
● Status word "Gx_ZSW"
● The actual position value "Gx_XIST1" (cyclic actual encoder value)
● The actual position value "Gx_XIST2" (absolute encoder value)
See also
Additional displays for the technology CPU (Page 350)
Axis status
Encoder values valid The actual encoder values (encoder 1, encoder 2, encoder 3 or encoder 4) are valid.
(<TO>.StatusSensor[n].State)
Active encoder The encoder in effect operationally is encoder 1, encoder 2, encoder 3 or encoder 4.
(<TO>.OperativeSensor)
Motion status
The following table shows the expanded/additional displays for the status of the motion
(Page 347):
PROFIdrive telegram
The "Encoder 1" to "Encoder 4" areas display the following parameters from the PROFIdrive
telegram (Page 349) of the corresponding encoder to the controller:
● Status word "Gx_ZSW"
● The actual position value "Gx_XIST1" (cyclic actual encoder value)
● The actual position value "Gx_XIST2" (absolute encoder value)
See also
Status and error bits (Page 343)
Motion status (Page 347)
PROFIdrive telegram (Page 349)
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
Encoder enabled The technology object has been enabled.
(<TO>.StatusWord.X0 (Enable))
Homed The technology object is homed. The relationship between the position in the technology
object and the mechanical position was successfully created.
(<TO>.StatusWord.X5 (HomingDone))
Error An error occurred at the technology object. Detailed information about the error is available
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 actual encoder values are valid.
(<TO>.StatusSensor[n].State)
Restart required Data relevant for the restart has been changed. The changes are applied only after a re-
start of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Motion status
The following table shows the possible states of the job execution:
Status Description
Done (no job running) No Motion Control job is running for the technology object.
(Enable by "MC_Power" job excepted)
(<TO>.StatusWord.X6 (Done))
Homing job The technology object executes a homing job of the Motion Control instruction "MC_Home".
(<TO>.StatusWord.X11 (HomingCommand))
Error
The following table shows the possible errors:
Error Description
System A system-internal error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration A configuration error has occurred.
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were incor-
rectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigFault))
User program An error occurred in the user program with a Motion Control instruction or its use.
(<TO>.ErrorWord.X2 UserFault))
Encoder An error occurred in the encoder system.
(<TO>.ErrorWord.X5 (SensorFault))
Data exchange Missing or faulty communication.
(<TO>.ErrorWord.X7 (CommunicationFault))
Adaptation An error occurred during data adaption.
(<TO>.ErrorWord.X15 (AdaptionError))
Alarm display
For additional information and to acknowledge the error, go to the Inspector window by
clicking on the "Alarm display" link.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 288) section.
See also
StatusWord tag (external encoder) (Page 488)
ErrorWord tag (external encoder) (Page 489)
WarningWord tag (external encoder) (Page 491)
Description
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the
TIA Portal to monitor the actual 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)
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.
Status Description
Active The technology object is in operation.
(<TO>.StatusWord.X0 (Control))
Waiting for measuring event The measuring input is waiting for a measuring event.
The technology data block tag "<TO>.Status" has the value "1"
("WAITING_FOR_TRIGGER").
Measured value present The measuring input has acquired one or more measured values.
The technology data block tag "<TO>.Status" has the value "2" ("TRIGGER_OCCURRED").
Error An error occurred at the technology object. Detailed information about the error is available
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. The tags of the technology data block are not
updated with active restart.
(<TO>.StatusWord.X2 (RestartActive))
Measuring input ready The measuring input is synchronized with the measuring module and can be used.
(<TO>.StatusWord.X5 (CommunicationOK))
Restart required Data relevant for the restart has been changed. The changes are applied only after a re-
start of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Error
The following table shows the possible errors:
Error Description
System A system-internal error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration A configuration error has occurred.
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were incor-
rectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigFault))
User program An error occurred in the user program with a Motion Control instruction or its use.
(<TO>.ErrorWord.X2 (UserFault))
Job rejected A job cannot be executed.
A Motion Control instruction cannot be executed because the necessary conditions are not
met (e.g. axis assigned to the measuring input is not homed).
(<TO>.ErrorWord.X3 (CommandNotAccepted))
I/O An error occurred accessing a logical address.
(<TO>.ErrorWord.X13 (PeripheralError))
Alarm display
For additional information and to acknowledge the error, go to the Inspector window by
clicking on the "Alarm display" link.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 288) section.
See also
StatusWord tag (measuring input) (Page 496)
ErrorWord tag (measuring input) (Page 497)
WarningWord tag (measuring input) (Page 499)
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.
Status Description
Active The technology object is in operation.
(<TO>.StatusWord.X0 (Control))
Switched The output cam is switched.
(<TO>.CamOutput)
Inverted output cam output The output cam output is inverted.
(<TO>.StatusWord.X4 (OutputInverted))
Error An error occurred at the technology object. Detailed information about the error is available
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. The tags of the technology data block are not
updated with active restart.
(<TO>.StatusWord.X2 (RestartActive))
Output cam output ready The cam is synchronized with the output module and available for use.
(<TO>.StatusWord.X5 (CommunicationOk))
Restart required Data relevant for the restart has been changed. The changes are applied only after a re-
start of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Error
The following table shows the possible errors:
Error Description
System A system-internal error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration A configuration error has occurred.
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were incor-
rectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigFault))
User program An error occurred in the user program with a Motion Control instruction or its use.
(<TO>.ErrorWord.X2 (UserFault))
Job rejected A job cannot be executed.
A Motion Control instruction cannot be executed because the necessary conditions are not
met (e.g. axis assigned to the output cam is not homed).
(<TO>.ErrorWord.X3 (CommandNotAccepted))
I/O An error occurred accessing a logical address.
(<TO>.ErrorWord.X13 (PeripheralError))
Alarm display
For additional information and to acknowledge the error, go to the Inspector window by
clicking on the "Alarm display" link.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 288) section.
See also
StatusWord tag (output cam) (Page 503)
ErrorWord tag (output cam) (Page 504)
WarningWord tag (output cam) (Page 505)
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.
Status Description
Active The technology object is in operation.
(<TO>.StatusWord.X0 (Control))
Switched A cam of cam track is switched.
(<TO>.TrackOutput)
Inverted output cam output The output cam output is inverted.
(<TO>.StatusWord.X4 (OutputInverted))
Error An error occurred at the technology object. Detailed information about the error is available
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. The tags of the technology data block are not
updated with active restart.
(<TO>.StatusWord.X2 (RestartActive))
Cam track output ready The cam track is synchronized with the output module and available for use.
(<TO>.StatusWord.X5 (CommunicationOk))
Restart required Data relevant for the restart has been changed. The changes are applied only after a re-
start of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Error
The following table shows the possible errors:
Error Description
System A system-internal error has occurred.
(<TO>.ErrorWord.X0 (SystemFault))
Configuration A configuration error has occurred.
One or more configuration parameters are inconsistent or invalid.
The technology object was incorrectly configured, or editable configuration data were incor-
rectly modified during runtime of the user program.
(<TO>.ErrorWord.X1 (ConfigFault))
User program An error occurred in the user program with a Motion Control instruction or its use.
(<TO>.ErrorWord.X2 (UserFault))
Job rejected A job cannot be executed.
A Motion Control instruction cannot be executed because the necessary conditions are not
met (e.g. axis assigned to the cam track is not homed).
(<TO>.ErrorWord.X3 (CommandNotAccepted))
I/O An error occurred accessing a logical address.
(<TO>.ErrorWord.X13 (PeripheralError))
Alarm display
For additional information and to acknowledge the error, go to the Inspector window by
clicking on the "Alarm display" link.
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 288) section.
See also
StatusWord tag (cam track) (Page 510)
ErrorWord tag (cam track) (Page 511)
WarningWord tag (cam track) (Page 512)
Description
You use the "Technology object > Diagnostics > Cam track status" diagnostics function in
the TIA Portal to monitor the status of the cam track. The Diagnostics function is available in
online operation.
Status Description
Valid Validity of the individual cams of the cam track
(<TO>.Parameter.Cam[1 … 32].Existent)
Masked Bit masking of the individual cams of the cam track
(<TO>.Parameter.CamMasking)
Effective Switched on output cam (bit-masked)
(<TO>.SingleCamState)
"Positions" area
The following status values are displayed in this area:
Status Description
Current position in the Position during cam track processing within a cam track cycle
cam track The distance to the current reference position of the current cam track (<TO>.MatchPosition) is
displayed.
(<TO>.TrackPosition)
Current cam track start Reference position of the current cam track
During cyclic processing of the cam track, the continued reference position of the current cam
track is displayed. The unique detection and output of the position is only possible when the as-
signed technology object is in motion.
(<TO>.MatchPosition)
Description
With the Motion Control instruction "MC_Power", a technology object is enabled or disabled.
Applies to
● Synchronous axis
● Positioning axis
● Speed axis
● External encoder
Requirement
● The technology object has been configured correctly.
● Cyclic BUS communication is established between controller and encoder
(<TO>.StatusSensor[n].CommunicationOK = TRUE).
● Cyclic BUS communication is established between controller and drive
(<TO>.StatusDrive.CommunicationOK = TRUE).
Override response
● An "MC_Power" job cannot be aborted by any other Motion Control job.
● An "MC_Power" job with 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 on the corresponding technology object in accordance with the selected "StopMode".
This process cannot be canceled by the user.
Parameters
The following table shows the parameters of Motion Control instruction "MC_Power":
Note
Automatic enable after acknowledgment of a technology alarm
If the technology object is disabled due to a technology alarm, the technology object will be
enabled again automatically 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 547).
See also
Error ID for Motion Control instructions (Page 542)
A technology object is enabled with "Enable_1= TRUE". The successful enable 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 "TO_1.Velocity".
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 to a standstill
according to the configuration in the drive. 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. The successful enable
can be read from "Status_1". Finally, the technology object is disabled with "Enable_1" =
FALSE.
10.2 MC_Reset V4
Description
With the Motion Control instruction "MC_Reset", you acknowledge all technology alarms that
can be acknowledged in the user program. Acknowledgment also resets the "Error" and
"Warning" bits in the technology data block.
With the Motion Control instruction "MC_Reset" with "Restart" = TRUE, you start
reinitialization (restart) of technology objects. Upon restart of the technology object, the new
configuration data are applied in the technology data block.
Applies to
● All technology objects
Requirement
● Positioning/synchronous axis, speed axis and external encoder technology objects:
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 "MC_Reset" instruction with parameter "Restart" = FALSE cannot be
aborted by any other Motion Control job. The MC_Reset job does not abort any active
motion control jobs.
● Parameter "Restart" = TRUE:
Processing of the "MC_Reset" instruction with parameter "Restart" = TRUE cannot be
aborted by any other Motion Control job.
Parameters
The following table shows the parameters of Motion Control instruction "MC_Reset":
Note
Acknowledge 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 for Motion Control instructions (Page 542)
10.3 MC_Home V4
Description
With the Motion Control instruction "MC_Home", you create the relationship between the
position in the technology object and the mechanical position. The actual position value in
the technology object is assigned to a homing mark at the same time. This homing mark
represents a known mechanical position.
Homing is performed 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 section "Version overview (Page 155)".
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:
Operating mode Positioning axis/ Positioning axis/ External incremen- External absolute
synchronous axis synchronous axis tal encoder encoder
with incremental with absolute
encoder encoder
Active homing X - - -
("Mode" = 3, 5)
Passive homing X - X -
("Mode" = 2, 8, 10)
Set actual position X X X X
("Mode" = 0)
Relative shift of the actual position X X X X
("Mode" = 1)
Absolute encoder adjustment - X - X
("Mode" = 6, 7)
Requirement
● The technology object has been configured correctly.
● "Mode" = 2, 3, 5, 8, 10
The technology object is enabled.
● "Mode" = 0, 1, 6, 7, 8
The actual encoder values are valid (<TO>.StatusSensor[n].State = 2).
● "Mode" = 6, 7
The axis is in position-controlled mode.
Override response
The override response for "MC_Home" jobs is described in section "Override response V4:
Homing and motion jobs (Page 428)".
Parameters
The following table shows the parameters of Motion Control instruction "MC_Home":
Additional information
An option for the evaluation of the individual status bits can be found in the section
"Evaluating StatusWord, ErrorWord and WarningWord (Page 288)".
See also
Override response V4: Homing and motion jobs (Page 428)
Error ID for Motion Control instructions (Page 542)
Homing (Page 69)
10.4 MC_Halt V4
Description
With the Motion Control instruction "MC_Halt", you brake an axis until it comes to a standstill.
You define the dynamic behavior of the braking operation with 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 override response for "MC_Halt" jobs is described in section "Override response V4:
Homing and motion jobs (Page 428)".
Parameters
The following table shows the parameters of Motion Control instruction "MC_Halt":
Additional information
An option for the evaluation of the individual status bits can be found in the Evaluating
StatusWord, ErrorWord and WarningWord (Page 288) section.
See also
Override response V4: Homing and motion jobs (Page 428)
Error ID for Motion Control instructions (Page 542)
MC_MoveVelocity: Move axis at velocity/speed setpoint V4 (Page 386)
Section An axis is moved with an "MC_MoveVelocity" job (A1). At time ①, the "MC_MoveVelocity" job is overridden by
an "MC_Halt" job (A2). The job abort is signaled via "Abort_1". With "AbortAcc_2" = FALSE, the current accel-
eration is reduced with the specified jerk. Afterward, the deceleration builds up and the axis is braked to a
standstill. The completion of the "MC_Halt" job is reported via "Done_2".
Section The axis is moved with an "MC_MoveVelocity" job (A1). At time ②, the "MC_MoveVelocity" job is overridden
by an "MC_Halt" job (A2). The job abort is signaled via "Abort_1". With "AbortAcc_2" = TRUE, the current ac-
celeration is set to zero immediately and the deceleration builds up. The axis is braked to a standstill. The
completion of the "MC_Halt" job is reported via "Done_2".
10.5 MC_MoveAbsolute V4
Description
With the Motion Control instruction "MC_MoveAbsolute", you can move an axis to an
absolute position.
You define the dynamic behavior of the motion with parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
Applies to
● Synchronous axis
● Positioning axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
● The technology object is homed.
Override response
The override response for "MC_MoveAbsolute" jobs is described in section "Override
response V4: Homing and motion jobs (Page 428)".
Parameters
The following table shows the parameters of Motion Control instruction "MC_MoveAbsolute":
See also
Override response V4: Homing and motion jobs (Page 428)
Error ID for Motion Control instructions (Page 542)
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 An active "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".
10.6 MC_MoveRelative V4
Description
With the Motion Control instruction "MC_MoveRelative", you move an axis relative to its
position when execution of the job began.
You define the dynamic behavior of the motion with parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
Applies to
● Synchronous axis
● Positioning axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The override response for "MC_MoveRelative" jobs is described in section "Override
response V4: Homing and motion jobs (Page 428)".
Parameters
The following table shows the parameters of Motion Control instruction "MC_MoveRelative":
See also
Override response V4: Homing and motion jobs (Page 428)
Error ID for Motion Control instructions (Page 542)
Function chart: Relative positioning of an axis, and the overriding job characteristics
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 new target position is reached, this
is signaled via "Done_2". Since "Exe_2" was previously reset, "Done_2" is applied only to one cycle.
Section An active "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".
10.7 MC_MoveVelocity V4
Description
With the Motion Control instruction "MC_MoveVelocity", you move an axis at constant
velocity/speed.
You define the dynamic behavior of the motion with parameters"Velocity", "Jerk",
"Acceleration" and "Deceleration".
● Positioning axis/synchronous axis:
A velocity is specified in the "Velocity" parameter.
● Speed axis:
A speed is specified in 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 override response for "MC_MoveVelocity" jobs is described in section Override
response V4: Homing and motion jobs (Page 428).
Parameters
The following table shows the parameters of Motion Control instruction "MC_MoveVelocity":
Note
Response to a change in the override
If the velocity / speed is influenced during constant motion by a change in the override
(<TO>.Override.Velocity), 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 section
"Evaluating StatusWord, ErrorWord and WarningWord (Page 288)".
See also
Override response V4: Homing and motion jobs (Page 428)
Error ID for Motion Control instructions (Page 542)
Function chart: Moving an axis with velocity specification, and the response to an overriding job
An "MC_MoveVelocity" job (A1) initiated via "Exe_1" accelerates the axis and signals at time
① via "InVel_1" that the velocity setpoint 50.0 has been reached.
At time ②, the job is overridden by another "MC_MoveVelocity" job (A2). The abort is
signaled via "Abort_1". When the new velocity setpoint 15.0 is reached, this is signaled via
"InVel_2". The axis then continues moving at the constant velocity 15.0.
10.8 MC_MoveJog V4
Description
With the Motion Control instruction "MC_MoveJog", you move an axis in jog mode.
You define the dynamic behavior of the motion with parameters "Velocity", "Jerk",
"Acceleration" and "Deceleration".
● Positioning axis/synchronous axis:
A velocity is specified in the "Velocity" parameter.
● Speed axis:
A speed is specified in 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 override response for "MC_MoveJog" jobs is described in section Override response V4:
Homing and motion jobs (Page 428).
Parameters
The following table shows the parameters of Motion Control instruction "MC_MoveJog":
Note
Response to a change in the override
If the velocity/speed is influenced during constant motion by a change in the override
(<TO>.Override.Velocity), 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 section
"Evaluating StatusWord, ErrorWord and WarningWord" (Page 288).
See also
Override response V4: Homing and motion jobs (Page 428)
Error ID for Motion Control instructions (Page 542)
The axis is moved in the negative direction in jog mode via "Jog_B". When the velocity
setpoint -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 velocity setpoint 50.0 is reached, this is signaled via "InVel" = TRUE.
At time ①, if "Jog_F" is set, the velocity setpoint is changed to 100.0 by means of
"Vel_Input". Alternatively, you can also change the velocity setpoint using the velocity
override. "InVel" is reset. Axis is being accelerated. When the new velocity setpoint 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 velocity setpoint 100.0 is reached, this is signaled via
"InVel" = TRUE.
10.9 MC_MoveSuperimposed V4
Description
With the Motion Control instruction "MC_MoveSuperimposed", you start a relative positioning
motion that is superimposed on a active basic motion.
You define the dynamic behavior of the motion with 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 dynamics 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 dynamics 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 dynamics 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.
– An "MC_MoveSuperimposed" job on a leading axis in synchronous operation affects
the leading axis and the following axis.
– An "MC_MoveSuperimposed" job on a following axis in synchronous operation only
affects the following axis.
It is always the dynamics of the total motion that is displayed in the technology data block
and in the TIA Portal.
Applies to
● Synchronous axis
● Positioning axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
Override response
The override response for "MC_MoveSuperimposed" jobs is described in section Override
response V4: Homing and motion jobs (Page 428).
Parameters
The following table shows the parameters of Motion Control instruction
"MC_MoveSuperimposed":
See also
Override response V4: Homing and motion jobs (Page 428)
Error ID for Motion Control instructions (Page 542)
Section Using "Exe_1", an "MC_MoveRelative" job with a distance of 50.0 is initiated. At time ①, using "Exe_2", an
MC_MoveSuperimposed job with a distance of 50.0 is initiated. The axis is moved with the added dynamic
values of both jobs by the distance 50 + 50 = 100.0. When the axis reaches the target position, this is signaled
via "Done_2".
Section Using "Exe_1", an "MC_MoveRelative" job with a distance of 50.0 is initiated. At time ②, using "Exe_2", a
MC_MoveSuperimposed job with a distance of -50.0 is initiated. The axis reverses and is moved with the add-
ed dynamic values of both jobs by the distance 50.0 - 50.0 = 0.0. When the axis reaches the target position,
this is signaled via "Done_2".
10.10.1 MC_MeasuringInput V4
Description
With the Motion Control instruction "MC_MeasuringInput", a one-time measuring is started.
With the one-time measuring, one or two edges can be detected with one measuring job.
The position of the respective technology object axis or external encoder is assigned to the
measuring event. The measurement result is indicated in the function block and in the
technology data block and can be further processed in the user program. This completes the
measuring job.
Another measuring job must be started again using "MC_MeasuringInput.Execute" = TRUE.
Applies to
● Measuring input
Requirement
● The technology object has been configured correctly.
● The encoder of the axis must have "valid" status (StatusSensor[1..4].State = valid).
Otherwise, the measuring job is rejected in the function block with an error indication.
● Measuring using PROFIdrive is not possible during active or passive homing.
Override response
The override response for "MC_MeasuringInput" jobs is described in section Override
response V4: Measuring input jobs (Page 430).
Parameters
The following table shows the parameters of Motion Control instruction
"MC_MeasuringInput":
See also
Time-related boundary conditions (Page 122)
Error ID for Motion Control instructions (Page 542)
One-time measurement (Page 116)
Override response V4: Measuring input jobs (Page 430)
10.10.2 MC_MeasuringInputCyclic V4
Description
With the Motion Control instruction "MC_MeasuringInputCyclic", a cyclic measuring is
started.
With cyclic measuring, up to two measuring events are detected by the system and the
associated measuring positions displayed. The measurements are continued cyclically until
they are ended per command.
Applies to
● Measuring input
Requirement
● The technology object has been configured correctly.
● Cyclic measuring is only possible when measuring using TM Timer DIDQ.
● The operationally active encoder of the axis must have "valid" status
(StatusSensor[1..4].State = valid). Otherwise, the measuring job is rejected in the function
block with an error indication.
Override response
The override response for "MC_MeasuringInputCyclic" jobs is described in section Override
response V4: Measuring input jobs (Page 430).
Parameters
The following table shows the parameters of Motion Control instruction
"MC_MeasuringInputCyclic":
See also
Time-related boundary conditions (Page 122)
Error ID for Motion Control instructions (Page 542)
Cyclic measuring (Page 117)
Override response V4: Measuring input jobs (Page 430)
A "MC_MeasuringInputCyclic" command initiated using "Execute" (signal and start point not
shown) (e.g. call in MC-PreServo [OB67]) with "Mode" = 0 and without specified measuring
range "MeasuringRange" = FALSE performs a measurement of the positive edges. By
calling the Motion Control instruction "MC_MeasuringInputCyclic" in MC-PreServo [OB67] or
MC-PreServo [OB67], the measuring command as well as the measurement itself is called in
the same application cycle.
The actual position determined at the time of the first positive edge ① in the position control
cycle is output using "MeasuredValue1", and count tag "MeasuredValue1Counter" is
incremented by "1".
The actual position determined at the time of the second positive edge ② in the position
control cycle is output using "MeasuredValue2", and count tag "MeasuredValue2Counter" is
incremented by "1".
If additional positive edges occur in the same position control cycle ③, these are recorded in
LostEdgeCounter1 and LostEdgeCounter2.
10.10.3 MC_AbortMeasuringInput V4
Description
With the Motion Control instruction "MC_AbortMeasuringInput", an active one-time or cyclic
measuring job is aborted.
Applies to
● Measuring input
Requirement
● The technology object has been configured correctly.
Override response
The override response for "MC_AbortMeasuringInput" jobs is described in section Override
response V4: Measuring input jobs (Page 430).
Parameters
The following table shows the parameters of Motion Control instruction
"MC_AbortMeasuringInput":
See also
Error ID for Motion Control instructions (Page 542)
Override response V4: Measuring input jobs (Page 430)
Technology object measuring input (Page 111)
10.10.4 MC_OutputCam V4
Description
You use Motion Control instruction "MC_OutputCam" to activate the specified cam.
Depending on the cam type, the following input parameters are in effect:
● Distance output cam
– "OnPosition"
– "OffPosition"
● Time-based output cam
– "OnPosition"
– "Duration"
You define the operating mode and the effective direction of the cam with parameters
"Mode" and "Direction".
When "MC_OutputCam.Enable" = TRUE, the input parameters are always read and take
effect at the next position control cycle.
When a technological alarm occurs, the cam is processed again after error acknowledgment.
Applies to
● Output cam
Requirement
● The technology object has been configured correctly.
● The higher-level technology object must have a valid position.
● Setpoint output cams are not output for an axis in non-position-controlled operation.
● A setpoint output cam with the setting "MC_OutputCam.OnPosition" = 0 switches at
position setpoint = 0.
Override response
The "MC_OutputCam" is canceled by:
● Disabling of the cam with "MC_OutputCam.Enable" = FALSE
● Only one instance of the "MC_OutputCam" function block can be active on an output cam
in the user program. A second instance of the "MC_OutputCam" function block on a
currently active output cam is rejected with an error.
Parameters
The following table shows the parameters of Motion Control instruction "MC_OutputCam":
See also
Error ID for Motion Control instructions (Page 542)
Technology object output cam (Page 126)
A cam is activated with "Enable" = TRUE. The cam is output corresponding to the
parameters.
The processing of the cam is indicated with "Busy" = TRUE.
When activation direction "Direction" = 1 (positive) is set, the cam behaves as follows,
regardless of the cam type setting:
● The distance output cam switches on at "OnPosition" ① and switches off again at
"OffPosition" ②. At a direction reversal the cam is switched off ④.
● The time-based output cam switches on at "OnPosition" ① and switches off again after
expiration of the specified time "Duration" ③. A switched on time-based output cam
remains active for the specified switch-on duration "Duration", even if overtravel of the
start position occurs again in the reverse direction.
The switching state of the cam is output using "CamOutput".
With "Enable" = FALSE, the specified cam type is deactivated. "Busy" = FALSE shows that
the cam is not being processed.
10.10.5 MC_CamTrack V4
Description
With the Motion Control instruction "MC_CamTrack", the processing of a cam track is
enabled.
Applies to
● Cam track
Requirement
● The technology object has been configured correctly.
● The higher-level technology object must have a valid position.
● Setpoint output cams are not output for an axis in non-position-controlled operation.
Override response
● The "MC_CamTrack" is aborted by the disabling of the cam track with
"MC_CamTrack.Enable" = FALSE.
● Only one instance of the "MC_CamTrack" function block can be active on a cam track in
the user program. A second instance of the "MC_CamTrack" function block on a currently
active cam track is rejected with an error.
● The cam track is recalculated at a change of the parameters of the Motion Control
instruction "MC_CamTrack" or in the technology data block. The cam track is processed
in accordance with all parameter settings.
Parameters
The following table shows the parameters of Motion Control instruction "MC_CamTrack":
See also
Error ID for Motion Control instructions (Page 542)
Cam track technology object (Page 141)
A cam track is activated with "Enable" = TRUE. The cam track is output in accordance with
the parameters set in the technology data block.
10.11.1 MC_GearIn V4
Description
With the Motion Control instruction "MC_GearIn", you start a gearing (Page 107) operation
between a leading axis and a following axis.
You define the dynamic behavior of the following axis for synchronization with parameters
"Jerk", "Acceleration" and "Deceleration".
The synchronization duration and distance are dependent on the following parameters:
● Start time of the "MC_GearIn" job
● Dynamics of the following axis at the start time
● Dynamic settings for synchronization
● Dynamics of the leading axis
You specify the gear ratio as the relationship between two integers (numerator/denominator)
with the parameters "RatioNumerator" and "RatioDenominator".
The numerator of the gear ratio is specified as positive or negative. This yields the following
behavior:
● Positive gear ratio:
The leading and following axes move in the same direction.
● Negative gear ratio:
The following axis moves 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.
Applies to
● Synchronous axis
Requirement
● The technology objects of the leading axis and the following axis have been configured
correctly.
● The leading axis is a positioning axis, synchronous axis, or external encoder.
● 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 > Leading value interconnections".
● The following axis is enabled.
Override response
The override response for "MC_GearIn" jobs is described in section Override response V4:
Synchronous operation jobs (Page 429).
Disabling the following axis with "MC_Power.Enable" = FALSE aborts the synchronous
operation in every status.
Disabling the leading axis with "MC_Power", in contrast, 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.
Parameters
The following table shows the parameters of Motion Control instruction "MC_GearIn":
See also
Error ID for Motion Control instructions (Page 542)
Override response V4: Synchronous operation jobs (Page 429)
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.
10.12.1 MC_TorqueLimiting V4
10.12.1.1 MC_TorqueLimiting: Activate and deactivate force/torque limit / fixed stop detection V4
Description
With the Motion Control instruction "MC_TorqueLimiting", you activate and assign
parameters for force/torque limiting and fixed stop detection. Together with a position-
controlled motion job, a "Travel to fixed stop" can be realized with the fixed stop detection. In
the axis configuration, you can configure whether the force/torque limiting is to relate to the
drive side or the load side.
The functions of the Motion Control instruction "MC_TorqueLimiting" can be activated and
deactivated before and during a motion job.
Override response
● An "MC_TorqueLimiting" job cannot be aborted by any other Motion Control job.
● A new "MC_TorqueLimiting" job does not abort any active Motion Control jobs.
● If the high and low torque limiting is active via the "MC_TorqueRange" job, the
"MC_TorqueLimiting" job is rejected with an error message and vice versa. The functions
do not override one another.
Parameters
The following table shows the parameters of Motion Control instruction
"MC_TorqueLimiting":
Changes to input parameters "Limit" and "Mode" are also transferred at the cyclic call of the
Motion Control instruction when "Enable = TRUE".
See also
Error ID for Motion Control instructions (Page 542)
Fixed stop detection (Page 65)
Force/torque limiting (Page 63)
At time ①, an "MC_Halt" job (A2) is executed on an axis with active torque limiting
"MC_TorqueLimiting" (A1). Torque limiting is still active "MC_TorqueLimiting.Enable" =
TRUE and any accumulated following error is retained and will be reduced with the time.
When the actual velocity is "0.0" and the minimum dwell time in the standstill window has
elapsed, the tag "MC_Halt.Done" shows = TRUE. When position monitoring is activated,
reaching of the target position is also monitored.
Positioning tolerance
10.12.2 MC_TorqueAdditive V4
Description
With the Motion Control instruction "MC_TorqueAdditive", you specify an additive torque for
the drive to which the technology object is assigned. The torque data are transferred via the
telegram 750.
With the "Value" parameter, you specify the additive setpoint torque. The specification of the
additive torque setpoint is overriding. An additional torque may be positive or negative. If you
invert the setpoint for the technology object, the value for the additive torque is also inverted
and transferred inverted to the drive.
Applies to
● Positioning axis
● Speed axis
● Synchronous axis
Requirement
● The technology object has been configured correctly.
● The technology object is enabled.
● The drive is connected via PROFIdrive telegram.
● Telegram 750 is configured.
Telegram 750 is available for SINAMICS drives V4.9 and higher.
Override response
● An "MC_TorqueAdditive" job is not aborted by any other Motion Control job.
● A new "MC_TorqueAdditive" job does not abort any active Motion Control jobs.
Parameters
The following table shows the parameters of Motion Control instruction
"MC_TorqueAdditive":
See also
Error ID for Motion Control instructions (Page 542)
PROFIdrive telegrams (Page 36)
Additive setpoint torque (Page 66)
Section With "Enable_1 = TRUE", an additive setpoint torque "Value_1" is specified for the drive assigned to the tech-
nology object. This setting is transferred to the drive parameter "p1511 - Supplementary torque 1" using tele-
gram 750.
Section With "Enable_1 = TRUE", an additive setpoint torque "Value_1" is specified for the drive assigned to the tech-
nology object. This setting is transferred to the drive parameter "p1511 - Supplementary torque 1" using tele-
gram 750. The additive setpoint torque is first built up. At time ①, "Enable_1" is already set to FALSE, before
the additive setpoint torque is reduced again. The reduction of the torque setpoint is transmitted directly to the
drive.
10.12.3 MC_TorqueRange V4
Description
With the Motion Control instruction "MC_TorqueRange", you can specify an upper and lower
torque limit to the drive assigned to the technology object. The torque data are transferred
via the telegram 750.
With the "UpperLimit" parameter you specify the upper torque limit and with "LowerLimit" the
lower torque limit. The specification of the torque limits has smoothing effect on the
movements. If you invert the setpoints for the technology object, the values for the high and
low torque limit are also inverted and transferred inverted to the drive.
If the high and low torque limits are active, the following monitors and limits are disabled by
default:
● Following error monitoring
● Time limitations for positioning and standstill monitoring
Monitoring remains in effect if you have selected the option "Leave position-related
monitoring enabled" under "Technology object > Configuration > Extended parameters >
Limits > Torque limit".
Applies to
● Positioning axis
● Speed axis
● Synchronous axis
Requirement
● The technology object has been configured correctly.
● The drive is connected via PROFIdrive telegram.
● Telegram 750 is configured.
Telegram 750 is available for SINAMICS drives V4.9 and higher.
Override response
● An "MC_TorqueRange" job is not aborted by any other Motion Control job.
● A new "MC_TorqueRange" job does not abort any active Motion Control jobs.
● If the torque limiting is active via the "MC_TorqueLimiting" job, the "MC_TorqueRange"
job is rejected with an error message and vice versa. The functions do not override one
another.
Parameters
The following table shows the parameters of Motion Control instruction "MC_TorqueRange":
See also
Error ID for Motion Control instructions (Page 542)
PROFIdrive telegrams (Page 36)
Permissible torque range (Page 67)
With "Enable_1 = TRUE" an upper torque limit "UpperLimit_1" and a lower torque limit
"LowerLimit_1" are specified to the drive assigned to the technology object. These settings
are transferred directly to the drive parameters "p1522 - Torque limit upper" and "p1523 -
Torque limit lower" using telegram 750. If "Enable_1" is reset to FALSE, the upper and lower
torque limits are no longer active.
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 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
Tag
Legend (Page 431)
Tag
Legend (Page 431)
Tags
Legend (Page 431)
Tag
Legend (Page 431)
Tags
Legend (Page 431)
Tags
Legend (Page 431)
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 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
Kv LREAL 0.0 to DIR Proportional gain of the closed loop position control
2147480.0 ("Kv" > 0.0)
Kpc LREAL 0.0 to 150.0% DIR Velocity precontrol of the position control
Recommended setting:
• Isochronous drive connection via PROFIdrive:
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 with one of the following
PROFIdrive telegrams:
• Standard telegram 5 or 6
• SIEMENS telegram 105 or 106
SmoothingTimeBy- LREAL 0.0 to 1.0E+12 DIR Manipulated variable ramp at step change of control
ChangeDifference deviation due to encoder switchover.
InitialOperativeSensor UDINT - RES Active encoder after initialization of the axis.
(encoder number 1 to 4)
This encoder is used after startup of the CPU and
after a restart of the technology object (Page 314).
At an operating mode transition from STOP → RUN
of the CPU (without restart of the technology object),
the encoder that was also active before the STOP is
still being used.
ControlDifference STRUCT
Quantization.
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
See also
Synchronous axis technology object (Page 105)
Tag
Legend (Page 445)
Tags
Legend (Page 445)
Tags
Legend (Page 445)
Tag
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tag
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Tags
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
Technology alarms (Page 333)
Tag
Legend (Page 445)
See also
Evaluating the technology data block (Page 285)
See also
Evaluating the technology data block (Page 285)
See also
Evaluating the technology data block (Page 285)
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 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tags
Legend (Page 479)
Tag
Legend (Page 479)
Tag
Legend (Page 479)
Tags
Legend (Page 479)
Tag
Legend (Page 479)
Tags
Legend (Page 479)
A.4.1 Legend
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Tags
Legend (Page 492)
Tags
Legend (Page 492)
Tags
Legend (Page 492)
Tags
Legend (Page 492)
Tags
Legend (Page 492)
Tags
Legend (Page 492)
Bit 0 - - - "Control"
0: Technology object not in operation
1: Technology object in operation
Bit 1 - - - "Error"
0: No error present
1: Error present
Bit 2 - - - "RestartActive"
0: No "Restart" active
1: "Restart" active. The technology object is being reinitialized.
Bit 3 - - - "OnlineStartValuesChanged"
0: "Restart" tags unchanged
1: Change to "Restart" tags. For the changes to be applied, the
technology object must be reinitialized.
Bit 4 - - - Reserved
Bit 5 - - - "CommunicationOK"
Communication between measuring input and measuring module
0: Not established
1: Established
Bit 6... - - - Reserved
Bit 31
Tags
Legend (Page 492)
Tags
Legend (Page 492)
Tag
Legend (Page 492)
A.5.1 Legend
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Tags
Legend (Page 500)
Tags
Legend (Page 500)
Tags
Legend (Page 500)
Tags
Legend (Page 500)
Tags
Legend (Page 500)
Bit 0 - - - "Control"
0: Technology object not in operation
1: Technology object in operation
Bit 1 - - - "Error"
0: No error present
1: Error present
Bit 2 - - - "RestartActive"
0: No "Restart" active
1: "Restart" active. The technology object is being reinitialized.
Bit 3 - - - "OnlineStartValuesChanged"
0: "Restart" tags unchanged
1: Change to "Restart" tags. For the changes to be applied, the
technology object must be reinitialized.
Bit 4 - - - "OutputInverted"
0: Output cam output not inverted
1: Output cam output inverted
Bit 5 - - - "CommunicationOK"
Communication between output cam and output module
0: Not established
1: Established
Bit 6... - - - Reserved
Bit 31
Tags
Legend (Page 500)
Tags
Legend (Page 500)
Tag
Legend (Page 500)
A.6.1 Legend
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Tags
Legend (Page 506)
Tags
Legend (Page 506)
Tags
Legend (Page 506)
Tags
Legend (Page 506)
Tags
Legend (Page 506)
Bit 0 - - - "Control"
0: Technology object not in operation
1: Technology object in operation
Bit 1 - - - "Error"
0: No error present
1: Error present
Bit 2 - - - "RestartActive"
0: No "Restart" active
1: "Restart" active. The technology object is being reinitialized.
Bit 3 - - - "OnlineStartValuesChanged"
0: "Restart" tags unchanged
1: Change to "Restart" tags. For the changes to be applied, the
technology object must be reinitialized.
Bit 4 - - - "OutputInverted"
0: Output cam output not inverted
1: Output cam output inverted
Bit 5 - - - "CommunicationOK"
Communication between cam track and output module
0: Not established
1: Established
Bit 6... - - - Reserved
Bit 31
Tags
Legend (Page 506)
Tags
Legend (Page 506)
Tag
Legend (Page 492)
A.7.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 333)
Encoder dirty.
Read error encoder absolute value. Compare the encoder type in the drive or encoder pa-
rameter P979 with the configuration data of the technol-
ogy object.
Zero mark monitoring encoder. Encoder signals error in zero mark monitoring (fault
code 0x0002 in Gx_XIST2, see PROFIdrive profile).
Encoder in Parking state. • Search for the cause of the error in the connected
drive or encoder.
• Check whether the alarm was possibly triggered by a
commissioning action involving the drive or encoder.
Encoder system
Encoder resolution
Encoder fine resolution
Encoder revolutions
16#0000 - 16#800F
Invalid entry Reset both the "JogForward" parameter and the "JogBack-
Both the "JogForward" and "JogBackward" ward" parameter.
parameters are set to TRUE at the same
time. The axis is braked at the last valid
deceleration.
16#8008 Invalid distance specification Set a valid distance value at parameter "Distance".
16#8009 Invalid position specification Set a valid position value at parameter "Position".
16#800A Illegal operating mode Specify a permissible operating mode for parameter "Mode".
16#8010 - 16#802F
16#8030 - 16#807F
16#80A0 - 16#8FFF
See also
Errors in Motion Control instructions (Page 337)
A.9.1.1 StopMode 0, 2
① • "StopMode" = 0
A.9.1.2 StopMode 1
A.9.1.3 Alarm reactions with braking ramp via the technology object
Function chart: Enabling a technology object and occurrence of a technology alarm with braking ramp
via the technology object
The axis is braked with the deceleration in the Motion Control instruction.
• Stop with maximum dynamic values (<TO>.ErrorDetail.Reaction = 2)
Function chart: Enabling a technology object and occurrence of a technology alarm with alarm
reaction "Remove enable"
A.9.2.1 StopMode 0, 2
① • "StopMode" = 0
A.9.2.2 StopMode 1
A.9.2.3 Alarm reactions with braking ramp via the technology object
Function chart: Enabling a technology object and occurrence of a technology alarm with braking ramp
via the technology object
The axis is braked with the deceleration in the Motion Control instruction.
• Stop with maximum dynamic values (<TO>.ErrorDetail.Reaction = 2)
Function chart: Enabling a technology object and occurrence of a technology alarm with alarm
reaction "Remove enable"
See also
PROFIdrive telegrams (Page 36)
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
Gain factor of the position controller
Master value
Input value 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.
Relative gearing
Function corresponds to the Motion Control instruction MC_GearIn.
Restart
The technology object is reinitialized with the current configuration parameters.
Synchronization
The phase of the following axis to reach synchronous movement.
Synchronous operation
Defined synchronous movement after synchronization of a following axis to a leading axis.
Technology alarm
If an error occurs at a technology object (e.g. approaching a hardware limit switch), a
technology alarm is triggered and indicated.
The impact of a technology alarm on the technology object is specified by the alarm reaction
(e.g. remove enable). The alarm 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.
ErrorID
Basics, 332, 337
A List of ErrorIDs, 542
Errors in Motion Control instructions, 332, 337, 542
Absolute actual value, 39, 41
External encoder
Absolute encoder adjustment, 70
Adding, 175
Absolute value adjustment, 85
Basics, 24, 110
Active homing, 70, 73, 76, 78, 217
Configuration, 230
Actuator, 26
Deleting, 177
Additive setpoint torque, 66
Diagnostics, 351, 353, 353
Axis control panel, 319, 324
Functions, 28
Axis type, 31
Moving, 176
Tags, 479
C
Cam track F
Basics, 141
Following error monitoring, 88, 90, 91, 226
Configuration, 250
Diagnostics, 358, 360
Functions, 28
G
Tags, 506
Closed loop position control, 92, 93, 94, 228 Gear ratio, 107
Closed-loop control, 92, 93, 94, 228 Gearing, 107
Compatibility list, 555
H
D Hardware limit switches, 55, 55, 210
DB_ANY, 296 Hardware limit switches, 55, 55, 210
Diagnostics Home position, 71
S7-1500 Motion Control, 332, 333, 337 Homing mark, 71
Direct homing, 70, 85
Direction reversal at the hardware limit
switch, 71, 84, 218 I
Drive
Incremental actual value, 39, 40
Compatibility list, 555
Interpolator OB, 95, 98
Drives compatibility list, 166
DSC (Dynamic Servo Control), 92, 93, 94, 228
Dynamic default values, 60, 207
J
Dynamic Servo Control (DSC), 92, 93, 94, 228
Jerk limit, 60, 207, 211
E
L
Emergency stop deceleration, 62, 209
Encoder mounting type, 53, 54, 202 Leading value coupling, 107
Error ID, 337, 542 Leadscrew pitch, 53, 54, 202
Limit switches, 55, 55, 57, 210
Limits for dynamics, 59, 211
U
Unit of measure, 32
V
Velocity precontrol, 92
Velocity profile, 60
Z
Zero mark, 71