s71200 Motion Control Function Manual en-US en-US
s71200 Motion Control Function Manual en-US en-US
Introduction 1
Basics for working
with S7-1200 Motion Control 2
SIMATIC
Guidelines on use of motion
control 3
STEP 7
S7-1200 Motion Control 4
Using versions
V6.0 to V7.0 in TIA Portal V16
Positioning axis technology
object 5
Function Manual
Technology object command
table 6
Download to CPU 7
Commissioning 8
Programming 9
Axis - Diagnostics 10
Instructions 11
Appendix 12
12/2019
A5E03790551-AG
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
This documentation contains pictures of the devices described. The pictures may differ in
minor details from the devices supplied.
Please also observe notes labeled as follows:
Note
A note contains important information on the product described in the documentation, on the
handling of the product or on the section of the documentation to which particular attention
should be paid.
Further support
If you have any questions relating to the products described in this manual, and do not find
the answers in this documentation, please contact your Siemens partner at our local offices.
You will find your contact person on the Internet
(http://www.automation.siemens.com/mcms/aspa-db/en/automation-
technology/Pages/default.aspx).
A guide to the technical documentation for the various SIMATIC products and systems can
be found on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
The online catalog and online ordering system are available on the Internet
(https://mall.industry.siemens.com).
Training center
We offer a range of courses to help get you started with the S7 automation system. Please
contact your regional training center or the central Training center
(http://support.automation.siemens.com/WW/view/en/24486113).
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 visit (https://www.siemens.com/industrialsecurity).
Preface ................................................................................................................................................... 3
1 Introduction ........................................................................................................................................... 11
1.1 Motion functionality of the CPU S7-1200 ................................................................................11
1.2 Hardware components for motion control ...............................................................................12
2 Basics for working with S7-1200 Motion Control .................................................................................... 15
2.1 Stepper motor on the PTO ......................................................................................................15
2.1.1 CPU outputs relevant for motion control .................................................................................15
2.1.2 How the pulse interface works ................................................................................................19
2.1.3 Relationship between the signal type and the direction of travel ...........................................19
2.2 PROFIdrive drive /analog drive connection ............................................................................24
2.2.1 Drive and encoder connection ................................................................................................24
2.2.2 Automatic transfer of drive and encoder parameters in the device ........................................25
2.2.3 PROFIdrive .............................................................................................................................28
2.2.4 Closed loop control .................................................................................................................29
2.2.5 Data connection PROFIdrive drive/PROFIdrive encoder .......................................................30
2.2.6 Data connection drive with analog drive connection ..............................................................36
2.2.7 Process response ...................................................................................................................38
2.2.7.1 Organization Blocks for Motion Control ..................................................................................38
2.2.7.2 Process image partition "PIP OB Servo" ................................................................................40
2.2.7.3 Operational Sequence and Timeouts .....................................................................................40
2.2.7.4 Operating modes ....................................................................................................................41
2.3 Hardware and software limit switches ....................................................................................43
2.4 Jerk limit ..................................................................................................................................44
2.5 Homing ....................................................................................................................................45
3 Guidelines on use of motion control....................................................................................................... 47
4 Using versions ...................................................................................................................................... 48
4.1 Overview of versions...............................................................................................................48
4.2 Changing a technology version ..............................................................................................53
4.3 Compatibility list of variables V1...3 <-> V4...5 .......................................................................54
4.4 Compatibility list of variables V4...5 <-> V6 ............................................................................57
4.5 Compatibility telegrams V6 <-> V7 .........................................................................................58
4.6 Status of limit switch ...............................................................................................................62
12.11.7 Tags of the positioning axis technology object V4...5 .......................................................... 406
12.11.7.1 Tags to position values and velocity values V4...5 .............................................................. 406
12.11.7.2 Actuator tags V4...5 ............................................................................................................. 407
12.11.7.3 Sensor[1] tags V4...5 ........................................................................................................... 409
12.11.7.4 Units tag V4...5..................................................................................................................... 412
12.11.7.5 Mechanics tag V4...5 ........................................................................................................... 413
12.11.7.6 Modulo tags V4...5 ............................................................................................................... 414
12.11.7.7 DynamicLimits tags V4...5 ................................................................................................... 415
12.11.7.8 DynamicDefaults tags V4...5................................................................................................ 416
12.11.7.9 PositionLimitsSW tags V4...5 ............................................................................................... 417
12.11.7.10 PositionLimitsHW tags V4...5............................................................................................... 418
12.11.7.11 Homing tags V4...5 .............................................................................................................. 419
12.11.7.12 PositionControl tags V5 ....................................................................................................... 420
12.11.7.13 FollowingError tags V5 ......................................................................................................... 421
12.11.7.14 PositionMonitoring tags V5 .................................................................................................. 422
12.11.7.15 StandstillSignal tags V5 ....................................................................................................... 423
12.11.7.16 StatusPositioning tags V4...5 ............................................................................................... 424
12.11.7.17 StatusDrive tags V5 ............................................................................................................. 425
12.11.7.18 StatusSensor tags V5 .......................................................................................................... 426
12.11.7.19 StatusBits tags V4...5 ........................................................................................................... 427
12.11.7.20 ErrorBits tags V4...5 ............................................................................................................. 431
12.11.7.21 ControlPanel tags V4...5 ...................................................................................................... 432
12.11.7.22 Internal tags V4...5 ............................................................................................................... 432
12.11.7.23 Update of the technology object tags .................................................................................. 432
12.11.8 Tags of the command table technology object V1...3 .......................................................... 433
12.11.9 Tag of the command table technology object V4...5............................................................ 434
Index ...................................................................................................................................................435
See also
Hardware components for motion control (Page 12)
Integration of the positioning axis technology object (Page 63)
Tools of the positioning axis technology object (Page 66)
Use of the Job Table technology object (Page 140)
Command table technology object tools (Page 140)
CPU S7-1200
CPU S7-1200 combines the functionality of a programmable logic controller with motion
control functionality for operation of drives. The motion control functionality takes over the
control and monitoring of the drives.
Signal board
You add further inputs and outputs to the CPU with the signal boards.
You can use the digital outputs as pulse generator outputs for controlling drives as required.
In CPUs with relay outputs, the pulse signal cannot be output on the onboard outputs
because the relays do not support the necessary switching frequencies. To be able to work
with the PTO (Pulse Train Output) on these CPUs, you must use a signal board with digital
outputs.
You can use the analog outputs for controlling connected analog drives as required.
PROFINET
Use the PROFINET interface to establish the online connection between the CPU S7-1200
and the programming device. In addition to the online functions of the CPU, additional
commissioning and diagnostic functions are available for motion control.
PROFINET continues to support the PROFIdrive profile for connecting PROFIdrive capable
drives and encoders.
See also
Motion functionality of the CPU S7-1200 (Page 11)
CPU outputs relevant for motion control (Page 15)
CPU Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 Q1.0 Q1.1
1211 (DC/DC/DC) 100 100 100 100 - - - - - -
kHz kHz kHz kHz
1212 (DC/DC/DC) 100 100 100 100 20 kHz 20 kHz - - - -
kHz kHz kHz kHz
1214(F) (DC/DC/DC) 100 100 100 100 20 kHz 20 kHz 20 kHz 20 kHz 20 kHz 20 kHz
kHz kHz kHz kHz
1215(F) (DC/DC/DC) 100 100 100 100 20 kHz 20 kHz 20 kHz 20 kHz 20 kHz 20 kHz
kHz kHz kHz kHz
1217 (DC/DC/DC) 1 MHz 1 MHz 1 MHz 1 MHz 100 100 100 100 100 100 kHz
kHz kHz kHz kHz kHz
Depending on the signal board, the pulse generator outputs Qx.0 to Qx.3 can be used with
the following limit frequencies:
Note
If pulse generator outputs with different limit frequencies are used in accordance with the
signal type, the low limit frequency is used in each case.
Signal type "Pulse A and direction B" is an exception. With this type of signal, the limit
frequency of the pulse generator output is always used.
Note
Access to pulse generator outputs via the process image
The firmware takes control via the corresponding pulse generator and direction outputs if the
PTO (Pulse Train Output) is selected and assigned to an axis.
With this takeover of the control function, the connection between the process image and I/O
output is also disconnected. Although the user has the option of writing the process image of
pulse generator and direction outputs via the user program or watch table, this is not
transferred to the I/O output. Accordingly, it is also not possible to monitor the I/O output via
the user program or watch table. The information read reflects the value of the process
image and does not match the real status of the I/O output.
For all other CPU outputs that are not used permanently by the CPU firmware, the status of
the I/O output can be controlled or monitored via the process image, as usual.
Acceleration/deceleration limits
The following limits apply to acceleration and deceleration:
Acceleration/deceleration Value
Minimum acceleration/deceleration 5.0E-3 pulses/s2
Maximum acceleration/deceleration 9.5E+9 pulses/s2
Jerk limits
The following limits apply to the jerk:
Jerk Value
Minimum jerk 4.0E-3 pulses/s3
Maximum jerk 1.0E+10 pulses/s3
See also
CPU outputs relevant for motion control (technology version V1...3) (Page 329)
How the pulse interface works (Page 19)
Relationship between the signal type and the direction of travel (Page 19)
Hardware and software limit switches (Page 43)
Jerk limit (Page 44)
Homing (Page 45)
Hardware components for motion control (Page 12)
Integration of the positioning axis technology object (Page 63)
Tools of the positioning axis technology object (Page 66)
The statements made here also apply to servo motors with pulse interface.
See also
CPU outputs relevant for motion control (Page 15)
Relationship between the signal type and the direction of travel (Page 19)
Hardware and software limit switches (Page 43)
Jerk limit (Page 44)
Homing (Page 45)
Integration of the positioning axis technology object (Page 63)
Tools of the positioning axis technology object (Page 66)
2.1.3 Relationship between the signal type and the direction of travel
The CPU outputs the velocity and direction of travel via two outputs.
The relationships between the configuration and direction of travel differ depending on the
selected signal type. You can configure the following signal types in the axis configuration
under "Basic parameters > General":
● "PTO – pulse A and direction B"
● "PTO – clock up A and clock down B" (as of V4)
● "PTO – A/B phase-shifted" (as of V4)
● "PTO – A/B phase-shifted, quadruple" (as of V4)
You configure the direction under "Extended Parameters > Mechanics" in the axis
configuration. If you select the "Invert direction" option, the direction logic described below
for the respective signal type is inverted.
Invert direction
If you select the "Invert rotation signal" option, the direction logic is inverted:
● PTO – pulse (A) and direction (B)
– 0 V at direction output (low level) ⇒ positive direction of rotation
– 5 V/24 V at direction output (high level) ⇒ negative direction of rotation
The specified voltage depends on the hardware used. The voltages indicated do not
apply to the differential outputs of CPU 1217.
● PTO – clock up A and clock down B
The outputs "Pulse output down" and "Pulse output up" are swapped.
● PTO – A/B phase-shifted
The "Signal A" and "Signal B" outputs are swapped.
● PTO – A/B phase offset, quadruple
The "Signal A" and "Signal B" outputs are swapped.
See also
CPU outputs relevant for motion control (Page 15)
How the pulse interface works (Page 19)
Hardware and software limit switches (Page 43)
Jerk limit (Page 44)
Homing (Page 45)
Integration of the positioning axis technology object (Page 63)
Tools of the positioning axis technology object (Page 66)
Parameters
The controller settings are made in the TIA Portal under "Technology object > Configuration
> Basic parameters > 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:
See also
Configuration - Drive - PTO (Pulse Train Output) (Page 73)
Configuration - Drive - Analog drive connection (Page 75)
Configuration - Drive - PROFIdrive (Page 77)
Configuration - Encoder - Encoder on PROFINET/PROFIBUS (Page 79)
Configuration - Encoder - Encoder on high-speed counter (HSC) (Page 82)
2.2.3 PROFIdrive
PROFIdrive is the standardized standard profile for drive technology in the connection of
drives and encoders via PROFINET IO. Drives and encoders that support the PROFIdrive
profile are connected according to the PROFIdrive standard.
You can find the current PROFIdrive specification at:
(http://www.profibus.com)
Communication between controller and drive/encoder is by means of various PROFIdrive
telegrams. Each of the telegrams has a standardized structure. Depending on the
application, you can select the applicable telegram. Control words and status words as well
as setpoints and actual values are transmitted in the PROFIdrive telegrams.
Controller structure
The following figure shows the controller structure of an S7-1200 Motion Control:
The MC-Interpolator [OB92] calculates the setpoint position for the axis. The difference
between the setpoint and actual position is multiplied by the gain factor of the position
controller. The resulting value is added to the precontrol value and output as setpoint speed
to the drive via PROFIdrive or analog output.
The encoder records the actual position of the axis and returns it to the controller via a
PROFIdrive telegram or an HSC (high speed counter).
The organization blocks "MC-PreServo" and "MC-PostServo" can be added in the project
tree with the command "Add new block".
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 movements
of the drive.
Check your user program in regard to consistency in the drive and encoder connection.
You can find an application example for the use of MC-PreServo and MC-PostServo at:
https://support.industry.siemens.com/cs/document/109741575
(https://support.industry.siemens.com/cs/document/109741575)
See also
PROFIdrive frame (Page 201)
Configuration - Drive - PROFIdrive (Page 77)
Configuration - Encoder - Encoder on PROFINET/PROFIBUS (Page 79)
Data connection drive with analog drive connection (Page 36)
Organization Blocks for Motion Control (Page 38)
Program MC-PostServo
Assign the variable of the data block to the variable of the analog output in the MC-
PostServouser program.
At the end of MC-PostServo, the output area of "TPA OB Servo" is written to the I/O.
WARNING
Improper manipulation of the drive setpoint may endanger humans and machines.
Take adequate precautions to prevent danger to humans and machines.
Description
When you create a "Positioning axis" technology object with a PROFIdrive drive or with an
analog drive interface, organization blocks for processing the technology objects are created
automatically. 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
Optionally, you can still use the following organizational blocks:
● MC-PreServo [OB67]
For example: Preparation of the telegram contents from the drive system.
● MC-PostServo [OB95]
For example: Preparation of the setpoints for the drive system.
The organizational blocks MC-Servo [OB91] and MC-Interpolator [OB92], in contrast to MC-
PreServo [OB67] and MC-PostServo [OB95] 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 Motion Control application cycle and the priority of the organization blocks
according to your requirements for control quality and system load.
Organization blocks MC-PreServo [OB67] and MC-PostServo [OB95] are programmable and
are called in the configured application cycle. MC-PreServo [OB67] is called directly before
MC-Servo [OB91]. MC-PostServo [OB95] is called directly after MC-Servo [OB91].
See also
Data connection PROFIdrive drive/PROFIdrive encoder (Page 30)
Overflows
If the set application cycle is not adhered to, for example because the application cycle is too
short, overflows can occur.
An overflow of the MC-Servo [OB91], MC-Interpolator [OB92], MC_PreServo [OB67] and
MC_PostServo [OB95] is entered in the diagnostic buffer of the CPU and results in setting
the CPU to STOP.
MC-PreServo, MC-Servo, MC-PostServo and MC-Interpolator are stopped. If necessary, you
can evaluate the entry in the diagnostic buffer via a time error OB (OB80).
① POWER ON → STOP
② STOP → STARTUP
③ STARTUP → RUN
④ RUN → STOP
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 of the position-controlled axes 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 of the position-controlled axes are updated.
RUN mode
The user program is processed in RUN mode.
In RUN mode, the Motion Control commands programmed in OB1 are called and processed
cyclically (other execution levels are possible).
The technology data blocks are updated.
Hardware limit switches are limit switches that limit the maximum "permitted traversing
range" of the axis. Hardware limit switches are physical switching elements that must be
connected to interrupt-capable inputs of the CPU.
Software limit switches limit the "working range" of the axis. They should fall inside the
hardware limit switches relative to the traversing range. Since the positions of the software
limit switches can be flexibly set, the working range of the axis can be adapted on an
individual basis, depending on the current traversing profile. In contrast to hardware limit
switches, software limit switches are implemented exclusively via the software and do not
require their own switching elements.
Hardware and software limit switches must be activated prior to use in the configuration or in
the user program. Software limit switches are only active after homing the axis.
See also
CPU outputs relevant for motion control (Page 15)
How the pulse interface works (Page 19)
Relationship between the signal type and the direction of travel (Page 19)
Jerk limit (Page 44)
Homing (Page 45)
Integration of the positioning axis technology object (Page 63)
Tools of the positioning axis technology object (Page 66)
Position limits (Page 87)
The jerk limit gives a "smoothed" velocity profile of the axis motion. This ensures, for
example, soft starting and braking of a conveyor belt.
See also
Behavior of the axis when using the jerk limit (Page 96)
CPU outputs relevant for motion control (Page 15)
How the pulse interface works (Page 19)
Relationship between the signal type and the direction of travel (Page 19)
Hardware and software limit switches (Page 43)
Homing (Page 45)
Integration of the positioning axis technology object (Page 63)
Tools of the positioning axis technology object (Page 66)
2.5 Homing
Homing means matching the axis coordinates of the technology object to the real, physical
location of the drive. For position-controlled axes the entries and displays for the position
refer exactly to these axis coordinates. Therefore, agreement between the axis coordinates
and the real situation is extremely important. This step is necessary to ensure that the
absolute target position of the axis is also achieved exactly with the drive.
In the S7-1200 CPU, axis homing is implemented with the motion control instruction,
"MC_Home". The "Homed" status is displayed in the tags of the technology object <Axis
name>.StatusBits.HomingDone . The following homing modes exist:
Homing modes
● Active homing
In active homing mode, the motion control instruction "MC_Home" performs the required
reference point approach. When the homing switch is detected, the axis is homed
according to the configuration. Active traversing motions are aborted.
● Passive homing
During passive homing, the "MC_Home" Motion Control instruction does not carry out any
homing motion. The traversing motion required for this must be implemented by the user
via other Motion Control instructions. When the homing switch is detected, the axis is
homed according to the configuration. Active traversing motions are not aborted upon
start of passive homing.
● Direct homing absolute
The axis position is set regardless of the homing switch. Active traversing motions are not
aborted. The value of input parameter "Position" of motion control instruction "MC_Home"
is set immediately as the reference point of the axis.
● Direct homing relative
The axis position is set regardless of the homing switch. Active traversing motions are not
aborted. The following statement applies to the axis position after homing:
New axis position = current axis position + value of parameter "Position" of instruction
"MC_Home".
See also
CPU outputs relevant for motion control (Page 15)
How the pulse interface works (Page 19)
Relationship between the signal type and the direction of travel (Page 19)
Hardware and software limit switches (Page 43)
Jerk limit (Page 44)
Integration of the positioning axis technology object (Page 63)
Tools of the positioning axis technology object (Page 66)
Homing (positioning axis technology object as of V2) (Page 99)
Requirements
To use the positioning axis technology object, a project with a CPU S7-1200 must be
created.
Procedure
Follow the steps below in the order given to use motion control with the CPU S7-1200. Use
the following links for this purpose:
1. Adding a positioning axis technology object (Page 68)
2. Working with the configuration dialog (Page 69)
3. Download to CPU (Page 162)
4. Function test of the axis in the commissioning window (Page 164)
5. Programming (Page 172)
6. Diagnostics of the axis control (Page 196)
Technology version
You can check the currently selected technology version in the "Instructions" task card in the
folder "Technology > Motion Control" and in the "Technology object > Add new object"
dialog.
Select the technology version in the "Instructions" task card in the folder
"Technology > Motion Control".
If a technology object with an alternative version is added in the "Add new object" dialog, the
technology version will also be changed.
Note
The selection of an alternative technology version will also affect the Motion Control
Instructions version (task card).
The technology objects and Motion Control instructions will only be converted to the selected
version upon compilation or "Download to device".
Compatibility list
See also
Changing a technology version (Page 53)
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
Status of limit switch (Page 62)
Note
Compatibility of the technology object tags
When switching between V1...3 and ≥ V4, please see the compatibility list (Page 54) when
using tags of the technology object in the user program, monitoring tables, etc. .
See also
Overview of versions (Page 48)
Status of limit switch (Page 62)
See also
Overview of versions (Page 48)
Changing a technology version (Page 53)
Tags of the positioning axis technology object V4...5 (Page 406)
Telegrams V6 <-> V7
V1...3 V4 or higher
<Axis name>.ErrorBits.HwLimitMin <Axis name>.ErrorBits.HWLimit AND <Axis
name>.StatusBits.HWLimitMinActive
<Axis name>.ErrorBits.HwLimitMax <Axis name>.ErrorBits.HWLimit AND <Axis
name>.StatusBits.HWLimitMaxActive
<Axis name>.ErrorBits.SwLimitMinReached <Axis name>.ErrorBits.SWLimit AND (<Axis name>.Position
= <Axis name>.PositioningLimits_SW.MinPosition)
<Axis name>.ErrorBits.SwLimitMinExceeded <Axis name>.ErrorBits.SWLimit AND (<Axis name>.Position
< <Axis name>.PositioningLimits_SW.MinPosition)
<Axis name>.ErrorBits.SwLimitMaxReached <Axis name>.ErrorBits.SWLimit AND (<Axis name>.Position
= <Axis name>.PositioningLimits_SW.MaxPosition)
<Axis name>.ErrorBits.SwLimitMaxExceeded <Axis name>.ErrorBits.SWLimit AND (<Axis name>.Position
> <Axis name>.PositioningLimits_SW.MaxPosition)
See also
Overview of versions (Page 48)
Changing a technology version (Page 53)
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
CPU hardware
The physical drive is controlled and monitored by the CPU hardware.
Drive
The drive represents the unit of power unit and motor. You can use stepper motors and
servo motors with pulse, PROFIdrive or analog interfaces.
User program
You start Motion Control instructions jobs in the CPU firmware with the user program. The
following jobs for controlling the axis are possible:
● Enable and disable axis
● Position axis absolutely
● Position axis relatively
● Move axis with velocity set point
● Run axis commands as movement sequence (technology as of V2, PTO only)
● Moving axes in jog mode
● Stop axis
● Reference axis; set reference point
● Change dynamic settings of axis
● Continuously read motion data of the axis
● Read and write variable of the axis
● Acknowledge error
You determine the command parameters with the input parameters of the Motion Control
instructions and the axis configuration. The output parameters of the instruction give you up
to date information about the status and any errors of the command.
Before starting a command for the axis, you must enable the axis with the Motion Control
instruction "MC_Power".
You can read out configuration data and current axis data with the variables of the
technology object. You can change individual, changeable variables of the technology object
(e.g. the current acceleration) from the user program.
You can also change the dynamic settings of the axis with the Motion Control instruction
"MC_ChangeDynamic" and write additional configuration data with "MC_WriteParam". You
can read the current motion status of the axis with the Motion Control instruction
"MC_ReadParam".
CPU firmware
The motion control jobs started in the user program are processed in the CPU firmware.
When using the axis control panel, Motion Control jobs are triggered by operating the axis
control panel. The CPU firmware performs the following jobs depending on the configuration:
● Calculate the exact motion profile for motion jobs and emergency stop situations
● Position control for drive connection via PROFIdrive/analog drive connection
● Control of the pulse and direction signal for drive connection via PTO
● Control of the drive enable
● Monitoring of the drive and the hardware and software limit switches
● Up to date feedback of status and error information to the Motion Control instructions in
the user program
● Writing of current axis data into the data block of the technology object
See also
Tags of the positioning axis technology object V6...7 (Page 288)
CPU outputs relevant for motion control (Page 15)
Relationship between the signal type and the direction of travel (Page 19)
Tools of the positioning axis technology object (Page 66)
Hardware and software limit switches (Page 43)
Homing (Page 45)
② Drive control via the technology object. Read the axis status for display in the axis control panel. Optimization of the
position control
③ Readout of the current status and error information of the technology object
Additional telegram information is displayed for PROFIdrive drives.
Configuration
Use the "Configuration" tool to configure the following properties of the positioning axis
technology object:
● Selection of the PTOs (Pulse Train Output)/PROFIdrive drives/analog outputs to be used
and configuration of the drive interface
● Properties of the mechanics and the transmission ratio of the drive (or machine/plant)
● Properties of the position limits and the position monitoring
● Properties of the dynamics and the homing
● Parameters of the control loop
Save the configuration in the data block of the technology object.
Commissioning
Use the "Commissioning" tool to test the function of your axis without having to create a user
program. When the tool is started, the axis control panel will be displayed. The following
commands are available on the axis control panel:
● Enabling and disabling the axis
● Move axis in jog mode
● Position axis in absolute and relative terms
● Home axis
● Acknowledge errors
The dynamic values can be adjusted accordingly for the motion commands. The axis control
panel also shows the current axis status.
With drive connection via PROFIdrive / analog output, tuning supports you in determining the
optimal gain for the control loop.
Diagnostics
Use the "Diagnostics" tool to keep track of the current status and error information for the
axis and drive.
See also
CPU outputs relevant for motion control (Page 15)
Relationship between the signal type and the direction of travel (Page 19)
Integration of the positioning axis technology object (Page 63)
Hardware and software limit switches (Page 43)
Homing (Page 45)
Configuring the positioning axis technology object (Page 69)
Axis control panel (Page 164)
Axis - Diagnostics (Page 196)
Requirements
A project with a CPU S7-1200 has been created.
Procedure
To add a positioning axis technology object in the project tree, follow these steps:
1. Open the "CPU > Technology objects" folder in the project tree.
2. Double-click the "Add new object" command.
The "Add new object" dialog opens.
3. Select the "Motion Control" technology.
4. Open the "Motion Control" folder.
5. Select the desired technology version in the "Version" column.
6. Select the "TO_PositioningAxis" object.
7. Enter the name of the axis in the "Name" input box.
8. To change the automatically assigned data block number, select the "Manual" option.
9. To display additional information about the technology object, click "Additional
information".
10.Confirm your entry with "OK".
Result
The new technology object is created and saved to the "Technology objects" folder in the
project tree.
The organization blocks MC-Servo [OB91] and MC-Interpolator [OB92] are automatically
created in the "Program blocks" folder. The technology objects are processed in these
organization blocks. The position controller is calculated in the MC-Servo [OB91]. The
MC-Interpolator [OB92] takes over the evaluation of the Motion Control instructions, the
setpoint generation and the monitoring functionality.
See also
Guidelines on use of motion control (Page 47)
See also
Guidelines on use of motion control (Page 47)
Basic parameters (Page 71)
Extended parameters (Page 84)
Icon Description
Start value in CPU matches the configured Start value in the project
Start value in CPU does not match the configured Start value in the project
A comparison of the start value in the CPU with the configured start value in the project
cannot be performed because the selected CPU module does not support this compar-
ison.
The value is not comparable with any significance since it is not relevant in one of the
configurations.
Use the button to show the start value of the CPU and the start value of the project for
the respective parameter.
The actual value and the start value in the project can be changed directly and then
downloaded to the CPU. The change of the actual value is transferred directly to the CPU for
directly modifiable parameters.
Axis name
Define the name of the axis or the name of the positioning axis technology object in this field.
The technology object is listed under this name in the project tree.
Drive
Select the type of drive connection:
● PTO (Pulse Train Output)
The drive is connected via a pulse generator output, an optional enable output and an
optional ready input.
● Analog drive connection
The drive is connected via an analog output, an encoder, an optional enable output and
an optional ready input.
All movements of the axis are position-controlled.
● PROFIdrive
The drive is connected via PROFINET/PROFIBUS. Communication between controller
and drive is by means of PROFIdrive telegrams.
All movements of the axis are position-controlled.
If you select the "Analog drive connection" or "PROFIdrive", additional elements are added
to the navigation of the configuration:
● Encoder
● Modulo
● Position supervisions (positioning supervision, following error and standstill signal)
● Control loop
In the additional configuration windows, you configure the encoders that are to be connected
and the resulting options for position control and position monitoring.
Note
Select the drive connection and the measurement unit of the position at the beginning of the
axis configuration.
With a subsequent change, the parameters are reset or re-initialized, which requires you to
check the parameters of the configuration dialogs once again.
You may have to adapt the values of the input parameters of the Motion Control instructions
to the new unit of measurement in the user program.
Simulation
In the drop-down list, select whether or not the drive and the encoder are to be simulated.
The simulation can be selected for the analog drive connection or for a PROFIdrive drive.
The configuration of the drive and encoder hardware is not required for simulation mode
(potential errors in the drive and encoder configuration are ignored).
Application: The drive is simulated, for example, for commissioning and later operated with
the hardware that may be configured.
The "Simulation" operating mode can be changed during runtime of the user program with a
download and then MC_Reset with parameter "Restart" = TRUE.
In simulation mode, setpoints are not output to the drive and actual values are not read in
from the drive/encoder. Hardware limit switches and homing switches have no effect.
The following table shows Motion Control instructions with adapted behavior in simulation
mode.
PTO drives work without control loop. No separate simulation function is required in order to
simulate a PTO drive when the PTO drive is not connected.
See also
CPU outputs relevant for motion control (Page 15)
Relationship between the signal type and the direction of travel (Page 19)
Configuration - General ("Axis" technology object V1...3) (Page 333)
Hardware interface
The pulses are output to the power unit of the drive by fixed assigned digital outputs.
In CPUs with relay outputs, the pulse signal cannot be output at these outputs because the
relays do not support the necessary switching frequencies. To be able to work with the PTO
(Pulse Train Output) on these CPUs, you must use a signal board with digital outputs.
opens the device configuration of the CPU.
Note
The PTO requires the functionality of a high-speed counter (HSC). An internal HSC is used
for this, the count of which cannot be evaluated.
Pulse generator
In the drop-down list, select the PTO (Pulse Train Output) to control the stepper motor or
servo motor by means of pulse interface. If you have not used the pulse generators and
high-speed counters elsewhere in the device configuration, the hardware interface can be
configured automatically. In this case, the PTO selected in the drop-down list is displayed
with a white background.
If PTO (PulseTrain Output) is selected, the "Device configuration" button takes you to the
parameter assignment of the pulse options in the device configuration of the CPU. This may
be necessary if there is a conflict because the PTO is being used at the other end or the
parameters have been changed by the user.
Signal type
Select the signal type in the drop-down list. The following signal types are available:
● PTO (pulse A and direction B)
A pulse output and a direction output are used for controlling the stepper motor.
● PTO (clock up A and clock down B)
One pulse output each for motion in positive direction and negative direction is used for
controlling the stepper motor.
● PTO (A/B phase-shifted)
Both pulse outputs for Phase A and for Phase B run at the same frequency.
The period of the pulse outputs is evaluated at the drive end as a step.
The phase offset between Phase A and Phase B determines the direction of the motion.
● PTO (A/B phase offset - quadruple)
Both pulse outputs for Phase A and for Phase B run at the same frequency.
All positive edges and all negative edges of Phase A and Phase B are evaluated as a
step at the drive end.
The phase offset between Phase A and Phase B determines the direction of the motion.
The following table shows the parameters to be configured depending on the signal type:
Hardware interface
The speed setpoint is output to the power unit of the drive by means of permanently
assigned analog outputs.
Configure the inputs and outputs for the control of the drive in this area:
● Analog output
In this field, select the PLC variable of the analog output via which the drive is controlled.
When you open the autocompletion, all output addresses are displayed with 16 bits
(WORD, INT, UINT). The variable of a data block with the WORD data type can be
selected for data connection via a data block.
You can also enter an address, for example QW20. If the address is valid, the name
"Axis_1_AnalogOutput" is generated for this address and inserted in the variable table.
For the address to be valid, it needs to be occupied by the appropriate data type and a
HW module. opens the device configuration of the analog output.
● Selection of enable output
Select an available output as the enable output for the drive enable in this field.
● Selection of ready input
Select the ready input for the "Drive ready" feedback of the drive in this field
Drive enable is controlled by Motion Control instruction "MC_Power" and enables power to
the drive. The drive signals "Drive ready" to the CPU if it is ready to start executing
movement after receiving the drive enable. If the drive does not have any interfaces of this
type, you do not have to configure the parameters. In this case, select the value TRUE for
the ready input.
See also
Data connection drive with analog drive connection (Page 36)
Note
Automatic transfer of drive parameters is only possible with SINAMICS drives as of V4.x.
For this, "Drive" must be selected as the data connection in the configuration window.
See also
Data connection PROFIdrive drive/PROFIdrive encoder (Page 30)
Automatic transfer of drive and encoder parameters in the device (Page 25)
Encoder connection
Depending on the selection of the encoder connection, you configure various parameters in
the "Encoder" configuration window. The following encoder connections are possible:
● Encoder on high-speed counter (HSC) (Page 82)
● PROFIdrive encoder on PROFINET/PROFIBUS (encoder on drive, encoder on
technology module, PROFIdrive encoder) (Page 79)
Encoder selection
In the "PROFIdrive encoder" box, select a PROFIdrive encoder on PROFINET.
● 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.
● PROFIdrive encoder/data block
Select a previously configured PROFIdrive encoder in this configuration field.
opens the device configuration of the encoder. The following encoders can be
selected:
– Connection to drive (not with analog drive connection)
The encoder is connected to the drive. The encoder signals are evaluated by the drive
and transmitted to the controller as part of the drive telegram (telegram 3 or 4) (the
encoders of the telegrams from other drives cannot be used).
The encoder is configured using the configuration of the PROFIdrive drive.
– Encoder on technology module (TM)
Select a previously configured technology module and the channel to be used. Only
technology modules set to the "Position input for Motion Control" mode are displayed
for selection.
If no technology module is available for selection, change to the device configuration
and add a technology module.
You can identify the technology modules suitable for position detection for Motion
Control in the documentation for the technology module and the catalog data.
– PROFIdrive encoder on PROFINET/PROFIBUS (PROFIdrive)
In the "PROFIdrive encoder" field, select a previously configured encoder on
PROFINET/PROFIBUS. Switch to the device configuration in the network view and
add an encoder, in the event that no encoder is offered for selection.
If "Data block" was selected for the data connection, a previously created data block
containing a tag structure of data type "PD_TELx" must be selected here ("x" stands for
the telegram number to be used by which the encoder is connected). The encoder of the
selected drive telegram (Tel 3 or 4) or a separate encoder (Tel 81 or 83) can be used.
opens the DB Editor.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as
of product version A16. For this, "Encoder" must be selected as the data connection in
the configuration window.
A product version > V4.x is required to use an encoder on the SINAMICS drive.
Encoder type
Set the employed encoder type in the "Encoder type" box. The following encoder types can
be selected:
● Linear incremental
● Linear absolute
● Rotary incremental
● Rotary absolute
Configure the various parameters depending on the selected encoder type. Depending on
the selected encoder type, configure the following parameters:
See also
Data connection PROFIdrive drive/PROFIdrive encoder (Page 30)
Configuring technology modules for Motion Control (Page 135)
HSC interface
Select the operating mode of the high-speed counter in the "Operating mode" box.
Depending on the operating mode, configure the various inputs:
Encoder type
Select the encoder type in the "Encoder type" box. The following encoder types can be
selected:
● Linear incremental
● Rotary incremental
Configure the various parameters depending on the selected encoder type. Depending on
the selected encoder type, configure the following parameters:
5.4.4.1 Mechanics
Invert direction
You can use the "Invert direction" check box to adapt the control system to the direction logic
of the drive.
The direction logic is inverted according to the selected mode of the pulse generator:
● PTO (pulse A and direction B)
– 0 V at direction output ⇒ positive direction of rotation
– 5 V/24 V at direction output ⇒ negative direction of rotation
The specified voltage depends on the hardware used. The indicated values do not apply
to the differential outputs of CPU 1217.
● PTO (clock up A, clock down B)
The outputs "Pulse output down" and "Pulse output up" are swapped.
● PTO (A/B phase-shifted)
The "Phase A" and "Phase B" outputs are swapped.
● PTO (A/B phase offset - quadruple)
The "Phase A" and "Phase B" outputs are swapped.
Position parameters
Depending on the selected encoder installation type, configure the following position
parameters:
Enable modulo
Select the "Enable modulo" check box to use a recurring reference system for the axis (for
example, 0.0° to 359.9°).
Modulo length
In this field, define the length of the modulo range (for example, 360°).
See also
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
See also
Configuration - Position limits (Page 87)
Response of the axis when position limits are triggered (Page 89)
Changing the configuration of the position limits in the user program (Page 91)
Note
Activated software limit switches act only on a homed axis.
Note
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.
Select level
In the drop-down list, select the signal level available at the CPU when the hardware limit
switch is approached.
● Selection of "Low level" (normally closed contact)
0 V (FALSE) at CPU input corresponds to hardware limit switch approached
● Selection of "High level" (normally open contact)
5 V / 24 V (TRUE) at the CPU input = hardware limit switch approached (the actual
voltage depends on the hardware used)
Enter the position value of the low and high software limit switch in these boxes.
Limits (independent of the selected unit of measurement):
● -1.0E12 ≤ Low SW limit switch ≤ 1.0E12
● -1.0E12 ≤ High software limit switch ≤ 1.0E12
The value of the software high limit switch must be greater than or equal to the value of the
software low limit switch.
See also
Requirements for hardware limit switches (Page 87)
Response of the axis when position limits are triggered (Page 89)
Changing the configuration of the position limits in the user program (Page 91)
Configuration - Homing - Active (Page 99)
The "HW limit switch approached" error is displayed in the initiating Motion Control
instruction, at "MC_Power", and in the technology object variables. Instructions for
eliminating errors can be found in the Appendix under "List of ErrorIDs and ErrorInfos".
The "SW limit switch approached" error is displayed in the initiating Motion Control
instruction, at "MC_Power", and in the technology object variables. Instructions for
eliminating errors can be found in the Appendix under "List of ErrorIDs and ErrorInfos".
When a software limit switch is overtraveled, the axis behaves differently depending on the
drive connection:
● Drive connection via PROFIdrive / analog output
When a software limit switch is overtraveled, the axis is disabled and, depending on the
configuration, braked at the drive and brought to a standstill.
● Drive connection via PTO (Pulse Train Output)
You can learn about the behavior of the axis when a software limit switch is overtraveled
in the sections "Software limit switches in conjunction with a homing operation
(Page 254)" and "Software limit switches in conjunction with dynamic changes
(Page 258)".
Use additional hardware limit switches if a mechanical endstop is located after the software
limit switches and there is a risk of mechanical damage.
See also
Requirements for hardware limit switches (Page 87)
Configuration - Position limits (Page 87)
Changing the configuration of the position limits in the user program (Page 91)
See also
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
Requirements for hardware limit switches (Page 87)
Configuration - Position limits (Page 87)
Response of the axis when position limits are triggered (Page 89)
5.4.4.4 Dynamics
Note
Rounding error
If you select a different unit in the "Unit of velocity limitation" drop-down list than in
"Configuration > Basic parameters > General", note that a rounding error may occur.
You can learn about the limits for the technology object positioning axis < V4 in the appendix
Outputs of the CPU relevant for Motion Control (technology version V1...3) (Page 329).
The value of the maximum velocity must be greater or equal to the value of the start/stop
velocity.
The limits for other units of measurement must be converted by the user to conform to the
given mechanics.
Motion jobs started in the user program are performed with the selected acceleration /
deceleration.
The limits for acceleration and deceleration with drive connection via PTO (Pulse Train
Output) can be found in section CPU outputs relevant for motion control (Page 15).
Note
Changes to the velocity limits ("start/stop velocity" and "maximum velocity") influence the
acceleration and deceleration values of the axis. The ramp-up and ramp-down times are
retained.
Note
The check box is no longer displayed as a parameter in the technology data block as of V4.
By disabling the check box, the jerk value is set to 0.0.
Note
Smoothing time V2...3
The set smoothing time visible in the configuration only applies to the acceleration ramp.
If the values for acceleration and deceleration differ, the smoothing time of the
deceleration ramp is calculated according to the jerk of the acceleration ramp and used.
(See also Behavior of the axis when using the jerk limit (Page 96)
The smoothing time of the deceleration is adapted as follows:
• Acceleration > deceleration
The smoothing time used for the deceleration ramp is shorter than that for the
acceleration ramp.
• Acceleration < deceleration
The smoothing time used for the deceleration ramp is greater than that for the
acceleration ramp.
• Acceleration = deceleration
The smoothing times of the acceleration and deceleration ramp are equal.
The relation between smoothing times and jerk is shown in the following equation:
Motion jobs started in the user program are performed with the selected jerk.
The limits for jerk with drive connection via PTO (Pulse Train Output) can be found in section
CPU outputs relevant for motion control (Page 15).
For PROFIdrive drives and drives with analog drive interface, the limit is 1E12.
See also
Behavior of the axis when using the jerk limit (Page 96)
Hardware components for motion control (Page 12)
CPU outputs relevant for motion control (Page 15)
Configuration - Dynamics - Emergency stop (Page 95)
Changing the configuration of dynamics in the user program (Page 97)
Velocity
The velocity values configured in the "General dynamics" configuration window are once
again displayed in this information area.
Deceleration
Set the deceleration value for emergency stop in the "Emergency deceleration" or
"Emergency stop ramp-down time" field.
The relation between emergency stop ramp-down time and emergency deceleration is
shown in the following equation:
The specified emergency deceleration must be sufficient to bring the axis to a standstill in a
timely manner in the event of an emergency (for example, when the hardware limit switch is
approached prior to reaching the mechanical endstop).
The configured maximum velocity of the axis must be used as a basis for selecting the
emergency deceleration.
Limit values:
The limits indicated below refer to the "Pulses/s2" unit of measurement.
● As of CPU firmware V3
0.005 ≤ emergency deceleration ≤ 9.5E9
● CPU Firmware V1...2
0.28 ≤ emergency deceleration ≤ 9.5E9
The limits for other units of measurement must be converted to conform to the given
mechanics.
The limits for jerk with drive connection via PTO (Pulse Train Output) can be found in section
CPU outputs relevant for motion control (Page 15).
For PROFIdrive drives and drives with analog drive interface, the limit is 1.0E12.
See also
Configuration - Dynamics - General (Page 92)
Changing the configuration of dynamics in the user program (Page 97)
t Time axis
v Velocity
a Acceleration
j Jerk
tru Rampup time
ta Time taken for the axis to accelerate
trd Deceleration time
td Time taken for the axis to decelerate
t1 Smoothing time of the acceleration ramp
t2 Smoothing time of the deceleration ramp
The example shows travel in which the deceleration value ② is twice the acceleration value
①. The resulting ramp-down time trd is therefore only half the length of the ramp-up time tru.
Acceleration ① and deceleration ② change abruptly without a jerk limit. Acceleration ①
and deceleration ② change gradually with activated jerk limiter. As the jerk applies to entire
motion, the rate is the same for the increase and decrease in acceleration and deceleration.
The step value (j) becomes infinitely high ⑤ as soon as the change is made without jerk
limit. The step is limited to the configured value ⑥ when the jerk limit is activated.
The smoothing time t1 given in the configuration applies to the acceleration ramp. The
deceleration ramp smoothing time t2 is calculated from the configured jerk value and the
configured deceleration.
See also
Configuration - Dynamics - General (Page 92)
Note
After changes to this parameter, it may be necessary to adapt the positions of the hardware
limit switches and other safety-relevant settings.
Jerk limit
You can also activate and deactivate the jerk limit at runtime of the user program and
change the value for the jerk. To do this, use the technology object tag <axis
name>.DynamicDefaults.Jerk For technology objects < V4, the tag <axis
name>.Config.DynamicDefaults.JerkActive must be set to TRUE in order to activate the jerk
limitation and in order that a value change is visible/effective at the jerk.
The following applies to PTO axes:
● If you enter a value ≥ 0.004 pulses/s3 for the jerk, the jerk limit is enabled with the
specified value.
● If you enter a value < 0.004 pulses/s3 for the jerk, the jerk limit is disabled.
For position-controlled axes, the jerk limit is disabled for a value of 0.0, and activated for
values > 0.0.
Refer to the description of the technology object variables in the appendix for information on
when changes to the configuration parameter take effect.
See also
Changing configuration of dynamic values in user program ("Axis" technology object V1...3)
(Page 341)
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
Tags of the positioning axis technology object V4...5 (Page 406)
Configuration - Dynamics - General (Page 92)
Configuration - Dynamics - Emergency stop (Page 95)
Digital inputs
In this area, you configure the homing switch:
● Input homing switch
Select the digital input for the homing switch in this field.
Note
The digital inputs are set to a filter time of 6.4 ms by default.
When the digital inputs are used as a homing switch, this can result in undesired
decelerations and thus inaccuracies. Depending on the homing velocity and extent of the
homing switch, the home position may not be detected. The filter time can be set under
"Input filter" in the device configuration of the digital inputs.
The filter time selected must be less than the duration of the pulse of the input signal to
be detected, which is used as the reference point switch.
Note
If possible, use one of the following measures to ensure that the machine does not travel
to a mechanical endstop in the event of a direction reversal:
• Keep the approach velocity low.
• Increase the configured acceleration/deceleration.
• Increase the distance between the hardware limit switch and the mechanical endstop.
Approach/homing direction
With the direction selection, you determine the approach direction used during active homing
to search for the homing switch, as well as the homing direction. The homing direction
specifies the travel direction the axis uses to approach the configured end of the homing
switch to carry out the homing operation.
Approach velocity
In this field, specify the velocity at which the homing switch is to be searched for during the
homing procedure.
Limits (independent of the selected unit of measurement):
● Start/stop velocity ≤ approach velocity ≤ maximum velocity
Homing velocity
In this field, specify the velocity at which the homing switch is to be approached for homing.
Limits (independent of the selected unit of measurement):
● Start/stop velocity ≤ Homing velocity ≤ Maximum velocity
Home position
The position configured in the Motion Control instruction "MC_Home" is used as the home
position.
Digital inputs
In this area, you configure the homing switch:
● Input homing switch
Select the digital input for the homing switch in this field. The input must be interrupt-
capable. The onboard CPU inputs and the inputs of an inserted signal board can be
selected as inputs for the homing switch.
Note
The digital inputs are set to a filter time of 6.4 ms by default.
When the digital inputs are used as a homing switch, this can result in undesired
decelerations and thus inaccuracies. Depending on the homing velocity and extent of the
homing switch, the home position may not be detected. The filter time can be set under
"Input filter" in the device configuration of the digital inputs.
The filter time selected must be less than the duration of the pulse of the input signal to
be detected, which is used as the reference point switch.
● Select level
In the drop-down list, select the level of the homing switch that is to be used for homing.
Home position
The position configured in the Motion Control instruction "MC_Home" is used as the home
position.
Note
If passive homing is carried out without an axis motion command (axis at a standstill),
homing will be executed upon the next rising or falling edge at the homing switch.
See also
Configuration - Homing - General (Axis technology object V2...3) (Page 338)
Passive homing
You can change the end of the homing switch for passive homing during the user program
runtime. Use the following technology object tag for this purpose:
● <Axis name>.Sensor[1].PassiveHoming.SideInput
for changing the side of the homing switch
● <Axis name>.Sensor[1].PassiveHoming.Mode
for changing the homing mode
Refer to the description of the technology object tags (Page 406) in the appendix for
information on when changes to the configuration parameter take effect.
Active homing
You can change the direction of approach, the side of the homing switch, the approach
velocity, the homing velocity, and the home position offset for active homing during the
program runtime of the user program. Use the following technology object tags for this
purpose:
● <Axis name>.Homing.AutoReversal
for changing the auto reverse at the HW limit switch
● <Axis name>.Homing.ApproachDirection
for changing the approach/homing direction
● <Axis name>.Sensor[1].ActiveHoming.SideInput
for changing the side of the homing switch
● <Axis name>.Homing.ApproachVelocity
for changing the approach velocity
● <Axis name>.Homing.ReferencingVelocity
for changing the homing velocity
● <Axis name>.Sensor[1].ActiveHoming.HomePositionOffset
for changing the home position offset
● <Axis name>.Sensor[1].ActiveHoming.Mode
for changing the homing mode
Refer to the description of the technology object tags in the appendix for information on
when changes to the configuration parameter take effect.
See also
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
Positioning window
In this field, configure the size of the positioning window.
Tolerance time
In this field, configure the tolerance time within which the position value must reach the
positioning window.
Following error
In this field, configure the permissible following error for low velocities (without dynamic
adaptation).
Maximum velocity
This box shows the maximum velocity configured under "Dynamics > General".
Standstill window
In this field, configure the size of the standstill window.
5.4.4.7 Configuration - Control loop (PROFIdrive and analog drive connection only)
In the "Control loop" configuration window, configure the precontrol and the gain Kv of the
position control loop.
The Kv factor affects the following parameters:
● Positioning accuracy and stop control
● Uniformity of motion
● Positioning time
The better the mechanical conditions of the axis are (high stiffness), the higher you can
configure the Kv factor. This reduces the following error, and a higher dynamic response is
achieved.
The "Tuning (Page 168)" function supports you in determining the optimum gain for the
position control of the axis.
Precontrol
In this field, configure the velocity precontrol of the position control loop as a percentage.
Function scope
The following functions are available for analyzing the parameters of the technology objects
and for enabling targeted monitoring and modification.
Display functions:
● Display of parameter values in offline and online mode
● Display of status information of the parameters
● Display of value deviations and option for direct correction
● Display of configuration errors
● Display of value changes as a result of parameter dependencies
● Display of all memory values of a parameter: Start value PLC, Start value project, Monitor
value
● Display of the parameter comparison of the memory values of a parameter
Operator control functions:
● Navigation for quickly changing between the parameters and parameter structures.
● Text filter for faster searches for particular parameters.
● Sorting function for customizing the order of parameters and parameter groups to
requirements.
● Memory function for backing up structural settings of the Parameter view.
● Monitoring and modifying of parameter values online.
● Change display format of value.
● Function for saving a snapshot of parameter values of the CPU in order to capture
momentary situations and to respond to them.
● Function for applying a snapshot of parameter values as start values.
● Download of modified start values to the CPU.
● Comparison functions for comparing parameter values with one another.
Validity
The Parameter view described here is available for the following technology objects:
● PID_Compact
● PID_3Step
● PID_Temp
● CONT_C (S7-1500 only)
● CONT_S (S7-1500 only)
● TCONT_CP (S7-1500 only)
● TCONT_S (S7-1500 only)
● TO_Axis_PTO (S7-1200 Motion Control)
● TO_Positioning_Axis (S7-1200 Motion Control)
● TO_CommandTable_PTO (S7-1200 Motion Control)
● TO_CommandTable (S7-1200 Motion Control)
Toolbar
The following functions can be selected in the toolbar of the parameter view.
Navigation
Within the "Parameter view" tab, the following alternative navigation structures can be
selected.
Navigation Explanation
Functional navi- In the functional navigation, the structure of the parameters is
gation based on the structure in the configuration dialog ("Functional
view" tab), commissioning dialog, and diagnostics dialog.
The last group "Other parameters" contains all other parameters
of the technology object.
Data navigation In the data navigation, the structure of the parameters is based on
the structure in the instance DB / technology DB.
The last group "Other parameters" contains the parameters that
are not contained in the instance DB / technology DB.
You can use the "Select navigation structure" drop-down list to toggle the navigation
structure.
Parameter table
The table below shows the meaning of the individual columns of the parameter table. You
can show or hide the columns as required.
● Column "Offline" = X: Column is visible in offline mode.
● Column "Online" = X: Column is visible in online mode (online connection to the CPU).
Requirement
The technology object has been added in the project tree, i.e., the associated instance DB /
technology DB of the instruction has been created.
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.
See also
Default setting of the parameter view (Page 119)
Default settings
To enable you to work efficiently with the Parameter view, you can customize the parameter
display and save your settings.
The following customizations are possible and can be saved:
● Show and hide columns
● Change column width
● Change order of the columns
● Toggle navigation
● Select parameter group in the navigation
● Selection of compare values
Toggle navigation
To toggle the display form of the parameters, follow these steps:
1. Select the desired navigation in the “Select navigation structure” drop-down list.
– Data navigation
– Functional navigation
See also Navigation (Page 115).
Overview
The following table provides an overview of the functions of the Parameter view in online and
offline mode described in the following.
● Column "Offline" = X: This function is possible in offline mode.
● Column "Online" = X: This function is possible in online mode.
Sorting by column
1. Position the cursor in the header cell of the desired column.
The background of this cell turns blue.
2. Click the column header.
Result
The entire parameter table is sorted by the selected column. A triangle with tip facing up
appears in the column header.
Clicking the column header again changes the sorting as follows:
● Symbol “▲”: Parameter table is sorted in ascending order.
● Symbol “▼”: Parameter table is sorted in descending order.
● No symbol: The sorting is removed again. The parameter table assumes the default
display.
The “../“ prefix in the “Name in DB” column is ignored when sorting.
The parameter is inserted with its full name: See information in “Full name in DB” column.
Indicating errors
Error indication
Parameter assignment errors that result in compilation errors (e.g. limit violation) are
indicated in the Parameter view.
Every time a value is input in the Parameter view, a check is made for process-related and
syntax errors and the result is indicated.
Bad 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
● Table field with red background
If you click the bad field, a roll-out error message appears with information of the
permissible value range or the required syntax (format)
Compilation error
From the error message of the compiler, you can directly open the Parameter view
(functional navigation) containing the parameter causing the error in situations where the
parameter is not displayed in the configuration dialog.
Boundary conditions
● If other parameters depend on the parameter whose start value was changed, the start
value of the dependent parameters are also adapted.
● If a parameter of a technology object is not editable, it is also not editable in the
parameter view. The ability to edit a parameter can also depend on the values of other
parameters.
Error indication
When a start value is input, a check is made for process-related and syntax errors and the
result is indicated.
Bad start values are indicated by:
● Red error symbol in the "Status of configuration" (offline mode) or "Compare result"
(online mode, depending on the selected comparison type) columns
and/or
● Red background in the “Start value project” field
If you click on the bad field, a roll-out error message appears with information of the
permissible value range or the necessary syntax (format)
Symbol Meaning
The start value of the parameter corresponds to the default value and is valid. A start
value has not yet been defined by the user.
The start value of the parameter contains a value defined by the user or an automati-
cally adjusted value. The start value is different than the default value. The start value
is error-free and valid.
The start value of the parameter is invalid (syntax or process-related error).
The input box has a red background. When clicked, the roll-out error message indi-
cates the cause of the error.
Only for S7-1200 Motion Control:
The start value of the parameter is valid but contains warnings.
The input box has a yellow background.
The parameter is not relevant in the current configuration.
Requirements
● There is an online connection.
● The technology object is downloaded to the CPU.
● The program execution is active (CPU in "RUN").
● The Parameter view of the technology object is open.
Procedure
1. Start the monitoring by clicking .
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.
Meaning of the additional columns: see Parameter table (Page 116)
2. Stop the monitoring by clicking again.
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.
Requirements
● The Parameter view of the technology object is open.
Procedure
To change the display format of the value, proceed as follows:
1. Select one or more table rows in which you want to change the display format.
2. Select the "Display format" command in the shortcut menu.
3. Select the desired display format.
Note
To change the display format of a certain data type in multiple table rows, sort the Parameter
view by this data type. Then select the first and last table row with this data type while
keeping the <Shift> key pressed and change the display format for the selected table rows.
Requirements
● There is an online connection.
● The technology object is downloaded to the CPU.
● The program execution is active (CPU in "RUN").
● The Parameter view of the technology object is open.
● The “Monitor all” button is selected.
Procedure
To show the current parameter values, follow these steps:
1. In the Parameter view, click the “Create snapshot of monitor values" icon .
Result
The current monitor values are transferred once to the "Snapshot" column of the parameter
table.
You can analyze the values "frozen" in this way while the monitor values continue to be
updated in the "Monitor values" column.
Modifying values
With the Parameter view, you can modify values of the technology object in the CPU.
You can assign values to the parameter once (Modify value) and modify them immediately.
The modify request is executed as quickly as possible without reference to any particular
point in the user program.
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 program execution is active (CPU in "RUN").
● The Parameter view of the technology object is open.
● The “Monitor all” button is selected.
● 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:
1. Enter the desired modify values in the “Modify values” column of the parameter table.
2. Check whether the check box for modifying is selected in the "Select for transmission"
column.
The modify values and associated check boxes of dependent parameters are
automatically adapted at the same time.
3. Click the “Modify all selected parameters immediately and once” icon .
The selected parameters are modified once and immediately with the specified values and
can be monitored in the "Modify values" column. The check boxes for modifying in the
"Selection for transmission" column are automatically cleared after the modify request is
complete.
Error indication
When a start value is input, a check is made immediately for process-related and syntax
errors and the result is indicated.
Bad start values are indicated by:
● Red background in the “Modify value” field
and
● If you click the bad field, a roll-out error message appears with information of the
permissible value range or the necessary syntax (format)
Comparing values
You can use comparison functions to compare the following memory values of a parameter:
● Start value project
● Start value PLC
● Snapshot
Requirements
● There is an online connection.
● The technology object is downloaded to the CPU.
● The program execution is active (CPU in "RUN").
● The Parameter view of the technology object is open.
● The “Monitor all” button is selected.
Procedure
To compare the start values on the various target systems, follow these steps:
1. Click the "Selection of compare values" icon .
A selection list containing the comparison options opens:
– Start value project - Start value PLC (default setting)
– Start value project - Snapshot
– Start value PLC - Snapshot
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 comparison values is not
available (e.g. snapshot).
Comparison of the value is inappropriate since it is not relevant in one of the configura-
tions.
Requirements
● The technology object is of the type "PID_Compact", "PID_3Step" or "PID_Temp".
● There is an online connection.
● The technology object is downloaded to the CPU.
● The program execution is active (CPU in "RUN").
● The Parameter view of the technology object is open.
● The “Monitor all” button is selected.
Procedure
To apply optimized values from the CPU, follow these steps:
1. Click the "Create snapshot of monitor values and accept setpoints of this snapshot as
start values" icon .
Result
The current monitor values are applied to the "Snapshot" column and their setpoints are
copied to the "Start value in project" column as new start values.
Note
Applying values of individual parameters
You can also apply the values of individual parameters that are not marked as a setpoint
from the "Snapshot" column to the "Start values project" column. To do so, copy the values
and insert them into the "Start value in project" column using the "Copy" and "Paste"
commands in the shortcut menu.
DANGER
Danger when changing parameter values
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 reinitialize the setpoints.
Requirements
● The technology object is of the type "PID_Compact", "PID_3Step" or "PID_Temp".
● There is an online connection.
● The technology object is downloaded to the CPU.
● The program execution is active (CPU in "RUN").
● The Parameter view of the technology object is open.
● The “Monitor all” button is selected.
● The parameters marked as " have a "Start value in project" that is free of process-related
and syntax errors.
Procedure
To initialize all setpoints, follow these steps:
1. Enter the desired values in the "Start value in project" column.
Ensure that the start values are free of process-related and syntax errors.
2. Click the icon "Load start values of setpoints as actual values".
Result
The setpoints in the CPU are initialized with the start values from the project.
5.4.6.1 Overview
The following technology modules can be used as the encoder connection in S7-1200
Motion Control.
ET 200MP ET 200 SP
TM Count 2x24V (Page 138) TM Count 1x24V (Page 138)
TM PosInput 2 (Page 136) TM PosInput 1 (Page 136)
See also
TM Count 1x24V / TM Count 2x24V (Page 138)
TM PosInput 1 / TM PosInput 2 (Page 136)
Configuration
Technology module Technology object
TM PosInput 1 / TM PosInput 2 Axis
Basic parameters > Channel 0/1 > Operating mode –
Select "Position input for technology object "Motion Control""
mode
Basic parameters > Channel 0/1 > Module parameters Basic parameters > Encoder
– Encoder connection
Select encoder to PROFINET/PROFIBUS
– Encoder selection
Select "Encoder" data connection and the channel activated
and configured as encoder on the technology module
– Data exchange with encoder
Telegram "DP_TEL83_STANDARD" is automatically select-
ed after the selection of the encoder.
Clear check box "Automatically apply encoder values at
runtime (online)"
Activate check box "Automatically apply encoder values
during configuration (offline)"
If the check box is cleared, you can manually match the
parameters described and identified in this table.
Signal type Encoder type
• Incremental encoder Select encoder type corresponding to configuration for tech-
nology module
• Absolute encoder
Select the version of the measuring system1):
Configuration
Technology module Technology object
TM PosInput 1 / TM PosInput 2 Axis
Signal evaluation Fine resolution
• Single Select fine resolution corresponding to configuration on the
technology module1)
• Double
• Incremental encoder:
• Quadruple
– 0 = Single
– 1 = Double or
– 2 = Quadruple
• Absolute encoder:
– 0 (= single)
– Basic parameters drive > Drive
• Rotary type: Enter reference speed
See also
Overview (Page 135)
TM Count 1x24V / TM Count 2x24V (Page 138)
Configuration
Technology module Technology object
TM Count 1x24V / TM Count 2x24V Axis
Basic parameters > Channel 0/1 > Operating mode –
Select "Position input for technology object "Motion Control""
mode
Basic parameters > Channel 0/1 > Module parameters Basic parameters > Encoder
– Encoder connection
Select encoder to PROFINET/PROFIBUS
– Encoder selection
Select "Encoder" data connection and the channel activated
and configured as encoder on the technology module
– Data exchange with encoder
Telegram "DP_TEL83_STANDARD" is automatically select-
ed after the selection of the encoder.
Clear check box "Automatically apply encoder values at
runtime (online)"
Activate check box "Automatically apply encoder values
during configuration (offline)"
If the check box is cleared, you can manually match the
parameters described and identified in this table.
Signal type Encoder type
Select encoder type corresponding to configuration for tech-
• Incremental encoder
nology module
Select measuring system type1):
Encoder type
• Linear version (incremental or absolute)
• Linear enter distance between increments1)
Distance between two increments
• Rotary version
• Rotary – Incremental: Enter the steps per revolution corre-
Enter increments per revolution sponding to configuration for technology module
(1:1)1)
Configuration
Technology module Technology object
TM Count 1x24V / TM Count 2x24V Axis
Signal evaluation Fine resolution
• Single Select fine resolution corresponding to configuration on the
technology module1)
• Double
• 0 = Single
• Quadruple
• 1 = Double
• 2 = Quadruple
– Basic parameters drive > Drive
• Rotary type: Enter reference speed
See also
Overview (Page 135)
TM PosInput 1 / TM PosInput 2 (Page 136)
Configuration
Configure the following properties of the "Command Table" technology object with the
"Configuration" tool:
● You can create one or more movement sequences by configuring individual jobs.
● You can configure the graphic display to check your movement sequence using an axis
already configured or a configurable default axis.
The movement sequence data are saved in the data block of the technology object.
Requirements
● A project with a CPU S7-1200 has been created.
● The CPU firmware version is V2.1 or higher
Procedure
Proceed as follows to add a "Command table" technology object in the project tree:
1. Open the "CPU > Technology objects" folder in the project tree.
2. Double-click the "Add new object" command.
The "Add new object" dialog opens.
3. Select the "Motion Control" technology.
4. Open the "Motion Control" folder.
5. Select the desired technology version in the "Version" column.
6. Select the "TO_CommandTable" object.
7. Enter the name of the command table in the "Name" input box.
8. To change the automatically assigned data block number, select the "Manual" option.
9. To display additional information about the technology object, click "Additional
information".
10.Confirm your entry with "OK".
Result
The new technology object is created and saved to the "Technology objects" folder in the
project tree.
See also
Guidelines on use of motion control (Page 47)
Basic parameters (Page 144)
Extended parameters (Page 159)
Icon Description
Start value in CPU matches the configured Start value in the project
Start value in CPU does not match the configured Start value in the project
A comparison of the start value in the CPU with the configured start value in the project
cannot be performed because the selected CPU module does not support this compar-
ison.
The value is not comparable with any significance since it is not relevant in one of the
configurations.
Use the button to show the start value of the CPU and the start value of the project for
the respective parameter.
The actual value and the start value in the project can be changed directly and then
downloaded to the CPU. The change of the actual value is transferred directly to the CPU for
directly modifiable parameters.
Name
Define the name of the command table or the name of the "Command table" technology
object in this field. The technology object is listed under this name in the project tree.
See also
Command table configuration (Page 144)
Shortcut menu commands - Command table (Page 148)
Working with the trend diagram (Page 150)
Shortcut menu commands - Curve chart (Page 154)
Transition from "Complete command" to "Blend motion" (Page 156)
Changing the command table configuration in the user program (Page 158)
Note
Small deviations are possible between the time behavior and position in the trend shown and
the real movement of the axis. Movements in response to software limit switches being
reached are not shown.
Enable warnings
Activate the display of warnings in the command table with this check box.
Column: Step
Shows the step number of the command.
Column: Velocity
In this column, you enter the velocity for the selected command:
● Command "Positioning Relative"
The command will move the axis at the given velocity.
The given velocity will not be reached if the travel path selected is not large enough.
● Command "Positioning Absolute"
The command will move the axis at the given velocity.
The given velocity will not be reached if the target position is too close to the starting
position.
● Command "Velocity setpoint"
The command will move the axis at the given velocity.
The given velocity will not be reached during the command if too short a runtime is
selected.
Limit values (independent of the selected user unit):
● For the commands: "Positioning Relative" and "Positioning Absolute"
– 1.0e-12 ≤ velocity ≤ 1.0e12
● For the command: "Velocity setpoint"
– -1.0e12 ≤ velocity ≤ -1.0e-12
– 1.0e-12 ≤ velocity ≤ 1.0e12
– Velocity = 0.0
Column: Duration
Enter the duration of the selected command in this column:
● Command "Velocity setpoint"
The command will move the axis for the specified duration. The duration includes both
the acceleration phase and the constant travel phase. The next command will be
processed once the duration is over.
● Command "Wait"
Waits until the given duration is over.
Limit values (independent of the selected user unit):
● 0.001s ≤ duration ≤ 64800s
See also
Configuration - General (Page 144)
Shortcut menu commands - Command table (Page 148)
Working with the trend diagram (Page 150)
Shortcut menu commands - Curve chart (Page 154)
Transition from "Complete command" to "Blend motion" (Page 156)
Changing the command table configuration in the user program (Page 158)
Cut
Removes the selected lines or content of the selected cell and saves them/it in the clipboard.
Selected lines will be deleted and the subsequent lines of the command table shifted up.
Copy
Copies the selected lines or content of the selected cell and saves them/it in the clipboard.
Paste
● Selected lines:
Pastes the lines from the clipboard into the table above the selected line.
● Selected cell:
Pastes the content of the clipboard into the selected line.
This shortcut menu command can only be executed if there are enough empty lines at the
end of the command table.
Replace
Replaces the selected lines with the lines in the clipboard.
Delete
Deletes the selected lines. The lines below in the command table shift up.
See also
Configuration - General (Page 144)
Command table configuration (Page 144)
Working with the trend diagram (Page 150)
Shortcut menu commands - Curve chart (Page 154)
Transition from "Complete command" to "Blend motion" (Page 156)
Changing the command table configuration in the user program (Page 158)
① Ruler
⑦ Velocity curve
⑩ Start/stop velocity
⑭ Position curve
⑮ Trend view
Selecting commands
Commands can be selected in the trend view and in the command table:
● Click on a point on the velocity or position curve in the trend view. The corresponding
command will be highlighted in the command table.
● Select a command in the command table.
The corresponding section of curve will be highlighted.
① Range which the curve values and / or limits are within. (see selection in the shortcut menu)
You set the position within range ① with the drag cursor.
See also
Configuration - General (Page 144)
Command table configuration (Page 144)
Shortcut menu commands - Command table (Page 148)
Shortcut menu commands - Curve chart (Page 154)
Transition from "Complete command" to "Blend motion" (Page 156)
Changing the command table configuration in the user program (Page 158)
Zoom 100%
Selects a zoom factor which will show 100% of the curve values and / or limits.
Undo zoom
Undoes the last zoom change.
Scaling on trends
Scales the axes so the position and velocity trends are visible.
See also
Configuration - General (Page 144)
Command table configuration (Page 144)
Shortcut menu commands - Command table (Page 148)
Working with the trend diagram (Page 150)
Transition from "Complete command" to "Blend motion" (Page 156)
Changing the command table configuration in the user program (Page 158)
A job with high velocity is appended to a previous position- A job with high velocity is overlapped with a previous posi-
ing job. The positioning job terminates at its target position tioning job. The first positioning job terminates without
at velocity "0". The second job starts from standstill. standstill at its target position. The second job starts with the
new velocity.
Transition from higher to lower velocity Transition from higher to lower velocity
A job with low velocity is appended to a previous positioning A job with low velocity is overlapped with a previous posi-
job. The positioning job terminates at its target position at tioning job. The first positioning job terminates without
velocity "0". The second job starts from standstill. standstill at its target position. The first job starts with the
new velocity.
Transition from lower to higher velocity Transition from higher to lower velocity
See also
Configuration - General (Page 144)
Command table configuration (Page 144)
Shortcut menu commands - Command table (Page 148)
Working with the trend diagram (Page 150)
Shortcut menu commands - Curve chart (Page 154)
Changing the command table configuration in the user program (Page 158)
See also
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
Configuration - General (Page 144)
Command table configuration (Page 144)
Shortcut menu commands - Command table (Page 148)
Working with the trend diagram (Page 150)
Shortcut menu commands - Curve chart (Page 154)
Transition from "Complete command" to "Blend motion" (Page 156)
Acceleration / deceleration
Set the desired acceleration of the default axis in the "Acceleration" field. The desired
deceleration can be set in the "Deceleration" field.
Motion jobs configured in the command table will be calculated with the selected
acceleration / deceleration.
Limit values:
● 1.0E-12 ≤ acceleration ≤ 1.0E12
● 1.0E-12 ≤ deceleration ≤ 1.0E12
Jerk
Set the desired jerk for ramping up and ramping down in the "Jerk" field.
Motion jobs configured in the command table will be calculated with the selected jerk.
Limit values:
● 1.0E-12 ≤ jerk ≤ 1.0E12
The value of the maximum velocity must be greater or equal to the value of the start/stop
velocity.
The value of the software high limit switch must be greater than or equal to the value of the
software low limit switch.
CAUTION
Possible malfunctions of the axis when loading without hardware configuration
The hardware configuration is modified when the following modifications are made to the
axis or encoder configuration:
• Modification of the pulse generator (PTO)
• Modification of the HW limit switch address
• Modification of the homing switch address
• Modification of the address of the PROFIdrive telegram
• Modification of the address of the analog output
• Modification of address of enable output or ready input
If the modified configuration of the axis or encoder is loaded with the shortcut menu
commands "Software" or "Software (all blocks)" without downloading the hardware
configuration, the axis may malfunction as a result.
Ensure that the current hardware configuration is downloaded to the CPU under the listed
conditions.
Also note the following when deleting data blocks and downloading data blocks with
reinitialization:
● The axis must be disabled when downloading a positioning axis technology object.
● When downloading a command table technology object, no MC_CommandTable
command with this command table must be active (parameter "Busy" = FALSE).
● When downloading an MC_Power instance data block, no MC_Power instruction must be
active (parameter "Busy" = FALSE).
From technology version V3.0, Motion Control technology objects (data blocks) can also be
downloaded in CPU RUN mode.
Technology objects lower than V3.0 cannot be downloaded in CPU RUN mode.
Select one of the actions described below to download the modified version of a Motion
Control technology object (from version V3.0) to the work memory:
● Technology object positioning axis and command table
Change the CPU operating mode from STOP to RUN.
● Technology object positioning axis
Disable the axis and execute a "Restart" using the Motion Control instruction
"MC_Reset".
● Technology object command table
Ensure that the command table is not being used. Download the data block of the
command table to the work memory using the extended instruction "READ_DBL".
See also
Guidelines on use of motion control (Page 47)
Note
Response times of the axis control panel
The response time during axis control panel operation depends on the communication load
of the CPU. Close all other online windows of the TIA Portal to minimize the response time.
You can adjust the timeout in the start dialog.
Master control
In this area, you can take over master control of the technology object, or return it to your
user program:
● "Activate" button
With the "Activate" button, you establish an online connection to the CPU and take over
master control for the selected technology object. Note the following when taking over
master control:
– To take over master control, the technology object must be disabled in the user
program.
– Until master control is returned, the user program has no influence on the functions of
the technology object. Motion Control jobs from the user program to the technology
object are rejected with error.
CAUTION
Additional axes in automatic mode
The master control is only applied for the selected technology object. If additional
axes are in automatic mode, dangerous situations may arise as a result.
In this happens, disable all other axes.
● "Deactivate" button
With the "Deactivate" button, you return master control to your user program.
Axis
In this area, enable or disable the technology object for operation with the axis control
panel/optimization:
● "Enable" button
With the "Enable" button, you enable the selected technology object.
● "Disable" button
With the "Disable" button, you disable the selected technology object.
Command
Operation in the "command" area is only possible if the axis is enabled. You can select one
of the following command inputs:
● Jog
This command is equivalent to Motion Control command "MC_MoveJog" in the user
program.
● Positioning
This command is equivalent to the Motion Control commands "MC_MoveAbsolute" and
"MC_MoveRelative" in the user program. The axis must be homed for absolute
positioning.
● Homing
This command is equivalent to Motion Control command "MC_Home" in the user
program.
– The "Set reference point" button corresponds to Mode = 0 (direct homing absolute)
– The "Homing" button corresponds to Mode = 3 (active homing)
For active homing, the homing switch must be configured in the axis configuration.
The values for approach velocity, homing velocity, and reference position offset are taken
from the axis configuration unchanged.
Depending on the selection, the relevant boxes for entry of setpoints and the buttons for
starting the command are displayed.
Select the "Enable jerk limitation" check box to activate the jerk limitation. By default, the jerk
is applied with 10% of the configured value. This value can be changed as required.
Current values
The following actual values of the axis are displayed in this area:
● Position
● Velocity
Axis status
The current axis status and drive status are shown in the "Axis status" area.
The "Info message" box displays advanced information about the status of the axis.
The "Error message" box shows the current error.
Click "Acknowledge" to acknowledge all cleared errors.
Note
Initial values for velocity, acceleration/deceleration and jerk
For safety reasons, the "Velocity", "Acceleration/Deceleration" and "Jerk" parameters are
initialized with values equivalent to only 10% of the configured values when the axis control
panel is activated. The "Jerk" parameter is only used for technology object "Axis" V2.0 and
higher.
The values in the configuration view displayed when you select
"Extended parameters > Dynamics > General" are used for initialization.
The "Velocity" parameter on the axis control panel is derived from the "Maximum velocity"
and the "Acceleration/Deceleration" parameters from "Acceleration" in the configuration.
The "Velocity", "Acceleration/deceleration" and "Jerk" parameters can be changed in the axis
control panel. This does not affect the values in the configuration.
See also
Guidelines on use of motion control (Page 47)
8.2 Tuning
The movement of axes with drive connection via PROFIdrive/analog output is position-
controlled.
The "Tuning" function supports you in determining the optimal gain (Kv factor) for the control
loop (Page 110) 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. Then you
can evaluate the recording, and adapt the gain accordingly. It is recommended to disable
any other online communication when the axis control panel and the optimization is in use in
order to keep the response times as short as possible.
The "Tuning" function for the positioning axis technology object can be found in the project
tree under "Technology object > Commissioning".
The "Tuning" dialog is divided into the following areas:
● Master control
● Axis
● Axis status
● Optimize gain setting
● Run measurement
● Trace
Note
No transfer of the parameters
The configured parameter values are discarded after master control is returned. Transfer the
values as needed into your configuration.
Start of optimization
The trace is started at the same time the optimization starts. A timeout can be adapted in the
start dialog for this.
Master control
In this area, you can take over master control of the technology object, or return it to your
user program:
● "Activate" button
With the "Activate" button, you establish an online connection to the CPU and take over
master control for the selected technology object. Note the following when taking over
master control:
– To take over master control, the technology object must be disabled in the user
program.
– Until master control is returned, the user program has no influence on the functions of
the technology object. Motion Control jobs from the user program to the technology
object are rejected with error.
CAUTION
Additional axes in automatic mode
The master control is only applied for the selected technology object. If additional
axes are in automatic mode, dangerous situations may arise as a result.
In this happens, disable all other axes.
● "Deactivate" button
With the "Deactivate" button, you return master control to your user program.
Axis
In this area, enable or disable the technology object for operation with the axis control
panel/optimization:
● "Enable" button
With the "Enable" button, you enable the selected technology object.
● "Disable" button
With the "Disable" button, you disable the selected technology object.
Axis status
The current axis status and drive status are shown in the "Axis status" area.
The "Info message" box displays advanced information about the status of the axis.
The "Error message" box shows the current error.
Click "Acknowledge" to acknowledge all cleared errors.
Run measurement
Perform the test steps in this area:
● "Forward" button
With the "Forward" button, you start a test step for optimization in the positive direction.
● "Backward" button
With the "Backward" button, you start a test step for optimization in the negative direction.
● "Stop" button
You can use the "Stop" button to end the current movement for optimization and end
trace recording.
Trace
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 will find a full description of the Trace function in the section on using the trace and logic
analyzer function in the TIA Portal help.
See also
Creating a user program (Page 173)
Programming notes (Page 177)
Behavior of the Motion Control commands after POWER OFF and restart (Page 179)
Monitoring active commands (Page 180)
Error displays of the Motion Control statements (Page 191)
Requirement
● The technology object has been created and configured without errors.
Before creating and testing the user program, it is advisable to test the function of the axis
and the corresponding parts of the system with the axis command table.
Procedure
Proceed as follows to create the user program in accordance with the principles described
below:
1. In the project tree, double-click your code block (the code block must be called in the
cyclic program).
The code block is opened in the programming editor and all available instructions are
displayed.
2. Open the "Technology" category and the "Motion Control" folder.
3. Use a drag-and-drop operation to move the "MC_Power" instruction to the desired
network of the code block.
The dialog box for defining the instance DB opens.
4. In the next dialog box, select from the following alternatives:
Single instance
Click "Single instance" and select whether you want to define the name and number of
the instance DB automatically or manually.
Multi-instance
Click "Multi-instance" and select whether you want to define the name of the multi-
instance automatically or manually.
5. Click "OK".
The Motion Control instruction "MC_Power" is inserted into the network.
Parameters marked with "<???>" must be initialized; default values are assigned to all
other parameters.
Parameters displayed in black are required for use of the Motion Control instruction.
6. Select the technology object in the project tree and drag-and-drop it on <???>.
After the selection of the technology object data block, the following buttons are available:
Click the stethoscope icon if you want to open the diagnostics dialog for the technology
object.
Click the toolbox icon if you want to open the configuration view of the technology object.
Click the arrow down icon to view additional parameters of the Motion Control instruction.
Result
You have created the basic configuration for axis control in the user program.
Initialize the input parameters of Motion Control instructions in other parts of the user
program to initiate the desired jobs for the "Axis" technology object.
Evaluate the output parameters of the Motion Control instructions and the tags of the data
block to track the initiated jobs and the status of the axis.
Refer to the detailed description for details on the parameters of Motion Control instructions.
See also
Overview of the Motion Control statements (Page 172)
Programming notes (Page 177)
Behavior of the Motion Control commands after POWER OFF and restart (Page 179)
Monitoring active commands (Page 180)
Error displays of the Motion Control statements (Page 191)
See also
Overview of the Motion Control statements (Page 172)
Creating a user program (Page 173)
Behavior of the Motion Control commands after POWER OFF and restart (Page 179)
Monitoring active commands (Page 180)
Error displays of the Motion Control statements (Page 191)
Tracking jobs from higher priority classes (execution levels) (Page 251)
9.4 Behavior of the Motion Control commands after POWER OFF and
restart
A POWER OFF or CPU-STOP aborts all active motion control jobs. All CPU outputs,
including pulse and direction outputs, are reset.
After a subsequent POWER ON or CPU restart (CPU RUN), the technology objects and the
motion control jobs will be reinitialized.
All actual data of the technology objects as well as all status and error information of the
previously active motion control jobs are reset to their initial values.
Before the axis can be reused, it must be enabled again using the Motion Control instruction
"MC_Power". If homing is required, the axis must be homed again with Motion Control
instruction "MC_Home". When an absolute encoder is used, homing is retained after
POWER OFF.
See also
Overview of the Motion Control statements (Page 172)
Creating a user program (Page 173)
Programming notes (Page 177)
Monitoring active commands (Page 180)
Error displays of the Motion Control statements (Page 191)
The behavior of the status bits is presented below for various example situations:
"Execute" changes its value to FALSE during processing of "Execute" changes its value to FALSE after completion of
the command the command
① The command is started with a positive edge at the input parameter "Execute". Depending on the programming, "Exe-
cute" can still be reset to the value FALSE during the command, or the value TRUE can be retained until after comple-
tion of the command.
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ With conclusion of the command (for example, for Motion Control instruction "MC_Home": Homing was successful),
output parameter "Busy" changes to FALSE and "Done" to TRUE.
④ If "Execute" retains the value TRUE until after completion of the command, then "Done" also remains TRUE and
changes its value to FALSE together with "Execute".
⑤ If "Execute" has been set to FALSE before the command is complete, "Done" indicates the value TRUE for only one
execution cycle.
Abort command
If the Motion Control command is aborted during execution, this is indicated by the value
TRUE in output parameter "CommandAborted". The signal status of the input parameter
"Execute" influences the display duration at the output parameter "CommandAborted":
"Execute" changes its value to FALSE before the command "Execute" changes its value to FALSE after the command is
is aborted. aborted.
① The command is started with a positive edge at the input parameter "Execute". Depending on the programming, "Exe-
cute" can still be reset to the value FALSE during the command, or the value TRUE can be retained until after comple-
tion of the command.
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ During command execution, the command is aborted by another Motion Control command. If the command is abort-
ed, output parameter "Busy" changes to FALSE and "CommandAborted" to TRUE.
④ If "Execute" retains the value TRUE until after the command is aborted, then "CommandAborted" also remains TRUE
and changes its value to FALSE together with "Execute".
⑤ If "Execute" has been set to FALSE before the command is aborted, "CommandAborted" indicates the value TRUE for
only one execution cycle.
"Execute" changes its value to FALSE before the error oc- "Execute" changes its value to FALSE after the error occurs
curs
① The command is started with a positive edge at the input parameter "Execute". Depending on the programming, "Exe-
cute" can still be reset to the value FALSE during the command, or the value TRUE can be retained until after comple-
tion of the command.
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ An error occurred during command execution. When the error occurs, the output parameter "Busy" changes to FALSE
and "Error" to TRUE.
④ If "Execute" retains the value TRUE until after the error occurs, then "Error" also remains TRUE and only changes its
value to FALSE together with "Execute".
⑤ If "Execute" has been set to FALSE before the error occurs, "Error" indicates the value TRUE for only one execution
cycle.
① The job is started with a positive edge at the "Execute" parameter. Depending on the programming, "Execute" can be
reset to the FALSE value before or after the parameterized velocity has been reached. While the job is active, 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 TRUE value until the "MC_MoveVelocity" command is overridden by another Motion Control
command or stopped by an error.
"Execute" changes its value to FALSE before the command "Execute" changes its value to FALSE after the command is
is aborted. aborted.
① The command is started with a positive edge at the input parameter "Execute". Depending on the programming, "Exe-
cute" can still be reset to the value FALSE during the command, or the value TRUE can be retained until after the
command is aborted.
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ During command execution, the command is aborted by another Motion Control command. If the command is abort-
ed, output parameter "Busy" changes to FALSE and "CommandAborted" to TRUE.
④ If "Execute" retains the value TRUE until after the command is aborted, then "CommandAborted" also remains TRUE
and changes its status to FALSE together with "Execute".
⑤ If "Execute" has been reset to FALSE before the command is aborted, "CommandAborted" indicates the value TRUE
for only one execution cycle.
Note
Under the following conditions, an abort is not indicated in output parameter
"CommandAborted":
The parameterized velocity has been reached, input parameter "Execute" has the value
FALSE, and a new Motion Control command is initiated.
"Execute" changes its value to FALSE before the error oc- "Execute" changes its value to FALSE after the error occurs
curs
① The command is started with a positive edge at the input parameter "Execute". Depending on the programming, "Exe-
cute" can still be reset to the value FALSE during the command, or the value TRUE can be retained until after the
error has occurred.
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ An error occurred during command execution. When the error occurs, the output parameter "Busy" changes to FALSE
and "Error" to TRUE.
④ If "Execute" retains the value TRUE until after the error has occurred, then "Error" also remains TRUE and only
changes its status to FALSE together with "Execute".
⑤ If "Execute" has been reset to FALSE before the error occurs, "Error" indicates the value TRUE for only one execution
cycle.
Note
Under the following conditions, an error is not indicated in output parameter "Error":
The parameterized velocity has been reached, input parameter "Execute" has the value
FALSE, and an axis error occurs (software limit switch is approached, for example).
The error of the axis is only indicated in the "MC_Power" Motion Control instruction.
Jog mode is controlled by input parameter "JogForward" Jog mode is controlled by input parameter "JogBackward".
① The command is started with a positive edge at the input parameter "JogForward" or "JogBackward".
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ When the parameterized velocity is reached, the output parameter "InVelocity" changes to TRUE.
④ When the input parameter "JogForward" or "JogBackward" is reset to the value FALSE, the axis motion ends. The
axis starts to decelerate. As a result, the axis no longer moves at constant velocity and the output parameter "InVe-
locity" changes its status to FALSE.
⑤ If the axis has come to a standstill, the motion control command is complete and the output parameter "Busy" changes
its value to FALSE.
Jog mode is controlled by input parameter "JogForward". Jog mode is controlled by input parameter "JogBackward".
① The command is started with a positive edge at the input parameter "JogForward" or "JogBackward".
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ During command execution, the command is aborted by another motion control command. If the command is aborted,
output parameter "Busy" changes to FALSE and "CommandAborted" to TRUE.
④ When the input parameter "JogForward" or "JogBackward" is reset to the value FALSE, the output parameter "Com-
mandAborted" changes its value to FALSE.
Note
The command abort is indicated in the output parameter "CommandAborted" for only one
execution cycle, if all conditions below are met:
The input parameters "JogForward" and "JogBackward" have the value FALSE (but the axis
is still decelerating) and a new motion control command is initiated.
Jog mode is controlled by input parameter "JogForward". Jog mode is controlled by input parameter "JogBackward".
① The command is started with a positive edge at the input parameter "JogForward" or "JogBackward".
② While the command is active, the output parameter "Busy" indicates the value TRUE.
③ An error occurred during command execution. When the error occurs, the output parameter "Busy" changes to FALSE
and "Error" to TRUE.
④ When the input parameter "JogForward" or "JogBackward" is reset to the value FALSE, the output parameter "Error"
changes its value to FALSE.
Note
An error occurrence is indicated in the output parameter "Error" for only one execution cycle,
if all the conditions below are met:
The input parameters "JogForward" and "JogBackward" have the value FALSE (but the axis
is still decelerating) and a new error occurs (software limit switch is approached, for
example).
● Internal error
When an internal error occurs, the axis is stopped. The errors are indicated in the error-
triggering Motion Control instruction and, in some cases, in the Motion Control instruction
"MC_Power".
A detailed description of the ErrorIDs and ErrorInfos, as well as their remedies, is available in
the Appendix (Page 354).
See also
Overview of the Motion Control statements (Page 172)
Creating a user program (Page 173)
Programming notes (Page 177)
Behavior of the Motion Control commands after POWER OFF and restart (Page 179)
List of ErrorIDs and ErrorInfos (technology objects V4...5) (Page 354)
Monitoring active commands (Page 180)
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 block. If restart-relevant changes are detected during a reload into the CPU,
a restart of the technology object is automatically performed.
If restart-relevant data have been changed in RUN mode by the user program, then the
technology object must be reinitialized by the user in order for the changes to be used.
If changes in the technology data block should also be retained after the restart of the
technology object, then you must write the changes to the start value in load memory using
the extended instruction "WRIT_DBL".
Restart necessary
If a restart of the technology object is necessary, this will be indicated under "Technology
object > Diagnostics > Status and error bits > Status messages > Axis > Restart required",
and in the tag "<Axis name>.StatusBits.RestartRequired" of the technology object.
Example 1
The following table shows the definition 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 another option for transferring the data types of a
technology object. The data type "DB_Any" can be assigned in the program during runtime.
The example shows two options for transferring technology-specific data types to a
corresponding instruction, e.g. "MC_CommandTable", which has been created as a multi-
instance. The first option shows the use of the data type "TO_PositioningAxis". The second
option shows the simply transfer of the command table technology object as a function of the
"cmdTablToUse" input. Depending on the value at the input, one of the three "cmdTablx"
inputs is transferred to the "MC_CommandTable" instruction via "tempCmdTableSel".
The following table shows the declaration of the tags used:
SCL Description
CASE #cmdTablToUse OF
1: #tempCmdTableSel := #cmdTabl1; //Program for scenario 1
2: #tempCmdTableSel := #cmdTabl2; //Program for scenario 2
3: #tempCmdTableSel := #cmdTabl3; //Program for scenario 3
ELSE //Program for all other values
#tempCmdTableSel := #cmdTabl1; //->Default setting 1st command table
END_CASE;
// Call of the "MC_CommandTable" instruction
//with variable transfer of the technology objects
#instMC_CommandTable(Axis:=#axis, //Assignment of axis
CommandTable:=#temCmdTableSel); //Indirect assignment of the command table
Additional information
You can find more program examples using the data type "DB_Any" in the following FAQ:
https://support.industry.siemens.com/cs/ww/en/view/109750880
(https://support.industry.siemens.com/cs/ww/en/view/109750880)
Status messages
Error messages
The output window below shows the first reported and still unacknowledged error.
See also
StatusBits tags V4...5 (Page 427)
ErrorBits tags V4...5 (Page 431)
Diagnostics - Status and error bits ("Axis" technology object V1...3) (Page 351)
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
Motion status (Page 199)
Status Description
Actual position The "Actual position" box indicates the measured position of the axis. If the axis is not homed,
the value indicates the position value relative to the enable position of the axis.
(Tag of the technology object: <axis name>.ActualPosition)
Actual velocity The "Actual velocity" box indicates the measured velocity of the axis.
(Tag of the technology object: <axis name>.ActualVelocity)
Position setpoint The "Position setpoint" box indicates the measured position setpoint of the axis. If the axis is
not homed, the value indicates the position value relative to the enable position of the axis.
(Tag of the technology object: <axis name>.Position)
Velocity setpoint The "Velocity setpoint:" box indicates the calculated velocity setpoint of the axis.
(Tag of the technology object: <axis name>.Velocity)
Target position The "Target position" box indicates the current target position of an active positioning com-
mand or of the axis command table. The value of the "Target position" is only valid during
execution of a positioning command.
(Tag of the technology object: <axis name>.StatusPositioning.TargetPosition)
Remaining travel distance The "Remaining travel distance" box indicates the travel distance currently remaining for an
active positioning command or the axis command table. The "Remaining travel distance" value
is only valid during execution of a positioning command.
(Tag of the technology object: <axis name>.StatusPositioning.Distance)
See also
Tags to position values and velocity values V4...5 (Page 406)
StatusPositioning tags V4...5 (Page 424)
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
Tags for position values and velocity values as of V6 (Page 290)
MotionStatus tags V1...3 (Page 400)
Status and error bits (technology objects as of V4) (Page 196)
See also
DynamicDefaults tags V4...5 (Page 416)
Compatibility list of variables V1...3 <-> V4...5 (Page 54)
"Drive" area
This area displays the following parameters contained in the PROFIdrive telegram from the
drive to the controller:
● Status words "SW1" and "SW2"
● The setpoint speed that was output to the drive (NSET)
● The actual speed that was signaled from the drive (NACT)
"Encoder" area
This area displays the following parameters contained in the PROFIdrive telegram from the
encoder to the controller:
● Status word "G1_ZSW"
● The actual position value "G1_XIST1" (cyclic actual encoder value)
● The actual position value "G1_XIST2" (absolute value of the encoder)
11.1.1 MC_Power
Description
The Motion Control instruction "MC_Power" enables or disables an axis.
Requirements
● The technology object has been configured correctly.
● There is no pending enable-inhibiting error.
For PROFIdrive drive or analog drive connection:
● Cyclic BUS communication is established between controller and encoder ("<Axis name>
.StatusSensor[1].CommunicationOK" = TRUE).
● Cyclic BUS communication is established between controller and drive ("<Axis name>
.StatusDrive.CommunicationOK" = TRUE).
Override response
Execution of "MC_Power" cannot be aborted by a Motion Control command.
Disabling the axis (input parameter "Enable" = FALSE) aborts all Motion Control commands
for the associated technology object in accordance with the selected "StopMode".
Parameters
Deceleration: max. 30 ms
• Output frequency < 100 Hz
Note
If the axis is switched off due to an error, it will be enabled again automatically after the error
has been eliminated and acknowledged. This requires that the input parameter "Enable" has
retained the value TRUE during this process.
Disabling an axis
To disable an axis, you can follow the steps described below:
1. Bring the axis to a standstill.
You can identify when the axis is at a standstill in the variable of the technology object
<axis name>.StatusBits.StandStill.
2. Set input parameter "Enable" to FALSE after standstill is reached.
3. If output parameters "Busy" and "Status" and variable of technology object <axis
name>.StatusBits.Enable indicate the value FALSE, disabling of the axis is complete.
See also
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
MC_Halt: Stop axis as of V6 (Page 215)
Configuration - Standstill signal (PROFIdrive and analog drive connection only) (Page 109)
Move the axis without position control for servicing (Page 262)
Function chart
Section An axis is enabled and then disabled again. When the drive has signaled "Drive ready" back to the CPU, the
successful enable can be read out via "Status_1".
Section Following an axis enable, an error has occurred that caused the axis to be disabled. The error is eliminated
and acknowledged with "MC_Reset". The axis is then enabled again.
① The exact end of the signals depends on the selected drive and the StopMode.
11.1.2 MC_Reset
Description
Motion Control instruction "MC_Reset" can be used to acknowledge "Operating error with
axis stop" and "Configuration error". The errors that require acknowledgment can be found in
the "List of ErrorIDs and ErrorInfos" under "Remedy".
The axis configuration can be downloaded to the work memory after a download in RUN
mode.
Requirements
● The positioning axis technology object has been configured correctly.
● The cause of a pending configuration error requiring acknowledgment has been
eliminated (for example, acceleration in positioning axis technology object has been
changed to a valid value).
Override response
The MC_Reset command cannot be aborted by any other Motion Control command.
The new MC_Reset command does not abort any other active Motion Control commands.
Parameters
Note
Acknowledge with "Restart" = FALSE
To acknowledge only the errors, set "Restart" = FALSE. The technology object cannot be
used during a restart. All errors at axes and encoders are acknowledged even if they are not
enabled or active.
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
Download to CPU (Page 162)
11.1.3 MC_Home
Description
Motion Control instruction "MC_Home" is used to match the axis coordinates to the real,
physical drive position. Homing is required for absolute positioning of the axis. The following
types of homing can be executed:
● Active homing (Mode = 3)
The homing procedure is executed automatically.
● Passive homing (Mode = 2)
During passive homing, the "MC_Home" Motion Control instruction does not carry out any
homing motion. The traversing motion required for this must be implemented by the user
via other Motion Control instructions. When the homing switch is detected, the axis is
homed.
● Direct homing absolute (Mode = 0)
The current axis position is set to the value of parameter "Position".
● Direct homing relative (Mode = 1)
The current axis position is offset by the value of parameter "Position".
● Absolute encoder adjustment relative (Mode = 6)
The current axis position is offset by the value of parameter "Position".
● Absolute encoder adjustment absolute (Mode = 7)
The current axis position is set to the value of parameter "Position".
Mode 6 and 7 can only be used with drives with an analog interface and PROFIdrive drive.
Requirements
● The positioning axis technology object has been configured correctly.
● The axis is enabled. (Not valid for PROFIdrive drive/analog drive connection Mode = 0 or
1)
● No MC_CommandTable command may be active upon start with Mode = 0, 1, or 2.
Override response
The override response depends on the selected mode:
Mode = 0, 1, 6, 7
The MC_Home command cannot be aborted by any other Motion Control command.
The MC_Home command does not abort any active Motion Control commands. Position-
related motion commands are resumed after homing according to the new homing position
(value at input parameter: "Position").
Mode = 2
The MC_Home command can be aborted by the following Motion Control commands:
● MC_Home command Mode = 2, 3
The new MC_Home command aborts the following active Motion Control command:
● MC_Home command Mode = 2
Position-related motion commands are resumed after homing according to the new homing
position (value at input parameter: "Position").
Mode = 3
The MC_Home command can be aborted by the following Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The new MC_Home command aborts the following active Motion Control commands:
● MC_Home command Mode = 2, 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
Parameters
Homing an axis
To home the axis, follow these stops:
1. Check the requirements indicated above.
2. Provide the necessary input parameters with values and start the homing operation with a
rising edge at input parameter "Execute".
3. If output parameter "Done" and technology object variable <axis
name>.StatusBits.HomingDone indicate the value TRUE, homing is complete. The
reference position can be taken from the <axis name>.ReferenceMarkPosition variable.
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
11.1.4 MC_Halt
Description
The "MC_Halt" Motion Control instruction stops all movements and brings the axis to a
standstill with the configured deceleration. The standstill position is not defined.
Requirements
● The positioning axis technology object has been configured correctly.
● The axis is enabled.
Override response
The MC_Halt command can be aborted by the following Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The new MC_Halt command aborts the following active Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
Parameters
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
Move the axis without position control for servicing (Page 262)
Function chart
The following values were configured in the configuration window Dynamics > General:
● Acceleration: 10.0
● Deceleration: 5.0
Section The axis is braked by an MC_Halt command until it comes to a standstill. The axis standstill is signaled via
"Done_2".
Section While an MC_Halt command is braking the axis, this command is aborted by another motion command. The
abort is signaled via "Abort_2".
11.1.5 MC_MoveAbsolute
Description
The "MC_MoveAbsolute" Motion Control instruction starts an axis positioning motion to move
it to an absolute position.
Requirements
● The positioning axis technology object has been configured correctly.
● The axis is enabled.
● The axis is homed.
Override response
The MC_MoveAbsolute command can be aborted by the following Motion Control
commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The new MC_MoveAbsolute command aborts the following active Motion Control
commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
Parameters
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
Configuration - Modulo (PROFIdrive/analog drive connection only) (Page 86)
Function chart
The following values were configured in the configuration window Dynamics > General:
● Acceleration: 10.0
● Deceleration: 10.0
Section An axis is moved to absolute position 1000.0 with an MC_MoveAbsolute command. When the axis reaches
the target position, this is signaled via "Done_1". When "Done_1" = TRUE, another MC_MoveAbsolute com-
mand, with target position 1500.0, is started. Because of the response times (e.g., cycle time of user program,
etc.), the axis comes to a standstill briefly (see zoomed-in detail). When the axis reaches the new target posi-
tion, this is signaled via "Done_2".
Section An active MC_MoveAbsolute command is aborted by another MC_MoveAbsolute command. The abort is
signaled via "Abort_1". The axis is then moved at the new velocity to the new target position 1500.0. When the
new target position is reached, this is signaled via "Done_2".
11.1.6 MC_MoveRelative
Description
The "MC_MoveRelative" Motion Control instruction starts a positioning motion relative to the
start position.
Requirements
● The positioning axis technology object has been configured correctly.
● The axis is enabled.
Override response
The MC_MoveRelative command can be aborted by the following Motion Control
commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The new MC_MoveRelative command aborts the following active Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
Parameters
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
Function chart
The following values were configured in the configuration window Dynamics > General:
● Acceleration: 10.0
● Deceleration: 10.0
Section The axis is moved by an MC_MoveRelative command by the distance ("Distance") 1000.0. When the axis
reaches the target position, this is signaled via "Done_1". When "Done_1" = TRUE, another MC_MoveRelative
command, with travel distance 500.0, is started. Because of the response times (e.g., cycle time of user pro-
gram, etc.), the axis comes to a standstill briefly (see zoomed-in detail). When the axis reaches the new target
position, this is signaled via "Done_2".
Section An active MC_MoveRelative command is aborted by another MC_MoveRelative command. The abort is sig-
naled via "Abort_1". The axis is then moved at the new velocity by the new distance ("Distance") 500.0. When
the new target position is reached, this is signaled via "Done_2".
11.1.7 MC_MoveVelocity
Description
Motion control instruction "MC_MoveVelocity" moves the axis constantly at the specified
velocity.
Requirements
● The positioning axis technology object has been configured correctly.
● The axis is enabled.
Override response
MC_MoveVelocity can be aborted by the following Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The new MC_MoveVelocity command aborts the following active Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
Parameters
Note
PLCopen Version 2.0
The Motion Control instruction "MC_MoveVelocity" is compatible to PLCopen Version 2.0 as
of V4.
The "InVelocity" and "Busy" parameters show their status regardless of the "Execute"
parameter until the command is overridden or stopped by an error. For more information,
refer to the section " Tracking active commands (Page 180).
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
Function chart
The following values were configured in the configuration window Dynamics > General:
● Acceleration: 10.0
● Deceleration: 10.0
Section An active MC_MoveVelocity command signals via "InVel_1" that its target velocity has been reached. It is then
aborted by another MC_MoveVelocity command. The abort is signaled via "Abort_1". When the new target
velocity 15.0 is reached, this is signaled via "InVel_2". The axis then continues moving at the new constant
velocity.
Section An active MC_MoveVelocity command is aborted by another MC_MoveVelocity command prior to reaching its
target velocity. The abort is signaled via "Abort_1". When the new target velocity 15.0 is reached, this is sig-
naled via "InVel_2". The axis then continues moving at the new constant velocity.
11.1.8 MC_MoveJog
Description
Motion control instruction "MC_MoveJog" moves the axis constantly at the specified velocity
in jog mode. You use this Motion Control instruction, for example, for testing and
commissioning purposes.
Requirements
● The positioning axis technology object has been configured correctly.
● The axis is enabled.
Override response
The MC_MoveJog command can be aborted by the following Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The new MC_MoveJog command aborts the following active Motion Control commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
Parameters
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
Function chart
The following values were configured in the configuration window Dynamics > General:
● Acceleration: 10.0
● Deceleration: 5.0
Section The axis is moved in the positive direction in jog mode via "Jog_F". When the target velocity 50.0 is reached,
this is signaled via "InVel_1". After "Jog_F" is reset, the axis is braked to a standstill.
Section The axis is moved in the negative direction in jog mode via "Jog_B". When the target velocity -50.0 is reached,
this is signaled via "InVel_1".
When "Jog_B" is set, the value at parameter "Velocity" changes to 25.0. "InVel_1" is reset and the axis is
braked. When the new target velocity -25.0 is reached, this is signaled via "InVel_1". After "Jog_B" is reset, the
axis is braked to a standstill.
11.1.9 MC_CommandTable
Description
The Motion Control instruction "MC_CommandTable" combines multiple individual axis
control commands in one movement sequence. "MC_CommandTable" is available for axes
with drive connection via PTO (Pulse Train Output).
Requirements
● The positioning axis technology object has been inserted and correctly configured.
● The drive is connected via PTO (Pulse Train Output).
● The command table technology object has been inserted and correctly configured.
● The axis is enabled.
Override response
The MC_CommandTable command can be aborted by the following Motion Control
commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The new MC_CommandTable command aborts the following active Motion Control
commands:
● MC_Home command Mode = 3
● MC_Halt command
● MC_MoveAbsolute command
● MC_MoveRelative command
● MC_MoveVelocity command
● MC_MoveJog command
● MC_CommandTable command
The active Motion Control command is canceled by the start of the first
"Positioning Relative", "Positioning Absolute", "Velocity set point" or "Halt" command.
Parameters
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
11.1.10 MC_ChangeDynamic
Description
Motion Control instruction "MC_ChangeDynamic" allows you to change the following settings
of the axis:
● Change the ramp-up time (acceleration) value
● Change the ramp-down time (deceleration) value
● Change the emergency stop ramp-down time (emergency stop deceleration) value
● Change the smoothing time (jerk) value
For the effectiveness of the change, refer to the description of the tag (Page 288).
Requirements
The positioning axis technology object has been configured correctly.
Override response
A MC_ChangeDynamic command cannot be aborted by any other Motion Control command.
A new MC_ChangeDynamic command does not abort any active Motion Control commands.
Parameters
Note
At the input parameters "RampUpTime", "RampDownTime", "EmergencyRampTime" and
"JerkTime", values can be entered which exceed the admissible limits of the resulting
parameters: "Acceleration", "Deceleration", "Emergency stop deceleration" and "Jerk".
Ensure that your inputs are within the valid range, taking into consideration the equations
and limits in section "Dynamic (Page 92)".
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
Tags of the positioning axis technology object V6...7 (Page 288)
11.1.11 MC_ReadParam
Description
The Motion Control instruction "MC_ReadParam" enables continuous reading of motion data
and status messages of an axis. The current value of the corresponding tags is determined
at the start of the command.
The following motion data and status messages can be read:
● As of technology version V4:
– Setpoint position of the axis
– Setpoint and actual velocity of the axis
– Current distance of axis from target position
– Target position of the axis
● Additional as of technology version V5:
– Actual position of the axis
– Actual velocity of the axis
– Current following error
– Drive status
– Encoder status
– Status bits
– Error bits
Requirements
The positioning axis technology object has been configured correctly.
Override response
A MC_ReadParam command cannot be aborted by any other Motion Control command.
A new MC_ReadParam command does not abort any active Motion Control commands.
Parameters
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_WriteParam: Write tag of positioning axis as of V6 (Page 245)
11.1.12 MC_WriteParam
Description
Motion Control instruction "MC_WriteParam" enables the writing of tags of the positioning
axis technology object in the user program. In contrast to the value assignment of the tags in
the user program, "MC_WriteParam" can also change values of read-only tags.
You can learn about the tags, the conditions under which they can be written and the time at
which they take effect in the description of the technology object tags (Page 288).
Requirements
● The positioning axis technology object has been configured correctly.
● To write tags that are read-only in the user program, the axis must be disabled.
● Tags whose change requires a restart cannot be written with "MC_WriteParam".
Override response
A MC_WriteParam command cannot be aborted by any other Motion Control command.
A new MC_WriteParam command does not abort any active Motion Control commands.
Parameters
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Reset: Acknowledge fault, restart technology object as of V6 (Page 208)
MC_Home: Home axes, set reference point as of V6 (Page 210)
MC_Halt: Stop axis as of V6 (Page 215)
MC_MoveAbsolute: Absolute positioning of axis as of V6 (Page 219)
MC_MoveRelative: Relative positioning of axis as of V6 (Page 224)
MC_MoveVelocity: Move axis at set velocity as of V6 (Page 228)
MC_MoveJog: Move axis in jog mode as of V6 (Page 233)
MC_CommandTable: Run axis commands as motion sequence as of V6 (Page 237)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (Page 239)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (Page 242)
Tags of the positioning axis technology object V6...7 (Page 288)
In this example, several positioning axis technology objects, each with its own axis
configuration, use the same PTO. Each axis must be called in the user program with a
separate call of Motion Control instruction "MC_Power" with a separate instance data block.
Only one axis at a time may use the PTO. The axis that is currently using the PTO indicates
this with tag <Axis name>.StatusBits.Activated = TRUE.
The tags of the activated axis ("Positioning axis_2" here) show the following typical indicators
in the user program:
● <Axis name>.StatusBits.Activated = TRUE
● <Axis name>.ErrorBits.HWUsed = FALSE
To switch from one positioning axis technology object to another, follow the steps described
below. In the example, a switch is made from "Positioning axis_2" to "Positioning axis_1":
1. End any active traversing motions of activated "Positioning axis_2"
2. Disable "Positioning axis_2" with the associated Motion Control instruction "MC_Power"
using input parameter Enable = FALSE
3. To verify that "Positioning axis_2" has been disabled, use an AND operation of output
parameter Status = FALSE of Motion Control instruction "MC_Power" and technology
object tag <Axis name>.StatusBits.Enable = FALSE.
4. Deactivate the conditional call of the Motion Control instructions for "Positioning axis_2".
5. Activate the conditional call of the Motion Control instruction for "Positioning axis_1". At
the first call of the corresponding Motion Control instruction "MC_Power", "Positioning
axis_2" is deactivated and "Positioning axis_1" is activated.
6. Enable "Positioning axis_1" with the associated Motion Control instruction "MC_Power"
using input parameter Enable = TRUE.
7. To verify that "Positioning axis_1" has been enabled, use an AND operation of output
parameter Status = TRUE of Motion Control instruction "MC_Power" and technology
object tag <Axis name>.StatusBits.Enable = TRUE.
It is also always possible to cyclically call all Motion Control instructions of all axes working
with a single PTO.
When an axis is enabled (here "Positioning axis_2"), this axis becomes active.
In contrast to the conditional call, the Motion Control instructions of the deactivated axes
(here "Positioning axis_1" and "Positioning axis_x") indicate errors. The tags of these axes
indicate the status <Axis name>.StatusBits.Activated = FALSE and <Axis
name>.ErrorBits.HWUsed = TRUE.
Use the conditional call of the Motion Control instructions if you want to implement the user
program without error indicators.
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Using multiple drives with the same PTO (Page 250)
Tracking jobs from higher priority classes (execution levels) (Page 251)
Special cases when using software limit switches for drive connection via PTO (Page 254)
List of ErrorIDs and ErrorInfos (technology objects V4...5) (Page 354)
The changeover between drives can be controlled, if required, by the user program via a
digital output. If different axis configurations are required for the different drives, a
changeover between these configurations is required for the PTO. You can find additional
information on this in "Using multiple axes with the same PTO" (Page 247).
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Using multiple axes with the same PTO (Page 247)
Tracking jobs from higher priority classes (execution levels) (Page 251)
Special cases when using software limit switches for drive connection via PTO (Page 254)
List of ErrorIDs and ErrorInfos (technology objects V4...5) (Page 354)
Depending on the frequency of the Motion Control commands you want to start, you will
have to generate a sufficient number of instance data blocks. Users determine which
instance data block is currently used in the DBx_used tags.
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Using multiple axes with the same PTO (Page 247)
Using multiple drives with the same PTO (Page 250)
Special cases when using software limit switches for drive connection via PTO (Page 254)
List of ErrorIDs and ErrorInfos (technology objects V4...5) (Page 354)
12.4 Special cases when using software limit switches for drive
connection via PTO
Example 1:
During a travel command, a homing job (for example, Set reference point) offsets the current
axis position in the direction of the software limit switch. It is still possible to bring the axis to
a standstill before reaching the software limit switch:
① The green curve shows the motion without the homing job. The axis brakes at the configured deceleration and comes
to a standstill at a position before the software limit switch.
② A new axis position is set as a result of the homing job. The area between the old and new axis position is thus
"skipped".
③ Based on the new axis position, the axis would theoretically be stopped with the configured deceleration at a position
after the software limit switch (red curve).
④ Because braking with the configured deceleration is no longer sufficient, the axis actually follows the blue curve. Fol-
lowing constant motion, the axis brakes at the configured emergency stop deceleration and comes to a standstill at
the position of the software limit switch.
Example 2:
During a travel command, a homing job (for example, Set reference point) offsets the current
axis position in the direction of the software limit switch. In contrast to example 1, it is no
longer possible to bring the axis to a standstill before reaching the software limit switch. The
axis overruns the position of the software limit switch.
① The green curve shows the motion without the homing job. The axis brakes at the configured deceleration and comes
to a standstill at a position before the software limit switch.
② A new axis position is set as a result of the homing job. The area between the old and new axis position is thus
"skipped".
③ Based on the new axis position, the axis would theoretically be stopped with the configured deceleration at a position
well after the software limit switch (red curve).
④ Because braking with the configured deceleration is no longer sufficient, the axis actually follows the blue curve. The
axis brakes with the configured emergency stop deceleration. However, the emergency stop deceleration is not suffi-
cient to stop the axis at the position of the software limit switch. The position of the software limit switch is overrun.
Example 3:
During a braking operation, a homing job (for example, Set reference point) offsets the
current axis position in the direction of the software limit switch. It is still possible to bring the
axis to a standstill before reaching the software limit switch:
① The green curve shows the motion without the homing job. The axis brakes at the configured deceleration and comes
to a standstill at a position before the software limit switch.
② A new axis position is set as a result of the homing job. The area between the old and new axis position is thus
"skipped".
③ Based on the new axis position, the axis would theoretically be stopped with the configured deceleration at a position
after the software limit switch (red curve).
④ Because braking with the configured deceleration is no longer sufficient, the axis actually follows the blue curve. Fol-
lowing constant motion, the axis brakes at the configured emergency stop deceleration and comes to a standstill at
the position of the software limit switch.
Example 4:
During a braking operation, a homing job (for example, Set reference point) offsets the
current axis position in the direction of the software limit switch. In contrast to example 3, it is
no longer possible to bring the axis to a standstill before reaching the software limit switch.
The axis overruns the position of the software limit switch.
① The green curve shows the motion without the homing job. The axis brakes at the configured deceleration and comes
to a standstill at a position before the software limit switch.
② A new axis position is set as a result of the homing job. The area between the old and new axis position is thus
"skipped".
③ Based on the new axis position, the axis would theoretically be stopped with the configured deceleration at a position
well after the software limit switch (red curve).
④ Because braking with the configured deceleration is no longer sufficient, the axis actually follows the blue curve. The
axis brakes with the configured emergency stop deceleration. However, the emergency stop deceleration is not suffi-
cient to stop the axis at the position of the software limit switch. The position of the software limit switch is overrun.
See also
Software limit switches and software limit switch position changes. (Page 258)
Software limit switches in conjunction with dynamic changes (Page 258)
Response of the axis when position limits are triggered (Page 89)
12.4.2 Software limit switches and software limit switch position changes.
An incorrect change in the position of the software limit switch during the runtime of the user
program can abruptly reduce the distance between the current axis position and the position
of the software limit switch.
The axis response is similar to that described in Software limit switches in conjunction with a
homing operation (Page 254).
See also
Software limit switches in conjunction with a homing operation (Page 254)
Software limit switches in conjunction with dynamic changes (Page 258)
Response of the axis when position limits are triggered (Page 89)
Example 1:
During axis motion, an active motion command is overridden by another motion command
with a lower deceleration:
① The green curve shows the motion of an active command without overriding this command. The axis brakes at the
configured deceleration and comes to a standstill at a position before the software limit switch.
② Based on the overriding motion command with lower deceleration, the axis would theoretically be stopped with the
configured deceleration at a position after the software limit switch (red curve).
③ Because braking with the configured deceleration of the overriding motion command is no longer sufficient, the axis
actually follows the blue curve. Following a constant motion, the axis brakes at the emergency stop deceleration and
comes to a standstill at the position of the software limit switch.
Example 2:
During braking of the axis, an active motion command is overridden by another motion
command with a lower deceleration:
① The green curve shows the motion of an active command without overriding this command. The axis brakes at the
configured deceleration and comes to a standstill at a position before the software limit switch.
② Based on the overriding motion command with lower deceleration, the axis would theoretically be stopped at a posi-
tion well after the software limit switch (red curve).
③ Because braking with the configured deceleration of the overriding motion command is no longer sufficient, the axis
actually follows the blue curve. Following a constant motion, the axis brakes at the emergency stop deceleration and
comes to a standstill at the position of the software limit switch.
See also
Software limit switches in conjunction with a homing operation (Page 254)
Software limit switches and software limit switch position changes. (Page 258)
Response of the axis when position limits are triggered (Page 89)
MC_MoveVelocity
MC_MoveVelocity with PositionControlled = FALSE forces non-position-controlled operation.
MC_MoveVelocity with PositionControlled = TRUE forces position-controlled operation.
The selected position-controlled operation is retained even after the termination of
MC_MoveVelocity.
MC_MoveJog
MC_MoveJog with PositionControlled = FALSE forces non-position-controlled operation.
MC_MoveJog with PositionControlled = TRUE forces position-controlled operation.
The selected position-controlled operation is retained even after the termination of
MC_MoveJog.
MC_Halt
The Motion Control instruction "MC_Halt" is executed in position-controlled and non-position-
controlled operation.
The status of the position control is not changed.
See also
MC_Power: Enable, disable axis as of V6 (Page 202)
MC_Halt: Stop axis as of V6 (Page 215)
Error ErrorIDs
Operating error with axis stop (Page 264) 16#8000-16#8013
Operating error without axis stop (Page 268) 16#8200-16#820C
Block parameter error (Page 270) 16#8400-16#8412
Configuration error of the axis (Page 273) 16#8600-16#864B
Configuration error of the command table 16#8700-16#8704
(Page 286)
Internal errors (Page 287) 16#8FF
16#003B The change of the actual position in a Adjust the modulo length of the em-
position control clock cycle is longer ployed encoder.
than the length.
16#800C Alarm message from drive Remove enable
16#0001 - Check the device with regard to func-
16#003C PROFIdrive: Drive signal "Control tion, connections and I/Os.
requested" failed. In the "Tuning" dialog box, select a
16#003D PROFIdrive/analog drive connection: smaller gain (Kv).
Drive has shut down.
16#003E PROFIdrive: Drive on bus failed (sta-
tion failure)
Internal errors
12.9.1 Legend
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Note
Save changes with "WRIT_DBL"
Changes to configuration tags of the technology object during runtime are lost on POWER
OFF, Start-STOP of the CPU or restart of the technology object.
If changes in the technology data block should also be retained after POWER OFF, Start-
STOP 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
Changes of tags with "WRIT_DBL" that cannot be changed in the RAM
Some configuration tags of the technology object cannot be changed during runtime. They
cannot be written directly (data block access) and they cannot be changed with
MC_WriteParam.
To change these configuration tags, use the extended instruction "WRIT_DBL" to change the
value in the load memory.
To enable the change, restart the technology object with MC_Reset (Restart = TRUE).
Note
Accesses with "READ_DBL"
You can only apply parameters with the designation RW with the instruction READ_DBL in
the technology data block from the load memory to the working memory.
Tags
Legend (Page 288)
See also
Motion status (Page 199)
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
*) Available in Openness
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
*) Available in Openness
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
*) Available in Openness
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
The following tags "ControlPanel" are readable in Openness.
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
See also
Tags of the positioning axis technology object V4...5 (Page 406)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 288)
*) Available in Openness
See also
Tag of the command table technology object V4...5 (Page 434)
Tags of the command table technology object V1...3 (Page 433)
12.11.1 CPU outputs relevant for motion control (technology version V1...3)
The number of usable drives depends on the CPU, the number of PTOs (pulse train outputs)
and the number of available pulse generator outputs.
The following tables provide information about the relevant dependencies:
The maximum number of controllable PTOs (drives) applies regardless of the use of a signal
board.
The following table shows the address assignment of the pulse and direction outputs:
CPU S7- PTO1 outputs 1 PTO2 outputs 2 PTO3 outputs 1 PTO4 outputs 2
1200 Pls. Dir. Pls. Dir. Pls. Dir. Pls. Dir.
CPU 1211C, CPU Ax.0 Ax.1 Ax.2 Ax.3 Ax.4 Ax.5 Ax.6 Ax.7
CPU 1212C, Signal Ay.0 Ay.1 Ay.2 Ay.3 Ay.0 Ay.1 Ay.2 Ay.3
CPU 1214C, board
CPU 1215C
(DC/DC/DC)
CPU 1211C, CPU - - - - - - - -
CPU 1212C, Signal Ay.0 Ay.1 Ay.2 Ay.3 Ay.0 Ay.1 Ay.2 Ay.3
CPU 1214C, board
CPU 1215C
(AC/DC/RL
Y)
CPU 1211C, CPU - - - - - - - -
CPU 1212C, Signal Ay.0 Ay.1 Ay.2 Ay.3 Ay.0 Ay.1 Ay.2 Ay.3
CPU 1214C, board
CPU 1215C
(DC/DC/RL
Y)
PTO1/3 or PTO2/4 can be generated via the onboard CPU outputs or via the signal board.
PTO3 and PTO4 are only available for CPUs with the article numbers xxxxxxx-1xx31-xxxx.
Note
Access to pulse generator outputs via the process image
The firmware takes control via the corresponding pulse generator outputs if the PTO (Pulse
Train Output) is selected and assigned to an axis.
With this takeover of the control function, the connection between the process image and I/O
output is also disconnected. Although the user has the option of writing the process image of
pulse generator outputs via the user program or watch table, this is not transferred to the I/O
output. Accordingly, it is also not possible to monitor the I/O output via the user program or
watch table. The information read reflects the value of the process image and does not
match the real status of the I/O output.
For all other CPU outputs that are not used permanently by the CPU firmware, the status of
the I/O output can be controlled or monitored via the process image, as usual.
Pulse output Limit frequencies for technol- Limiting frequencies of Limiting frequencies of the
ogy object positioning axis V1 the technology object technology object positioning
positioning axis V2/V3 axis V2/V3
with CPU < V3.0 with CPU V3.0
On-board (MLFB article number 2 Hz ≤ f ≤ 100 kHz 2 Hz ≤ f ≤ 100 kHz 1 Hz ≤ f ≤ 100 kHz
xxxxxxx-1xx30-xxxx)
On-board (MLFB - article num- 2 Hz ≤ f ≤ 100 kHz (PTO 1+2) 2 Hz ≤ f ≤ 100 kHz 1 Hz ≤ f ≤ 100 kHz (PTO 1+2)
ber xxxxxxx-1xx31xxxx) 2 Hz ≤ f ≤ 20 kHz (PTO 3+4) (PTO 1+2) 1 Hz ≤ f ≤ 20 kHz (PTO 3+4)
2 Hz ≤ f ≤ 20 kHz
(PTO 3+4)
Signal board DI2/DO2 x DC24V 2 Hz ≤ f ≤ 20 kHz 2 Hz ≤ f ≤ 20 kHz 1 Hz ≤ f ≤ 20 kHz
20kHz
Signal board DI2/DO2 x DC24V 2 Hz ≤ f ≤ 100 kHz 2 Hz ≤ f ≤ 200 kHz 1 Hz ≤ f ≤ 200 kHz
200kHz
Signal board DO4 x DC24V 2 Hz ≤ f ≤ 100 kHz 2 Hz ≤ f ≤ 200 kHz 1 Hz ≤ f ≤ 200 kHz
200kHz
Signal board DI2/DO2 x DC5V 2 Hz ≤ f ≤ 100 kHz 2 Hz ≤ f ≤ 200 kHz 1 Hz ≤ f ≤ 200 kHz
200kHz
Signal board DO4 x DC5V 2 Hz ≤ f ≤ 100 kHz 2 Hz ≤ f ≤ 200 kHz 1 Hz ≤ f ≤ 200 kHz
200kHz
Drive signals
For motion control, you can optionally parameterize a drive interface for "Drive enabled" and
"Drive ready". When using the drive interface the digital output for the drive enable and the
digital input for "drive ready" can be freely selected
.
Acceleration/deceleration limits
See also
CPU outputs relevant for motion control (Page 15)
12.11.2.1 V1...3
Axis name:
Define the name of the axis or the name of the "Axis" technology object in this box. The
technology object is listed under this name in the project navigation.
Hardware interface
The pulses are output to the power unit of the drive by fixed assigned digital outputs.
In CPUs with relay outputs, the pulse signal cannot be output on these outputs because the
relays do not support the necessary switching frequencies. A signal board with digital
outputs must be used to enable you to work with the PTO (Pulse Train Output) on these
CPUs.
Note
The PTO requires the functionality of a fast counter (HSC). An HSC is used for this purpose
with CPU version <V3.0. The HSC is then no longer available to the user. An internal HSC is
used for this with CPU version ≥ V3.0.
The count can not be evaluated from its input address.
The assignment between PTO and HSC is fixed. When the user activates PTO1, it is
connected to the HSC1. If the PTO2 is activated, this is connected with the HSC2.
In the "Pulse generator selection" drop-down list, select the PTO (Pulse Train Output) which
is to provide the pulses for controlling the stepper motors or servo motors with pulse
interface. If the pulse generators and high-speed counters are not used elsewhere in the
device configuration, the hardware interface can be configured automatically. In this case,
the PTO selected in the drop-down list is displayed with a white background. The interfaces
used are listed in the output boxes "Output source", "Pulse output", "Direction output" and
"Assigned fast counter".
Proceed as follows if you wish to change the interfaces or if the PTO could not be
automatically configured (entry in the "Pulse generator selection" drop-down list is
highlighted in red):
1. Click on the "Device configuration" button.
The pulse generator device configuration opens.
Enlarge the property window of the device configuration if the configuration of the pulse
generator is not visible.
4. In the "Pulse generator as:" dropdown list select the "PTO" entry.
5. In the "Output source:" dropdown list select the "Integrated CPU output" or "Signal board
output" entry. The "Signal board output" entry can only be selected for PTO1 or for PTO1
and PTO2 depending on the installed signal board. For more detailed information, see
section: CPU outputs relevant for motion control (Page 15)
6. Go back to the axis configuration.
Unless the corresponding fast counter has already been used elsewhere, the PTO boxes
of the "General" axis configuration are not shaded red. If this is not the case, correct the
configuration based on the error messages.
User unit
Select the desired unit for the dimension system of the axis in the dropdown list. The
selected unit is used for additional configuration of the "Axis" technology object and for
displaying the current axis data.
The values at the input parameters (Position, Distance, Velocity, ...) of the Motion Control
instructions also refer to this unit.
Note
Later changing of the dimension system may not be converted correctly in all the
configuration windows of the technology object. In this case check the configuration of all
axis parameters.
The values of the input parameters of the Motion Control instructions may have to be
adapted to the new unit of measurement in the user program.
See also
Configuration - General (Page 71)
Note
The digital inputs are set to a filter time of 6.4 ms by default.
When the digital inputs are used as a reference point switch, this can result in undesired
decelerations and thus inaccuracies. Depending on the homing velocity and extent of the
reference point switch, the reference point may not be detected. The filter time can be set
under "Input filter" in the device configuration of the digital inputs.
The specified filter time must be less than the duration of the input signal at the reference
point switch.
Permitting direction reversal after reaching the HW limit switch (active homing only)
Activate the check box to use the hardware limit switch as a reversing cam for the homing
procedure. The hardware limit switches must be activated for direction reversal. If the CPU
firmware V1.0 is used, both hardware limit switches must be configured. If CPU firmware as
of V2.0 is used, only the hardware limit switch in the approach direction must be configured.
If the hardware limit switch is reached during active homing, the axis brakes at the
configured deceleration (not with the emergency deceleration) and reverses direction. The
reference point switch is then sensed in reverse direction.
If the direction reversal is not active and the axis reaches the hardware limit switch during
active homing, the homing procedure is aborted with an error and the axis is braked at the
emergency stop deceleration.
Note
Use one of the following measures to ensure that the machine does not travel to a
mechanical endstop in the event of a direction reversal:
• Keep the approach velocity low
• Increase the configured acceleration/deceleration
• Increase the distance between hardware limit switch and mechanical stop
Note
Depending on the start position of the axis and the configuration of the homing
parameters, the homing procedure sequence can differ from the diagram in the
configuration window.
● Passive homing
With passive homing, the traversing motions for purposes of homing must be
implemented by the user via motion commands. The end of the reference point switch on
which homing occurs depends on the following factors:
– "Approach direction" configuration
– "Reference point switch" configuration
– Current travel direction during passive homing
The table below presents details on the effect of factors:
Home position
The position configured in the Motion Control instruction "MC_Home" is used as the home
position.
Note
The digital inputs are set to a filter time of 6.4 ms by default.
When the digital inputs are used as a homing switch, this can result in undesired
decelerations and thus inaccuracies. Depending on the homing velocity and extent of the
homing switch, the home position may not be detected. The filter time can be set under
"Input filter" in the device configuration of the digital inputs.
The specified filter time must be less than the duration of the input signal at the homing
switch.
Active level
In the drop-list, select the level of the homing switch that is to be used for homing.
See also
Sequence - Active homing (Page 103)
Home position
The position configured in the Motion Control instruction "MC_Home" is used as the home
position.
Note
If passive homing is carried out without an axis motion command (axis at a standstill),
homing will be executed upon the next rising or falling edge at the homing switch.
Note
If possible, use one of the following measures to ensure that the machine does not travel to
a mechanical endstop in the event of a direction reversal:
• Keep the approach velocity low.
• Increase the configured acceleration/deceleration.
• Increase the distance between the hardware limit switch and the mechanical endstop.
Approach/homing direction
With the direction selection, you determine the approach direction used during active homing
to search for the homing switch, as well as the homing direction. The homing direction
specifies the travel direction the axis uses to approach the configured end of the homing
switch to carry out the homing operation.
Velocity
In this box, specify the velocity at which the homing switch is to be searched for during the
homing procedure.
Limits (independent of the selected unit of measurement):
● Start/stop velocity ≤ approach velocity ≤ maximum velocity
Homing velocity
In this box, specify the velocity at which the reference point switch is to be approached for
homing.
Limits (independent of the selected unit of measurement):
● Start/stop velocity ≤ Homing velocity ≤ Maximum velocity
Home position
The position configured in the Motion Control instruction "MC_Home" is used as the home
position.
Changing configuration of dynamic values in user program ("Axis" technology object V1...3)
You can change the following configuration parameters during runtime of the user program
in the CPU:
NOTICE
After changes to this parameter, it may be necessary to adapt the positions of the hardware
limit switches and other safety-relevant settings.
See also
Changing the configuration of dynamics in the user program (Page 97)
12.11.2.2 V4
Axis name
Define the name of the axis or the name of the positioning axis technology object in this field.
The technology object is listed under this name in the project tree.
Hardware interface
The pulses are output to the power unit of the drive by fixed assigned digital outputs.
In CPUs with relay outputs, the pulse signal cannot be output on these outputs because the
relays do not support the necessary switching frequencies. A signal board with digital
outputs must be used to enable you to work with the PTO (Pulse Train Output) on these
CPUs.
Note
The PTO requires the functionality of a high-speed counter (HSC). An internal HSC is used
for this, the count of which cannot be evaluated.
Signal type
Select the desired signal type in the drop-down list. The following signal types are available:
● PTO (pulse A and direction B)
A pulse output and a direction output are used for controlling the stepper motor.
● PTO (count up A, count down B)
One pulse output each for motion in positive direction and negative direction is used for
controlling the stepper motor.
● PTO (A/B phase-shifted)
Both pulse outputs for Phase A and for Phase B run at the same frequency.
The period of the pulse outputs is evaluated at the drive end as a step.
The phase offset between Phase A and Phase B determines the direction of the motion.
● PTO (A/B phase offset - quadruple)
Both pulse outputs for Phase A and for Phase B run at the same frequency.
All positive edges and all negative edges of Phase A and Phase B are evaluated as a
step at the drive end.
The phase offset between Phase A and Phase B determines the direction of the motion.
Activate direction output (signal type "PTO (pulse A and direction B)")
In "pulse and direction" mode, you can deactivate or activate the direction output. You can
use this option to limit the direction of movement and use the direction output for other
purposes.
Pulse output down (signal type "PTO (count up A, count down B)")
Select the desired pulse output for motions in negative direction in this field.
You can select the output using a symbolic address or assign it to an absolute address.
Phase A (signal types "PTO (A/B phase offset)" and "PTO (A/B phase offset - quadruple)")
Select the desired pulse output for Phase A signals in this field.
You can select the output using a symbolic address or assign it to an absolute address.
Phase B (signal types "PTO (A/B phase offset)" and "PTO (A/B phase offset - quadruple)")
Select the desired pulse output for Phase B signals in this field.
You can select the output using a symbolic address or assign it to an absolute address.
User unit
Select the desired unit for the dimension system of the axis in the drop-down list. The
selected unit is used for further configuration of the positioning axis technology object and for
displaying the current axis data.
The values at the input parameters (Position, Distance, Velocity, ...) of the Motion Control
instructions also refer to this unit.
Note
Later changing of the dimension system may not be converted correctly in all the
configuration windows of the technology object. In this case check the configuration of all
axis parameters.
The values of the input parameters of the Motion Control instructions may have to be
adapted to the new unit of measurement in the user program.
See also
Configuration - Mechanics (positioning axis technology object V4) (Page 346)
Position limits (Page 87)
Dynamics (Page 92)
Homing (positioning axis technology object as of V2) (Page 99)
Invert direction
You can use the "Invert direction" check box to adapt the control system to the direction logic
of the drive.
The direction logic is inverted according to the selected mode of the pulse generator:
● PTO (pulse A and direction B)
– 0 V at direction output ⇒ positive direction of rotation
– 5 V/24 V at direction output ⇒ negative direction of rotation
The specified voltage depends on the hardware used. The indicated values do not apply
to the differential outputs of CPU 1217.
● PTO (count up A, count down B)
The outputs "Pulse output down" and "Pulse output up" are swapped.
● PTO (A/B phase offset)
The "Phase A" and "Phase B" outputs are swapped.
● "PTO (A/B phase offset - quadruple)
The "Phase A" and "Phase B" outputs are swapped.
See also
Configuration - Drive signals (positioning axis technology object V4) (Page 345)
Relationship between the signal type and the direction of travel (Page 19)
Position limits (Page 87)
Dynamics (Page 92)
Homing (positioning axis technology object as of V2) (Page 99)
Note
The digital inputs are set to a filter time of 6.4 ms by default.
When the digital inputs are used as a homing switch, this can result in undesired
decelerations and thus inaccuracies. Depending on the homing velocity and extent of the
homing switch, the home position may not be detected. The filter time can be set under
"Input filter" in the device configuration of the digital inputs.
The specified filter time must be less than the duration of the input signal at the homing
switch.
Active level
In the drop-list, select the level of the homing switch that is to be used for homing.
Home position
The position configured in the Motion Control instruction "MC_Home" is used as the home
position.
Note
If passive homing is carried out without an axis motion command (axis at a standstill),
homing will be executed upon the next rising or falling edge at the homing switch.
Note
The digital inputs are set to a filter time of 6.4 ms by default.
When the digital inputs are used as a homing switch, this can result in undesired
decelerations and thus inaccuracies. Depending on the homing velocity and extent of the
homing switch, the home position may not be detected. The filter time can be set under
"Input filter" in the device configuration of the digital inputs.
The specified filter time must be less than the duration of the input signal at the homing
switch.
Select level
In the drop-down list, select the level of the homing switch that is to be used for homing.
Note
If possible, use one of the following measures to ensure that the machine does not travel to
a mechanical endstop in the event of a direction reversal:
• Keep the approach velocity low.
• Increase the configured acceleration/deceleration.
• Increase the distance between the hardware limit switch and the mechanical endstop.
Approach/homing direction
With the direction selection, you determine the approach direction used during active homing
to search for the homing switch, as well as the homing direction. The homing direction
specifies the travel direction the axis uses to approach the configured end of the homing
switch to carry out the homing operation.
Approach velocity
In this field, specify the velocity at which the homing switch is to be searched for during the
homing procedure.
Limits (independent of the selected unit of measurement):
● Start/stop velocity ≤ approach velocity ≤ maximum velocity
Homing velocity
In this field, specify the velocity at which the homing switch is to be approached for homing.
Limits (independent of the selected unit of measurement):
● Start/stop velocity ≤ Homing velocity ≤ Maximum velocity
Home position
The position configured in the Motion Control instruction "MC_Home" is used as the home
position.
12.11.3 Diagnostics - Status and error bits ("Axis" technology object V1...3)
You use the "Status and error bits" diagnostic function to monitor the most important status
and error messages for the axis in the TIA Portal. The diagnostic function display is available
in online mode in "Manual control" mode and in "Automatic control" when the axis is active.
The status error messages have the following meaning:
Status Description
Enabled The axis is enabled and ready to be controlled via Motion Control commands.
(Tag of the technology object: <axis name>.StatusBits.Enable)
Homed The axis is homed and is capable of executing absolute positioning commands of Motion Control
instruction "MC_MoveAbsolute". The axis does not have to be homed for relative positioning. Spe-
cial situations:
• During active homing, the status is FALSE.
• If a homed axis undergoes passive homing, the status is set to TRUE during passive homing.
(Tag of the technology object: <axis name>.StatusBits.HomingDone)
Axis error An error has occurred in the "Axis" technology object. Additional information about the error is
available in automatic control at the ErrorID and ErrorInfo parameters of the Motion Control instruc-
tions. In manual mode, the "Error message" box of the axis control panel displays detailed infor-
mation about the cause of error.
(Tag of the technology object: <axis name>.StatusBits.Error)
Axis control panel The "Manual control" mode was enabled in the axis control panel. The axis control panel has con-
enabled trol priority over the "Axis" technology object. The axis cannot be controlled from the user program.
(Tag of the technology object: <axis name>.StatusBits.ControlPanelActive)
Restart necessary A modified configuration of the axis was downloaded to the load memory in CPU RUN operating
mode. To download the modified configuration to the work memory, you need to restart the axis.
Use the Motion Control instruction MC_Reset to do this.
Drive status
Status Description
Drive ready The drive is ready for operation.
(Tag of the technology object: <axis name>.StatusBits.DriveReady)
Drive error The drive has reported an error due to loss of its "Drive ready" signal.
(Tag of the technology object: <axis name>.ErrorBits.DriveFault)
Status Description
Standstill The axis is at a standstill.
(Tag of the technology object: <axis name>.StatusBits.StandStill)
Acceleration The axis accelerates.
(Tag of the technology object: <axis name>.StatusBits.Acceleration)
Constant velocity The axis travels at constant velocity.
(Tag of the technology object: <axis name>.StatusBits.ConstantVelocity)
Deceleration The axis decelerates (slows down).
(Tag of the technology object: <axis name>.StatusBits.Deceleration)
Status Description
Positioning The axis executes a positioning command of the Motion Control instruction
"MC_MoveAbsolute", "MC_MoveRelative" or the axis control panel.
(Tag of the technology object: <axis name>.StatusBits.PositioningCommand)
Travel with velocity specifica- The axis executes a command with velocity specification of the Motion Control instruction
tion "MC_MoveVelocity", "MC_MoveJog" or the axis control panel.
(Tag of the technology object: <axis name>.StatusBits.SpeedCommand)
Homing The axis executes a homing command of the Motion Control instruction "MC_Home" or
the axis control panel.
(Tag of the technology object: <axis name>.StatusBits.Homing)
Command table active The axis is controlled by Motion Control instruction "MC_CommandTable".
(as of technology object Axis (Tag of the technology object: <axis name>.StatusBits.CommandTableActive)
V2.0)
Error messages
Error Description
Lower SW limit switch was The lower software limit switch has been reached.
reached (Tag of the technology object: <axis name>.ErrorBits.SwLimitMinReached)
Lower SW limit switch was The lower software limit switch has been exceeded.
exceeded (Tag of the technology object: <axis name>.ErrorBits.SwLimitMinExceeded)
Upper SW limit switch was The upper software limit switch has been reached.
reached (Tag of the technology object: <axis name>.ErrorBits.SwLimitMaxReached)
Upper SW limit switch was The upper software limit switch has been exceeded.
exceeded (Tag of the technology object: <axis name>.ErrorBits.SwLimitMaxExceeded)
Lower HW limit switch was The lower hardware limit switch has been reached.
reached (Tag of the technology object: <axis name>.ErrorBits.HwLimitMin)
Upper HW limit switch was The upper hardware limit switch has been reached.
reached (Tag of the technology object: <axis name>.ErrorBits.HwLimitMax)
PTO and HSC already in use A second axis is using the same PTO (Pulse Train Output) and HSC (High Speed Coun-
ter) and is enabled with "MC_Power".
(Tag of the technology object: <axis name>.ErrorBits.HwUsed)
Configuration error The "Axis" technology object was incorrectly configured or editable configuration data
were modified incorrectly during runtime of the user program.
(Tag of the technology object: <axis name>.ErrorBits.ConfigFault)
Internal error An internal error has occurred.
(Tag of the technology object: <axis name>.ErrorBits.SystemFault)
See also
Status and error bits (technology objects as of V4) (Page 196)
16#862B Inconsistent PROFIBUS parameterization; the sum of Ti and To is greater than one DP cycle
16#0030 Value has an incorrect number format or is Download error-free configuration to the controller;
outside the valid number range enable the axis again with instruction "MC_Power"
16#862C Parameter of standstill monitoring is faulty. Invalid value in <Axis
name>.StandStillSignal.MinDwellTime
16#0030 Value has an incorrect number format or is • Download error-free configuration to the con-
outside the valid number range troller; enable the axis again with instruction
"MC_Power"
• Correct the incorrect value online;
acknowledge error with instruction "MC_Reset"
and restart the command, if necessary
16#862D Parameter of following error monitoring is faulty. Invalid value in <Axis
name>.FollowingError.MinValue
16#0030 Value has an incorrect number format or is • Download error-free configuration to the con-
outside the valid number range troller; enable the axis again with instruction
"MC_Power"
• Correct the incorrect value online;
acknowledge error with instruction "MC_Reset"
and restart the command, if necessary
16#862E Invalid value for the configuration date <Axis name>.Modulo.Length
16#0030 Value has an incorrect number format or is • Download error-free configuration to the con-
outside the valid number range troller; enable the axis again with instruction
"MC_Power"
• Correct the incorrect value online;
acknowledge error with instruction "MC_Reset"
and restart the command, if necessary
16#862F Invalid value for the configuration date <Axis name>.Modulo.StartValue
16#0030 Value has an incorrect number format or is • Download error-free configuration to the con-
outside the valid number range troller; enable the axis again with instruction
"MC_Power"
• Correct the incorrect value online;
acknowledge error with instruction "MC_Reset"
and restart the command, if necessary
16#8634 Parameter of the following error monitoring is faulty. Invalid value in <Axis
name>.FollowingError.MaxValue
16#0030 Value has an incorrect number format or is • Download error-free configuration to the con-
outside the valid number range troller; enable the axis again with instruction
"MC_Power"
• Correct the incorrect value online;
acknowledge error with instruction "MC_Reset"
and restart the command, if necessary
16#8635 Parameter of the following error monitoring is faulty. Invalid value in <Axis
name>.FollowingError.MinVelocity
16#0030 Value has an incorrect number format or is • Download error-free configuration to the con-
outside the valid number range troller; enable the axis again with instruction
"MC_Power"
• Correct the incorrect value online;
acknowledge error with instruction "MC_Reset"
and restart the command, if necessary
Internal errors
See also
Error displays of the Motion Control statements (Page 191)
Tags of the positioning axis technology object V4...5 (Page 406)
ErrorIDs and ErrorInfos (Page 354)
Using multiple axes with the same PTO (Page 247)
Using multiple drives with the same PTO (Page 250)
Tracking jobs from higher priority classes (execution levels) (Page 251)
Special cases when using software limit switches for drive connection via PTO (Page 254)
Internal errors
See also
List of ErrorIDs and ErrorInfos (technology objects V4...5) (Page 354)
Using multiple axes with the same PTO (Page 247)
Configuration error
16#8613 During active homing, direction reversal at the hardware limit switch is activated although the hard-
ware limit switches are not configured
16#0001 - Correct the configuration and download it to the
controller
Internal errors
See also
List of ErrorIDs and ErrorInfos (technology objects V4...5) (Page 354)
Using multiple axes with the same PTO (Page 247)
Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name
of the technology object.
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tags of the positioning axis technology object V4...5 (Page 406)
Tags
Legend (Page 395)
See also
Motion status (Page 199)
Tags of the positioning axis technology object V6...7 (Page 288)
Tags of the positioning axis technology object V4...5 (Page 406)
Tags
Legend (Page 395)
See also
Status and error bits (technology objects as of V4) (Page 196)
Tags of the positioning axis technology object V6...7 (Page 288)
Tags of the positioning axis technology object V4...5 (Page 406)
Tags
Legend (Page 395)
See also
Status and error bits (technology objects as of V4) (Page 196)
Tags of the positioning axis technology object V6...7 (Page 288)
Tags of the positioning axis technology object V4...5 (Page 406)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tags of the positioning axis technology object V4...5 (Page 406)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tags of the positioning axis technology object V4...5 (Page 406)
Tags
Legend (Page 395)
See also
Motion status (Page 199)
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tag of the axis technology object V1...3 (Page 396)
Tags of the positioning axis technology object V6...7 (Page 288)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Motion status (Page 199)
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Status and error bits (technology objects as of V4) (Page 196)
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Status and error bits (technology objects as of V4) (Page 196)
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
See also
Tags of the positioning axis technology object V6...7 (Page 288)
Tag of the axis technology object V1...3 (Page 396)
Tags
Legend (Page 395)
See also
Tag of the command table technology object V4...5 (Page 434)
Tags of the command table V6 technology object (Page 327)
Tags
Legend (Page 395)
See also
Tags of the command table technology object V1...3 (Page 433)
Tags of the command table V6 technology object (Page 327)
A E
Add empty line, 148 Encoder connection S7-1200 Motion Control, 25
Add separator line, 148
Axis and command table technology object
List of ErrorIDs and ErrorInfo, 263, 354 F
Following error monitoring, 109
B
Basic knowledge H
Required, 3
Hardware and software limit switches
Function, 43
Hardware configuration for Motion Control S7-1200, 12
C
Homing
Closed loop control, 110 Homing modes, 45
Command table technology object
Add new object, 141
Basic parameters, 144 I
Command table configuration, 144
Insert empty line, 148
Configuration window icons, 142
Insert separator line, 148
Configuring activate warnings, 144
Interpolator OB, 38, 40
Configuring duration, 147
Configuring position / travel path, 146
Configuring the command type, 145
J
Configuring the next step, 147
Configuring the step code, 147 Jerk limit
Configuring use axis parameters of, 144 Function, 44
Configuring velocity, 146
Extended parameters, 159
General configuration, 144 M
Shortcut menu commands, 148
Manual
Tag command[1...32], 327, 434
Purpose, 3
Tag Config.Command.Command[1...32], 433
Scope, 3
Tools, 140
MC_ChangeDynamic
Usage, 140
Instruction, 239
Parameter, 240
MC_CommandTable
D
Instruction, 237
DB_ANY, 194 Parameter, 238
Direction output and travel direction MC_Halt
relation, 20 Function chart, 217
Drive connection S7-1200 Motion Control, 25 Instruction, 215
Parameters, 216
R
Reinitialization of technology objects, 193
Required basic knowledge, 3
Restart of technology objects, 193
S
Scope
Manual, 3
Servo motor, 12
Servo OB, 38, 40
Standstill signal, 109
Stepper motor, 12