GeneralMotionControlLibrariesGuide EcoStruxure
GeneralMotionControlLibrariesGuide EcoStruxure
EIO0000003592.04
12/2023
www.se.com
Legal Information
The information provided in this document contains general descriptions, technical
characteristics and/or recommendations related to products/solutions.
This document is not intended as a substitute for a detailed study or operational and
site-specific development or schematic plan. It is not to be used for determining
suitability or reliability of the products/solutions for specific user applications. It is the
duty of any such user to perform or have any professional expert of its choice
(integrator, specifier or the like) perform the appropriate and comprehensive risk
analysis, evaluation and testing of the products/solutions with respect to the relevant
specific application or use thereof.
The Schneider Electric brand and any trademarks of Schneider Electric SE and its
subsidiaries referred to in this document are the property of Schneider Electric SE or
its subsidiaries. All other brands may be trademarks of their respective owner.
This document and its content are protected under applicable copyright laws and
provided for informative use only. No part of this document may be reproduced or
transmitted in any form or by any means (electronic, mechanical, photocopying,
recording, or otherwise), for any purpose, without the prior written permission of
Schneider Electric.
Schneider Electric does not grant any right or license for commercial use of the
document or its content, except for a non-exclusive and personal license to consult it
on an "as is" basis.
Schneider Electric reserves the right to make changes or updates with respect to or in
the content of this document or the format thereof, at any time without notice.
To the extent permitted by applicable law, no responsibility or liability is
assumed by Schneider Electric and its subsidiaries for any errors or omissions
in the informational content of this document, as well as any non-intended use
or misuse of the content thereof.
EIO0000003592.04 3
Stopping ..................................................................................................97
MC_Stop............................................................................................97
SetStopRamp_LXM32 ........................................................................99
SetStopRamp_ILX ............................................................................ 101
Stop_LXM32 .................................................................................... 102
MC_Halt........................................................................................... 104
Halt_LXM32 ..................................................................................... 106
Position Capture via Signal Input ............................................................. 108
MC_TouchProbe............................................................................... 108
TouchProbe_LXM32 ......................................................................... 110
TouchProbe_SD328A ....................................................................... 112
TouchProbe_ILX ............................................................................... 114
MC_AbortTrigger .............................................................................. 116
Function Blocks - Multi Axis................................................................... 119
Operating Mode Electronic Gear.............................................................. 119
GearInPos_LXM32 ........................................................................... 119
GearInPos_SD328A ......................................................................... 121
GearInPos_ILX................................................................................. 123
GearIn_LXM32 ................................................................................. 126
Function Blocks - Administrative .......................................................... 129
Reading a Parameter.............................................................................. 129
MC_ReadActualTorque ..................................................................... 129
MC_ReadActualVelocity.................................................................... 130
MC_ReadActualPosition ................................................................... 132
MC_ReadAxisInfo............................................................................. 133
MC_ReadMotionState....................................................................... 135
MC_ReadStatus ............................................................................... 137
MC_ReadParameter ......................................................................... 140
Writing a Parameter ................................................................................ 143
MC_WriteParameter ......................................................................... 143
SetDriveRamp_ATV.......................................................................... 145
SetDriveRamp_LXM32...................................................................... 147
SetDriveRamp_SD328A.................................................................... 149
SetDriveRamp_ILX ........................................................................... 150
SetLimitSwitch_LXM32 ..................................................................... 152
SetLimitSwitch_SD328A ................................................................... 154
SetLimitSwitch_ILX ........................................................................... 156
SetFrequencyRange_ATV ................................................................. 158
ResetParameters_ATV...................................................................... 160
ResetParameters_LXM32 ................................................................. 161
ResetParameters_SD328A ............................................................... 162
ResetParameters_ILX....................................................................... 164
StoreParameters_ATV ...................................................................... 166
StoreParameters_LXM32 .................................................................. 167
StoreParameters_SD328A ................................................................ 168
StoreParameters_ILX........................................................................ 170
Inputs and Outputs ................................................................................. 172
ReadAnalogInput_ATV...................................................................... 172
MC_ReadDigitalInput ........................................................................ 174
MC_ReadDigitalOutput ..................................................................... 177
MC_WriteDigitalOutput...................................................................... 180
4 EIO0000003592.04
Error Handling ........................................................................................ 183
ReadAxisWarning_LXM32................................................................. 183
ReadAxisWarning_ILX ...................................................................... 184
MC_ReadAxisError ........................................................................... 186
MC_Reset ........................................................................................ 187
Glossary ................................................................................................... 191
Index ......................................................................................................... 192
EIO0000003592.04 5
Safety Information
Safety Information
Important Information
Read these instructions carefully, and look at the equipment to become familiar
with the device before trying to install, operate, service, or maintain it. The
following special messages may appear throughout this documentation or on the
equipment to warn of potential hazards or to call attention to information that
clarifies or simplifies a procedure.
The addition of this symbol to a “Danger” or “Warning” safety label indicates that an
electrical hazard exists which will result in personal injury if the instructions are not
followed.
This is the safety alert symbol. It is used to alert you to potential personal injury
hazards. Obey all safety messages that follow this symbol to avoid possible injury or
death.
! DANGER
DANGER indicates a hazardous situation which, if not avoided, will result in death or serious
injury.
! WARNING
WARNING indicates a hazardous situation which, if not avoided, could result in death or
serious injury.
! CAUTION
CAUTION indicates a hazardous situation which, if not avoided, could result in minor or
moderate injury.
NOTICE
NOTICE is used to address practices not related to physical injury.
Please Note
Electrical equipment should be installed, operated, serviced, and maintained only
by qualified personnel. No responsibility is assumed by Schneider Electric for any
consequences arising out of the use of this material.
A qualified person is one who has skills and knowledge related to the construction
and operation of electrical equipment and its installation, and has received safety
training to recognize and avoid the hazards involved.
EIO0000003592.04 7
Safety Information
WARNING
UNGUARDED EQUIPMENT
• Do not use this software and related automation equipment on equipment
which does not have point-of-operation protection.
• Do not reach into machinery during operation.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
WARNING
EQUIPMENT OPERATION HAZARD
• Verify that all installation and set up procedures have been completed.
• Before operational tests are performed, remove all blocks or other temporary
holding means used for shipment from all component devices.
• Remove tools, meters, and debris from equipment.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
8 EIO0000003592.04
Safety Information
Follow all start-up tests recommended in the equipment documentation. Store all
equipment documentation for future references.
Software testing must be done in both simulated and real environments.
Verify that the completed system is free from all short circuits and temporary
grounds that are not installed according to local regulations (according to the
National Electrical Code in the U.S.A, for instance). If high-potential voltage
testing is necessary, follow recommendations in equipment documentation to
prevent accidental equipment damage.
Before energizing equipment:
• Remove tools, meters, and debris from equipment.
• Close the equipment enclosure door.
• Remove all temporary grounds from incoming power lines.
• Perform all start-up tests recommended by the manufacturer.
EIO0000003592.04 9
About the Book
Validity Note
This document has been updated for the release of EcoStruxure™ Machine Expert
V2.2.
The characteristics that are described in the present document, as well as those
described in the documents included in the Related Documents section below,
can be found online. To access the information online, go to the Schneider Electric
home page www.se.com/ww/en/download/.
The characteristics that are described in the present document should be the
same as those characteristics that appear online. In line with our policy of constant
improvement, we may revise content over time to improve clarity and accuracy. If
you see a difference between the document and online information, use the online
information as your reference.
Related Documents
Title of documentation Reference number
EcoStruxure Machine Expert - Programming Guide EIO0000002854 (eng)
EIO0000002855 (fre)
EIO0000002856 (ger)
EIO0000002858 (spa)
EIO0000002857 (ita)
EIO0000002859 (chi)
EcoStruxure Machine Expert - Functions and Libraries User Guide EIO0000002829 (eng)
EIO0000002830 (fre)
EIO0000002831 (ger)
EIO0000002833 (spa)
EIO0000002832 (ita)
EIO0000002834 (chi)
EIO0000003054 (fre)
EIO0000003055 (ger)
EIO0000003057 (spa)
EIO0000003056 (ita)
EIO0000003058 (chi)
10 EIO0000003592.04
About the Book
EIO0000003049 (ger)
EIO0000003051 (spa)
EIO0000003050 (ita)
EIO0000003052 (chi)
Altivar Machine ATV320 Variable Speed Drives for Asynchronous and NVE41295 (eng)
Synchronous Motors - Programming Manual
NVE41296 (fre)
NVE41297 (ger)
NVE41298 (spa)
NVE41299 (ita)
NVE41300 (chi)
Altivar Machine 320 Variable Speed Drives for Asynchronous and NVE41309 (eng)
Synchronous Motors - CANopen Manual - VW3A3608, 618, 628
Altivar Machine ATV320 Variable Speed Drives For Asynchronous NVE41313 (eng)
and Synchronous Motors - Modbus TCP - EtherNet/IP Manual -
VW3A3616
Altivar Machine ATV340 Variable Speed Drives for Asynchronous and NVE61643 (eng)
Synchronous Motors - Programming Manual
NVE61644 (fre)
NVE61645 (ger)
NVE61647 (spa)
NVE61648 (ita)
NVE61649 (chi)
Altivar Machine ATV340 Variable Speed Drives for Asynchronous and NVE61655 (eng)
Synchronous Motors - CANopen Manual - VW3A3608, 618, 628
Altivar Machine ATV340 Variable Speed Drives for Asynchronous and NVE61653 (eng)
Synchronous Motors - Ethernet Embedded Manual
Altivar Process - Variable Speed Drives ATV630, ATV650, ATV660, EAV64318 (eng)
ATV680 - Programming Manual
EAV64320 (fre)
EAV64321 (ger)
EAV64322 (spa)
EAV64323 (ita)
EAV64324 (chi)
EAV64318RU (rus)
Altivar Process ATV600 Variable Speed Drive for Asynchronous and EVA64333 (eng)
Synchronous Motors - CANopen Manual - VW3A3608, 618, 628
Altivar Process ATV600 - Variable Speed Drives for Asynchronous EAV64327 (eng)
and Synchronous Motors - Embedded Ethernet Manual
Altivar Process ATV600 - Variable Speed Drives for Asynchronous EAV64328 (eng)
and Synchronous Motors - EthernetIP Modbus TCP Manual:
VW3A3720, VW3A3721
EIO0000003592.04 11
About the Book
NHA80759 (ger)
NHA80760 (spa)
NHA80761 (ita)
NHA80762 (chi)
Altivar Process 900 - CANopen Manual - VW3A3608, 618, 628 NHA80945 (eng)
0198441113756 (fre)
0198441113754 (ger)
0198441113758 (spa)
0198441113757 (ita)
0198441113759 (chi)
0198441113780 (fre)
0198441113778 (ger)
Lexium 32i CAN and BMi - Integrated Servo Drive System - User 0198441113950 (eng)
Guide
0198441113951 (fre)
0198441113949 (ger)
0198441113953 (spa)
0198441113952 (ita)
0198441113954 (chi)
0198441113768 (fre)
0198441113766 (ger)
0198441113770 (spa)
0198441113769 (ita)
0198441113771 (chi)
0198441113791 (fre)
0198441113789 (ger)
0198441113803 (fre)
0198441113801 (ger)
0198441113844 (fre)
0198441113842 (ger)
0198441113699 (ger)
0198441113717 (ger)
12 EIO0000003592.04
About the Book
0198441113561 (ger)
ILE1B, ILE1F, ILE1R - Lexium Integrated Drive - Product manual 0198441113568 (eng)
0198441113567 (ger)
ILS1B, ILS1F, ILS1R - Lexium Integrated Drive - Product manual 0198441113574 (eng)
0198441113573 (ger)
0198441113585 (ger)
0198441113669 (ger)
0198441113675 (ger)
0198441113681 (ger)
ILA2T Modbus TCP Lexium Integrated Drive - Product manual 0198441113652 (eng)
0198441113651 (ger)
ILE2T Modbus TCP Lexium Integrated Drive - Product manual 0198441113658 (eng)
0198441113657 (ger)
ILS2T Modbus TCP Lexium Integrated Drive - Product manual 0198441113664 (eng)
0198441113663 (ger)
EIO0000003592.04 13
About the Book
WARNING
LOSS OF CONTROL
• Perform a Failure Mode and Effects Analysis (FMEA), or equivalent risk
analysis, of your application, and apply preventive and detective controls
before implementation.
• Provide a fallback state for undesired control events or sequences.
• Provide separate or redundant control paths wherever required.
• Supply appropriate parameters, particularly for limits.
• Review the implications of transmission delays and take actions to mitigate
them.
• Review the implications of communication link interruptions and take actions
to mitigate them.
• Provide independent paths for control functions (for example, emergency
stop, over-limit conditions, and error conditions) according to your risk
assessment, and applicable codes and regulations.
• Apply local accident prevention and safety regulations and guidelines.1
• Test each implementation of a system for proper operation before placing it
into service.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
1For additional information, refer to NEMA ICS 1.1 (latest edition), Safety
Guidelines for the Application, Installation, and Maintenance of Solid State Control
and to NEMA ICS 7.1 (latest edition), Safety Standards for Construction and
Guide for Selection, Installation and Operation of Adjustable-Speed Drive
Systems or their equivalent governing your particular location.
WARNING
UNINTENDED EQUIPMENT OPERATION
• Only use software approved by Schneider Electric for use with this
equipment.
• Update your application program every time you change the physical
hardware configuration.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
14 EIO0000003592.04
About the Book
Standard Description
ISO 12100:2010 Safety of machinery - General principles for design - Risk assessment
and risk reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part 1: General
requirements
In addition, terms used in the present document may tangentially be used as they
are derived from other standards such as:
Standard Description
IEC 61158 series Digital data communications for measurement and control – Fieldbus for
use in industrial control systems
Finally, the term zone of operation may be used in conjunction with the description
of specific hazards, and is defined as it is for a hazard zone or danger zone in the
Machinery Directive (2006/42/EC) and ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific
products cited in the present documentation. For more information concerning
the individual standards applicable to the products described herein, see the
characteristics tables for those product references.
EIO0000003592.04 15
General Description of Motion Control Libraries
✓ Supported
- Not supported
16 EIO0000003592.04
General Description of Motion Control Libraries
MC_MoveAdditive, page 79
MC_MoveRelative, page 81
MC_SetPosition, page 95
EIO0000003592.04 17
General Description of Motion Control Libraries
VelocityControlSelectAI_ATV, page 68
Control_ATV, page 70
TorqueControl_LXM32, page 56
18 EIO0000003592.04
General Description of Motion Control Libraries
These function blocks can be used with Lexium ILA, ILE and ILS integrated drives:
EIO0000003592.04 19
General Description of Motion Control Libraries
MC_Stop
Done
Stopping
Note 1
Errorstop
Note 6
Note 4 Note 3
MC_Home
Done
Note 5 Note 2
Homing StandStill Disabled
20 EIO0000003592.04
General Description of Motion Control Libraries
Function block 2
MC_Home Not permitted Not permitted Not permitted Not permitted Not permitted
MC_Stop Not permitted Not permitted Not permitted Not permitted Not permitted
MC_Halt Motor standstill Not permitted Not permitted Not permitted Not permitted
Function block 2
Immediately
The execution of function block 2 is started on the fly, that is, without delay. The
execution of function block 1 is aborted.
EIO0000003592.04 21
General Description of Motion Control Libraries
Motor Standstill
The execution of function block 2 first decelerates the motor to a standstill with the
adjusted deceleration ramp. The execution of function block 1 is aborted
thereafter. The movement as per function block 2 starts as soon as the motor has
come to a standstill.
Not Permitted
Function block 1 cannot be aborted by the new function block. Function block 2 is
not executed.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not map other user variables to the addresses in the I/O Mapping tab of your
device.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
22 EIO0000003592.04
General Description of Motion Control Libraries
Parameter 3 Reserved -
Parameter 4 Reserved -
Parameter 3 Reserved -
Parameter 4 Reserved -
For LXM32A, LXM32ICAN and LXM32M drives, the library is using the following
mapping:
For Lexium ILA, ILE and ILS integrated drives, the library is using the default
RPDO4 and the default TPDO4 (see documentation of the drive, page 10).
EIO0000003592.04 23
General Description of Motion Control Libraries
Parameter 3 Reserved -
Parameter x Reserved -
Parameter x Reserved -
NOTE: For ATV340 the I/O mapping of the drive has to be adjusted with the DTM
commissioning software. See EcoStruxure Machine Expert - Device Type Manager (DTM) -
User Guide for additional information on the DTM.
For LXM32M and Lexium ILA, ILE, ILS drives, the library is using the default
assembly (see documentation of the drive, page 10).
timResetFaultTimeOut 2000 500 500 Timeout while waiting for error free status of the drive after the
execution of a “Fault Reset” command
(1) Only available for EtherNet/IP devices.
24 EIO0000003592.04
General Description of Motion Control Libraries
For compatibility reasons to the obsolete CANopen libraries, the axis reference
function blocks for CANopen have two additional properties uiNetworkNo and
uiNodeId. These properties are providing the network number and the node
number of the referenced CANopen device and can be used in the application.
EIO0000003592.04 25
General Description of Motion Control Libraries
26 EIO0000003592.04
General Description of Motion Control Libraries
EIO0000003592.04 27
General Description of Motion Control Libraries
LIMP 1 LIMN
LIMN 2 LIMP
REFZ_neg 3 REF in negative direction
28 EIO0000003592.04
General Description of Motion Control Libraries
(2) For Lexium ILA, ILE and ILS integrated drives: Only with EtherNet/IP and Modbus TCP.
EIO0000003592.04 29
General Description of Motion Control Libraries
0 No error detected.
1 Interface not implemented.
2 Axis blocked.
3 Power disabled.
The power stage must be enabled before the function block can be executed.
4 No re-execution.
The function block cannot be repeated as long as the output Busy = TRUE.
The value specified for the input Length is outside of the permissible value range. Range: 1 to 4.
The number specified for the signal input is outside of the permissible value range1.
The number specified for the signal output is outside of the permissible value range1.
E An internal error has been detected. Contact your Schneider Electric service representative.
65 Done.
66 Working.
67 Initialization unsuccessful.
68 Configuring.
6A ID out of range.
6C Communication error detected. The connection to the device has been interrupted.
The function block cannot be executed in the current operating state of the device.
6E Time-out.
30 EIO0000003592.04
General Description of Motion Control Libraries
71 Indeterminable response.
73 Buffer full.
The specified value for the number of the Touchprobe input is invalid.
The specified value for the number of the Touchprobe inputs is not supported by the library. Up to three
Touchprobe inputs are supported.
Restart the device after having remedied the cause of the detected error.
The value for the acceleration is outside of the permissible value range 1.
The value for the deceleration is outside of the permissible value range 1.
The value for the target position is outside of the permissible value range 1.
The value for the target velocity is outside of the permissible value range 1.
The value for the target torque is outside of the permissible value range 1.
The value for the numerator is outside of the permissible value range 1.
The value for the denominator is outside of the permissible value range 1.
84 Halt active.
EIO0000003592.04 31
General Description of Motion Control Libraries
The function block cannot be executed as long as the function block Control_ATV, page 70 is enabled.
The power stage cannot be enabled in the current operating state of the drive.
The function block does not support the linked Axis_Ref type.
Invalid value at the input SetpointSource of the function block TorqueControl_LXM32, page 56 or MoveVelocity_
LXM32, page 61.
8A The digital output is set to an incorrect signal output function. Set the signal output function to Freely Available.
(1) See the respective function blocks documentation for permissible value range.
32 EIO0000003592.04
General Description of Motion Control Libraries
102 The exchange was stopped by a user request (the Abort command).
402 Resources needed for the object to perform the requested service are unavailable.
403 Internal error code. Contact your local Schneider Electric service representative.
404 The path segment identifier or the segment syntax was incorrect. Path processing stops when this error is
encountered.
405 The path is referencing an object class, instance, or structure element that is incorrect or is not contained in the
processing node. Path processing stops when this error is encountered.
408 The requested service was not implemented or was not defined for this Object Class/Instance.
40B The object is already in the mode/state being requested by the service.
EIO0000003592.04 33
General Description of Motion Control Libraries
40C The object cannot perform the requested service in its present mode/state.
410 The mode/state of the device does not allow the execution of the requested service.
411 The data to be transmitted in the response buffer is larger than the allocated response buffer.
412 The service specified an operation that is going to fragment a primitive data value, that is, half a REAL data type.
413 The service did not supply enough data to perform the specified operation.
417 The fragmentation sequence for this service is not active for this data.
418 The attribute data of this object was not saved prior to the requested service.
41A The service request packet was too large for transmission on a network in the path to the destination. The routing
device was forced to abort the service.
41B The service response packet was too large for transmission on a network in the path from the destination. The
routing device was forced to abort the service.
41C The service did not supply an attribute in a list of attributes that was needed by the service to perform the
requested behavior.
41D The service is returning the list of attributes supplied with status information for those attributes that were invalid.
420 A parameter associated with the request was invalid. This code is used when a parameter does not meet the
requirements of this specification and/or the requirements defined in an Application Object specification.
421 An attempt was made to write to a write-once medium (for example, WORM drive, PROM) that has already been
written, or to modify a value that cannot be changed once established.
422 An invalid reply is received (for example, reply service code does not match the request service code, or reply
message is shorter than the minimum expected reply size). This status code can serve for other causes of invalid
replies.
423 The message received is larger than the receiving buffer can handle. The entire message is discarded.
424 The format of the received message is not supported by the server.
425 The key segment that is included as the first segment in the path does not match the destination module. The
object-specific status indicates in which segment of the key.
426 The size of the path which was sent with the Service Request is either not large enough to allow the Request to be
routed to an object or too much routing data was included.
427 An attempt was made to set an attribute that is not able to be set at this time.
428 The member ID specified in the request does not exist in the specified Class/Instance/Attribute.
42A This diagnostic code may only be reported by Group 2. Only servers with 4 K or less code space and only in place
of service not supported, attribute not supported and attribute not settable.
42E The object supports the service, but not for the designated application path (for example, attribute).
34 EIO0000003592.04
General Description of Motion Control Libraries
The explicit message has been sent but the target has not responded it or has replied with an error code.
FF0D The number and length of the objects to be mapped exceed the maximum PDO length.
FF11 Data type does not match, length of service parameter does not match.
FF12 Data type does not match, excessive length of service parameter.
FF13 Data type does not match, insufficient length of service parameter.
FF1C Data cannot be transferred or stored to the application because of local control.
FF1D Data cannot be transferred or stored to the application because of the present device state.
FF1E Object dictionary dynamic generation not possible or no object dictionary is present (for example object dictionary
is generated from file and generation not possible due to a file error).
EIO0000003592.04 35
General Description of Motion Control Libraries
Example 2
Single execution with an error detected (execution requires more than one call).
Example 3
Single execution without an error detected (execution requires only one call).
Example 4
Single execution with an error detected (execution requires only one call).
36 EIO0000003592.04
General Description of Motion Control Libraries
Example 5
Repeated execution without an error detected (execution requires more than one
call).
Example 6
Repeated execution with an error detected (execution requires more than one
call).
Example 7
Repeated execution without an error detected (execution requires only one cycle).
Example 8
Repeated execution with an error detected (execution requires only one call).
EIO0000003592.04 37
General Description of Motion Control Libraries
Example 2
Execution terminated with an error detected.
Example 3
Execution aborted because another motion function block has been started.
38 EIO0000003592.04
General Description of Motion Control Libraries
Example 4
If the input Execute is set to FALSE during a cycle, the function block execution is
not terminated; the output Done is set to TRUE only for one cycle.
EIO0000003592.04 39
Function Blocks - Single Axis
Graphical Representation
40 EIO0000003592.04
Function Blocks - Single Axis
Inputs
Input Data type Description
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of the Control_ATV
function block may lead to unintended behavior.
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block when this function block is
active.
• Deactivate this function block or allow the function block to terminate before
activating the Control_ATV function block.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
If a Node Guarding or Heartbeat error is detected, the error memory must be reset
by using the function block MC_Reset before the power stage can be enabled
again.
EIO0000003592.04 41
Function Blocks - Single Axis
Additional Information
PLCopen State Diagram, page 20
Initialization, page 40
42 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
EIO0000003592.04 43
Function Blocks - Single Axis
Inputs
Input Data type Description
Default value: 0.
If the value for the target velocity Velocity is less than the value for
LowFrequency, the movement is made with the velocity value for
LowFrequency. No error is detected.
If the value for the target velocity Velocity is greater than the value for
HighFrequency, the movement is made with the velocity value for
HighFrequency. No error is detected.
Outputs
Output Data type Description
44 EIO0000003592.04
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of the Control_ATV
function block may lead to unintended behavior.
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block when this function block is
active.
• Deactivate this function block or allow the function block to terminate before
activating the Control_ATV function block.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
This function block uses library-specific acceleration and deceleration values for
LXM32M (EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS
integrated drives (EtherNet/IP only). This means that pre-configured values for
these parameters (for example, via the commissioning tool) are overwritten when
this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default values for acceleration are:
◦ 600 user-defined units for LXM32M
◦ 600 user-defined units for Lexium ILA, ILE and ILS integrated drives
• The default values for deceleration are:
◦ 600 user-defined units for LXM32M
◦ 750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function blocks SetDriveRamp_
LXM32 or SetDriveRamp_ILX to define the acceleration and deceleration. The
function block has to be executed only once if a change of the ramp values is
required.
Additional Information
Transitions Between Function Blocks, page 21
Operating Mode Jog, page 43
Jog_LXM32
Functional Description
This function block starts the operating mode Jog.
In the operating mode Jog, a movement is started via the inputs Forward and
Backward.
EIO0000003592.04 45
Function Blocks - Single Axis
If the inputs Forward and Backward are set to FALSE, the operating mode is
terminated and the output Done is set to TRUE.
If the inputs Forward and Backward are set to TRUE, the operating mode remains
active, the jog movement is stopped, and the output Busy remains set to TRUE.
Graphical Representation
Inputs
Input Data type Description
Default value: 20
• 0: Continuous movement is started immediately.
• >0: Value is used for distance to be moved in user-defined units. The
movement is stopped, the waiting time WaitTime starts. After the waiting
time WaitTime has elapsed, a continuous movement is started.
46 EIO0000003592.04
Function Blocks - Single Axis
Waiting time in ms. If TipPos is >0, the waiting time WaitTime starts as soon as
the adjusted distance has been covered. After the waiting time WaitTime has
elapsed, a continuous movement is started.
Default value: 60
Outputs
Output Data type Description
EIO0000003592.04 47
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The inputs Acceleration and Deceleration are only taken into account if you use
the fieldbuses EtherNet/IP or Modbus TCP.
Additional Information
Operating Mode Jog, page 43
Jog_SD328A
Functional Description
This function block starts the operating mode Jog.
In the operating mode Jog, a movement is started via the inputs Forward and
Backward.
If the inputs Forward and Backward are set to FALSE, the operating mode is
terminated and the output Done is set to TRUE.
If the inputs Forward and Backward are set to TRUE, the operating mode remains
active, the jog movement is stopped and the output Busy remains set to TRUE.
Graphical Representation
48 EIO0000003592.04
Function Blocks - Single Axis
Inputs
Input Data type Description
Default value: 20
• 0: Continuous movement is started immediately.
• >0: Value is used for distance to be moved in user-defined units. The
movement is stopped, the waiting time WaitTime starts. After the waiting
time WaitTime has elapsed, a continuous movement is started.
Waiting time in ms. If TipPos is >0, the waiting time WaitTime starts as soon as
the adjusted distance has been covered. After the waiting time WaitTime has
elapsed, a continuous movement is started.
Default value: 60
Outputs
Output Data type Description
EIO0000003592.04 49
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Operating Mode Jog, page 43
Jog_ILX
Functional Description
This function block starts the operating mode Jog.
In the operating mode Jog, a movement is started via the inputs Forward and
Backward.
If the inputs Forward and Backward are set to FALSE, the operating mode is
terminated and the output Done is set to TRUE.
If the inputs Forward and Backward are set to TRUE, the operating mode remains
active, the jog movement is stopped and the output Busy remains set to TRUE.
50 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
Default value: 20
• 0: Continuous movement is started immediately.
• >0: Value is used for distance to be moved in user-defined units. The
movement is stopped, the waiting time WaitTime starts. After the waiting
time WaitTime has elapsed, a continuous movement is started.
Waiting time in the unit ms. If TipPos is >0, the waiting time WaitTime starts as
soon as the adjusted distance has been covered. After the waiting time WaitTime
has elapsed, a continuous movement is started.
Default value: 60
EIO0000003592.04 51
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block uses library-specific acceleration and deceleration values for
Lexium ILA, ILE and ILS integrated drives (EtherNet/IP only). This means that pre-
configured values for these parameters (for example, via the commissioning tool)
are overwritten when this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default value for acceleration is 600 rpm/s.
• The default value for deceleration is 750 rpm/s.
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function block SetDriveRamp_
ILX to define the acceleration and deceleration. The function block has to be
executed only once if a change of the ramp values is required.
Additional Information
Operating Mode Jog, page 43
52 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
The value corresponds to 0.1% of the nominal torque of the motor. Example:
Torque = 300 corresponds to 30% of the nominal torque of the motor.
EIO0000003592.04 53
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
PLCopen State Diagram, page 20
Transition Between Function Blocks, page 21
Operating Mode Profile Torque, page 53
SetTorqueRamp_LXM32
Functional Description
This function block sets the torque ramp for MC_TorqueControl.
54 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Ramp DINT Value range: 1...30000000
The input Ramp is used in the operating mode Profile Torque. The value
corresponds to 0.1% per second of the nominal torque of the motor. Example: If
Ramp = 1000, then 100% of the nominal torque of the motor is reached in one
second.
Outputs
Output Data type Description
EIO0000003592.04 55
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Operating Mode Profile Torque, page 53
TorqueControl_LXM32
Functional Description
This function block starts the operating mode Profile Torque. In the operating
mode Profile Torque, a movement is made with a target torque. The source for the
target torque is set via the input SetpointSource. When the target torque is
reached, the output InTorque is set to TRUE.
Graphical Representation
56 EIO0000003592.04
Function Blocks - Single Axis
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
The value corresponds to 0.1% of the nominal torque of the motor. Example:
Torque = 300 corresponds to 30% of the nominal torque of the motor.
The value corresponds to 0.1% per second of the nominal torque of the motor.
Example: If Ramp = 1000, then 100% of the nominal torque of the motor is
reached in one second.
Outputs
Output Data type Description
EIO0000003592.04 57
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Operating Mode Profile Torque, page 53
58 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
If the value for the target velocity Velocity is less than the value for
LowFrequency, the movement is made with the velocity value for
LowFrequency. No error is detected.
If the value for the target velocity Velocity is greater than the value for
HighFrequency, the movement is made with the velocity value for
HighFrequency. No error is detected.
EIO0000003592.04 59
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of the Control_ATV
function block may lead to unintended behavior.
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block when this function block is
active.
• Deactivate this function block or allow the function block to terminate before
activating the Control_ATV function block.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
The output Busy remains TRUE even if the target velocity has been reached or
the input Execute is set to FALSE. The output Busy is set to FALSE as soon as
another function block such as MC_Stop is executed.
60 EIO0000003592.04
Function Blocks - Single Axis
In the operating mode Profile Velocity, a movement beyond the movement range
is possible. In the case of a movement beyond the movement range, the reference
point established by homing becomes invalid.
This function block uses library-specific acceleration and deceleration values for
LXM32M (EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS
integrated drives (EtherNet/IP only). This means that pre-configured values for
these parameters (for example, via the commissioning tool) are overwritten when
this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default values for acceleration are:
◦ 600 user-defined units for LXM32M
◦ 600 user-defined units for Lexium ILA, ILE and ILS integrated drives
• The default values for deceleration are:
◦ 600 user-defined units for LXM32M
◦ 750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function blocks SetDriveRamp_
LXM32 or SetDriveRamp_ILX to define the acceleration and deceleration. The
function block has to be executed only once if a change of the ramp values is
required.
Additional Information
PLCopen State Diagram, page 20
Transition Between Function Blocks, page 21
Operating Mode Profile Velocity, page 59
MoveVelocity_LXM32
Functional Description
This function block starts the operating mode Profile Velocity. In the operating
mode Profile Velocity, a movement is made with a target velocity. The source for
the target velocity is set via the input SetpointSource. When the target velocity is
reached, the output InVelocity is set to TRUE.
EIO0000003592.04 61
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
62 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The output Busy remains TRUE even if the target velocity has been reached or
the input Execute is set to FALSE. The output Busy is set to FALSE as soon as
another function block such as MC_Stop is executed.
The inputs Acceleration and Deceleration are only taken into account if you use
the fieldbuses EtherNet/IP or Modbus TCP.
Additional Information
Operating Mode Profile Velocity, page 59
EIO0000003592.04 63
Function Blocks - Single Axis
MoveVelocity_SD328A
Functional Description
This function block starts the operating mode Profile Velocity. In the operating
mode Profile Velocity, a movement is made with a target velocity. The source for
the target velocity is set via the input SetpointSource.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
64 EIO0000003592.04
Function Blocks - Single Axis
Default value: 0
Zero voltage window at analog input in mV. Example: If the value is 20, the range
-20 ... 20 mV is interpreted as 0.
The value specifies the maximum speed of rotation (ANA1 = 10 V) in rpm. Adapt
the value to your motor and the mechanical situation.
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The output Busy remains TRUE even if the target velocity has been reached or
the input Execute is set to FALSE. The output Busy is set to FALSE as soon as
another function block such as MC_Stop is executed.
EIO0000003592.04 65
Function Blocks - Single Axis
Additional Information
Operating Mode Profile Velocity, page 59
VelocityControlAnalogInput_ATV
Functional Description
This function block uses the reference values supplied by the analog input
selected with the function block VelocityControlSelectAI_ATV.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
66 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of the Control_ATV
function block may lead to unintended behavior.
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block when this function block is
active.
• Deactivate this function block or allow the function block to terminate before
activating the Control_ATV function block.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
EIO0000003592.04 67
Function Blocks - Single Axis
Additional Information
Operating Mode Profile Velocity, page 59
VelocityControlSelectAI_ATV
Functional Description
This function block selects the analog input for supplying the reference value. See
also VelocityControlAnalogInput_ATV.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
InputNumber UINT Value range: 1...4
Default value: 1
ATV320:
• 1: AI1
• 2: AI2
• 3: AI3
ATV340:
• 1: AI1
• 2: AI2
68 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of the Control_ATV
function block may lead to unintended behavior.
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block when this function block is
active.
• Deactivate this function block or allow the function block to terminate before
activating the Control_ATV function block.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
This function block can only be executed if the drive is in the operating state 3
Switch On Disabled. To transition to this state, disable the power stage with the
function block MC_Power.
Additional Information
Operating Mode Profile Velocity, page 59
EIO0000003592.04 69
Function Blocks - Single Axis
Control_ATV
Functional Description
This function block manages the Controlword, Statusword, reference velocity and
the direction of movement for the drive.
This function block requires an Adaptation of the I/O Mapping, page 72.
Graphical Representation
Control_ATV
Axis Axis_Ref BOOL q_xEn
i_xEn BOOL BOOL q_xAlrm
i_xKeepOpEn BOOL WORD q_wStatusword
i_xFwd BOOL
i_xRev BOOL
i_xQckStop BOOL
i_xFreeWhl BOOL
i_xFltRst BOOL
i_wSpdRef WORD
Inputs
Input Data Type Description
70 EIO0000003592.04
Function Blocks - Single Axis
Default value: 0
Outputs
Output Data Type Description
Is set to FALSE when the function block is deactivated and when the drive
transitions to operating state "Switch On Disabled".
Is set to TRUE when the drive detects an error (bit 3 of the status word).
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of other function blocks
of the GMC Independent PLCopen MC and GMC Independent ATV libraries may
lead to unintended behavior.
EIO0000003592.04 71
Function Blocks - Single Axis
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block unless all function blocks of
the GMC Independent PLCopen MC and GMC Independent ATV libraries
are inactive.
• Deactivate the Control_ATV function block before activating any of the
function blocks of the GMC Independent PLCopen MC and GMC
Independent ATV libraries.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
72 EIO0000003592.04
Function Blocks - Single Axis
Step Action
Visualization
Visualization of function block Control_ATV:
Step Action
7 Click the button Forward or Reverse: The motor performs a movement in positive or
negative direction.
EIO0000003592.04 73
Function Blocks - Single Axis
Additional Information
Operating Mode Profile Velocity, page 59
74 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
EIO0000003592.04 75
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
There is no feedback for reaching the target velocity from the drive. As soon as
the function block is being executed, the output InVelocity is set to TRUE. Use the
function block MC_ReadActualVelocity, page 130 to read the velocity of the motor.
76 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0.
Default value: 0
EIO0000003592.04 77
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
Absolute positioning requires a valid zero point. You can use the function block
MC_ReadMotionState to check for a valid zero point.
This function block uses library-specific acceleration and deceleration values for
LXM32M (EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS
integrated drives (EtherNet/IP only). This means that pre-configured values for
these parameters (for example, via the commissioning tool) are overwritten when
this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default values for acceleration are:
◦ 600 user-defined units for LXM32M
◦ 600 user-defined units for Lexium ILA, ILE and ILS integrated drives
• The default values for deceleration are:
◦ 600 user-defined units for LXM32M
◦ 750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function blocks SetDriveRamp_
LXM32 or SetDriveRamp_ILX to define the acceleration and deceleration. The
78 EIO0000003592.04
Function Blocks - Single Axis
function block has to be executed only once if a change of the ramp values is
required.
Additional Information
PLCopen State Diagram, page 20
Transition Between Function Blocks, page 21
Operating Mode Profile Position, page 77
MC_MoveAdditive
Functional Description
This function block starts a movement to the original target position including
distance Distance.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
Default value: 0
EIO0000003592.04 79
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block uses library-specific acceleration and deceleration values for
LXM32M (EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS
integrated drives (EtherNet/IP only). This means that pre-configured values for
these parameters (for example, via the commissioning tool) are overwritten when
this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default values for acceleration are:
◦ 600 user-defined units for LXM32M
◦ 600 user-defined units for Lexium ILA, ILE and ILS integrated drives
• The default values for deceleration are:
◦ 600 user-defined units for LXM32M
◦ 750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function blocks SetDriveRamp_
LXM32 and SetDriveRamp_ILX to define the acceleration and deceleration. The
function block has to be executed only once if a change of the ramp values is
required.
80 EIO0000003592.04
Function Blocks - Single Axis
Additional Information
PLCopen State Diagram, page 20
Transition Between Function Blocks, page 21
Operating Mode Profile Position, page 77
MC_MoveRelative
Functional Description
This function block starts a movement by distance Distance to the actual position.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 0
Default value: 0
EIO0000003592.04 81
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block uses library-specific acceleration and deceleration values for
LXM32M (EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS
integrated drives (EtherNet/IP only). This means that pre-configured values for
these parameters (for example, via the commissioning tool) are overwritten when
this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default values for acceleration are:
◦ 600 user-defined units for LXM32M
◦ 600 user-defined units for Lexium ILA, ILE and ILS integrated drives
• The default values for deceleration are:
◦ 600 user-defined units for LXM32M
◦ 750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function blocks SetDriveRamp_
LXM32 or SetDriveRamp_ILX to define the acceleration and deceleration. The
function block has to be executed only once if a change of the ramp values is
required.
82 EIO0000003592.04
Function Blocks - Single Axis
Additional Information
PLCopen State Diagram, page 20
Transition Between Function Blocks, page 21
Operating Mode Profile Position, page 77
EIO0000003592.04 83
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is not permitted while the function block is being
executed.
Position DINT Value range: -2147483648...2147483647
Default value: 0
84 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block uses library-specific acceleration and deceleration values for
LXM32M (EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS
integrated drives (EtherNet/IP only). This means that pre-configured values for
these parameters (for example, via the commissioning tool) are overwritten when
this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default values for acceleration are:
◦ 600 user-defined units for LXM32M
◦ 600 user-defined units for Lexium ILA, ILE and ILS integrated drives
• The default values for deceleration are:
◦ 600 user-defined units for LXM32M
◦ 750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function blocks SetDriveRamp_
LXM32 and SetDriveRamp_ILX to define the acceleration and deceleration. The
function block has to be executed only once if a change of the ramp values is
required.
EIO0000003592.04 85
Function Blocks - Single Axis
Additional Information
PLCopen State Diagram, page 20
Transitions Between Function Blocks, page 21
Operating Mode Homing, page 84
Home_LXM32
Functional Description
This function block configures and starts a reference movement.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is not permitted while the function block is being
executed.
Position DINT Value range: -2147483648...2147483647
Default value: 0
86 EIO0000003592.04
Function Blocks - Single Axis
Default value: 17
Default value: 60
Default value: 6
Default value: 0
The distance from the switching point is defined as the reference point.
The parameter is only effective during a reference movement without index pulse.
EIO0000003592.04 87
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The inputs Acceleration and Deceleration are only taken into account if you use
the fieldbuses EtherNet/IP or Modbus TCP.
Additional Information
Operating Mode Homing, page 84
88 EIO0000003592.04
Function Blocks - Single Axis
Home_SD328A
Functional Description
This function block configures and starts a reference movement.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is not permitted while the function block is being
executed.
Position DINT Value range: -2147483648...2147483647
Default value: 0
EIO0000003592.04 89
Function Blocks - Single Axis
Default value: 17
Default value: 60
Default value: 6
Default value: 0
The distance from the switching point is defined as the reference point.
The parameter is only effective during a reference movement without index pulse.
90 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Operating Mode Homing, page 84
Home_ILX
Functional Description
This function block commands the homing procedure using the Lexium ILA, ILE
and ILS integrated drives specific homing method set via the input HomingMode.
Drive-specific homing parameters such as homing mode are provided by the
device implementation. Re-executing this function block commands a Quick-Stop
in the drive and leads to a function block error NoReExecution.
The homing procedure can be aborted only by executing MC_Stop or disabling
the power stage through MC_Power.
Executing another motion function block while MC_Home is busy does not
influence the homing procedure. This means that the function block MC_Home
stays busy and the executed function block ends in a function block error.
EIO0000003592.04 91
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is not permitted while the function block is being
executed.
Position DINT Value range: -2147483648...2147483647
Default value: 0
Default value: 60
Default value: 6
92 EIO0000003592.04
Function Blocks - Single Axis
Default value: 0
The distance from the switching point is defined as the reference point.
The parameter is only effective during a reference movement without index pulse.
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
EIO0000003592.04 93
Function Blocks - Single Axis
Homing Methods
Specifies the homing method for EtherNet/IP and Modbus TCP:
• 1: LIMN with index pulse
• 2: LIMP with index pulse
• 7: REF+ with index pulse, inverted, outside
• 8: REF+ with index pulse, inverted, inside
• 9: REF+ with index pulse, not inverted, inside
• 10: REF+ with index pulse, not inverted, outside
• 11: REF- with index pulse, inverted, outside
• 12: REF- with index pulse, inverted, inside
• 13: REF- with index pulse, not inverted, inside
• 14: REF- with index pulse, not inverted, outside
• 17: LIMN
• 18: LIMP
• 23: REF+, inverted, outside
• 24: REF+, inverted, inside
• 25: REF+, not inverted, inside
• 26: REF+, not inverted, outside
• 27: REF-, inverted, outside
• 28: REF-, inverted, inside
• 29: REF-, not inverted, inside
• 30: REF-, not inverted, outside
• 33: Index pulse in negative direction
• 34: Index pulse in positive direction
• 35: Position setting
Specifies the homing method for CANopen:
• 1: LIMN
• 2: LIMP
• 3: REF in negative direction
• 4: REF in positive direction
• 5: Index pulse in negative direction (only ILA and ILS)
• 6: Index pulse in positive direction (only ILA and ILS)
• 7: Movement to block in negative direction (only ILE)
• 8: Movement to block in positive direction (only ILE)
• 23: REF+, inverted, outside
• 24: REF+, inverted, inside
• 25: REF+, not inverted, inside
• 26: REF+, not inverted, outside
• 27: REF-, inverted, outside
• 28: REF-, inverted, inside
• 29: REF-, not inverted, inside
• 30: REF-, not inverted, outside
• 35: Position setting
94 EIO0000003592.04
Function Blocks - Single Axis
Notes
This function block uses library-specific acceleration and deceleration values for
Lexium ILA, ILE and ILS integrated drives (EtherNet/IP only). This means that pre-
configured values for these parameters (for example, via the commissioning tool)
are overwritten when this function block is executed.
The default acceleration and deceleration values written by this function block are
as follows:
• The default value for acceleration is 600 rpm/s.
• The default value for deceleration is 750 rpm/s.
If you require other acceleration and/or deceleration values, you must use the
vendor-specific function blocks to do so. Use the function block SetDriveRamp_
ILX to define the acceleration and deceleration. The function block has to be
executed only once if a change of the ramp values is required.
Additional Information
Operating Mode Homing, page 84
MC_SetPosition
Functional Description
This function block sets a position value at the actual position of the motor. The
zero point is defined by the position value. The function block can only be used
when the motor is at a standstill.
Graphical Representation
EIO0000003592.04 95
Function Blocks - Single Axis
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Position DINT Value range: -2147483648...2147483647
Default value: 0
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Operating Mode Homing, page 84
96 EIO0000003592.04
Function Blocks - Single Axis
Stopping
MC_Stop
Functional Description
This function block stops the ongoing movement. The operating mode is aborted
by this function block.
The function block MC_Stop commands a motion stop to the drive. The drive-
specific stop parameters like deceleration are provided by the device
implementation. Re-executing this function block does not influence the ongoing
deceleration.
The stop procedure can be aborted only by disabling the power stage via MC_
Power.
Executing another motion function block while MC_Stop is busy does not
influence the stop procedure. This means that the function block MC_Stop stays
busy and the executed function block ends in a function block error.
As long as the input Execute is TRUE the execution of a motion command is not
possible. In this case, executed motion function blocks end in a function block
error.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
EIO0000003592.04 97
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of the Control_ATV
function block may lead to unintended behavior.
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block when this function block is
active.
• Deactivate this function block or allow the function block to terminate before
activating the Control_ATV function block.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
The function block can only be interrupted by disabling the power stage via the
function block MC_Power.
As long as the input Execute is TRUE, no other function block except for MC_
Power can be started.
If the operating state Stopping is transitioned to the state ErrorStop because MC_
Stop has detected an error in its execution or the power of the axis was disabled,
the axis does not re-enter in the operating state Stopping automatically although
98 EIO0000003592.04
Function Blocks - Single Axis
the input Execute is TRUE. A new rising edge at the input Execute is required to
transfer the axis into the operating state Stopping.
For ATV, the stop method corresponds to the stop configuration (see product
manual).
For LXM32 drives, you must use the vendor-specific function block
SetStopRamp_LXM32 to set the deceleration. If you want to modify the
deceleration ramp, execute the function block once.
For SD328A drives, there is no specific stop ramp available. Use the function
block SetDriveRamp_SD328A to define the ramp.
For Lexium ILA, ILE and ILS integrated drives, you must use the vendor-specific
function block SetStopRamp_ILX to set the deceleration. If you want to modify the
deceleration ramp, execute the function block once.
Additional Information
PLCopen State Diagram, page 20
Transition Between Function Blocks , page 21
Stopping, page 97
SetStopRamp_LXM32
Functional Description
This function block sets the deceleration ramp for the function block MC_Stop.
Graphical Representation
EIO0000003592.04 99
Function Blocks - Single Axis
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Deceleration DINT Value range: 1...2147483647
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Stopping, page 97
100 EIO0000003592.04
Function Blocks - Single Axis
SetStopRamp_ILX
Functional Description
This function block writes the value for the quick stop deceleration of the drive.
This value is used if the function block MC_Stop is executed.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Deceleration DINT Value range: 200...3000000
Outputs
Output Data type Description
EIO0000003592.04 101
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Stopping, page 97
Stop_LXM32
Functional Description
This function block stops the ongoing movement. The operating mode is aborted
by this function block.
The execution of the function block cannot be aborted by another function block
call.
Graphical Representation
102 EIO0000003592.04
Function Blocks - Single Axis
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The function block can only be interrupted by disabling the power stage through
the function block MC_Power.
As long as the input Execute is TRUE, no other function block except for MC_
Power can be started.
EIO0000003592.04 103
Function Blocks - Single Axis
Additional Information
Stopping, page 97
MC_Halt
Functional Description
This function block stops the ongoing movement. The operating mode is aborted
by this function block.
The execution of the function block can be aborted by another function block. If a
Halt is triggered, there is a transition of the PLCopen state to Discrete Motion until
the motor has reached a standstill. Once the motor has reached a standstill, the
output Done is set and the state transitions to StandStill.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
104 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block uses library-specific deceleration values for LXM32M
(EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS integrated drives
(EtherNet/IP only). This means that pre-configured values for these parameters
(for example, via the commissioning tool) are overwritten when this function block
is executed.
The default deceleration values written by this function block are as follows:
• The default values for deceleration are:
◦ 600 user-defined units for LXM32M
◦ 750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other deceleration values, you must use the vendor-specific function
blocks to do so. Use the function blocks SetDriveRamp_LXM32 and
SetDriveRamp_ILX to define the deceleration. The function block has to be
executed only once if a change of the ramp values is required.
EIO0000003592.04 105
Function Blocks - Single Axis
Additional Information
PLCopen State Diagram, page 20
Transition Between Function Blocks, page 21
Stopping, page 97
Halt_LXM32
Functional Description
This function block stops the ongoing movement. The operating mode is aborted
by this function block.
The execution of the function block can be aborted by another function block. If a
Halt is triggered, there is a transition of the PLCopen state to Discrete Motion until
the motor has reached a standstill. Once the motor has reached a standstill, the
output Done is set and the state transitions to StandStill.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
106 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Stopping, page 97
EIO0000003592.04 107
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
108 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
RecordedPosition DINT Returns the value of the axis position at the occurrence of a trigger event in user-
defined units.
Default value: 0
Inputs/Outputs
Input/Output Data type Elements Data type Description
Axis Axis_Ref – Reference to the axis (instance) for which the function
block is to be executed (corresponds to the name of
the axis). The name of the axis must be defined in the
EcoStruxure Machine Expert Devices tree.
TriggerInput MC_Trigger_Ref TouchProbeNumber UINT Selects the capture unit of the drive.
Notes
Use MC_AbortTrigger function block to abort MC_TouchProbe function block
execution.
EIO0000003592.04 109
Function Blocks - Single Axis
Additional Information
Position Capture via Signal Input, page 108
TouchProbe_LXM32
Functional Description
This function block configures and starts position capture.
The function block returns the axis position at the occurrence of a trigger event.
The drive trigger parameters are provided by the device implementation.
Executing the function block MC_AbortTrigger while MC_TouchProbe is busy
aborts the function for the referenced trigger input.
A new rising edge at the input Execute overwrites and restarts the active trigger
function.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
110 EIO0000003592.04
Function Blocks - Single Axis
Outputs
Output Data type Description
ErrorID WORD Returns the value of a diagnostic code. Refer to Library Diagnostic Codes, page
30. If the value is 0 and if the output Error of this function block is set to TRUE,
then the diagnostic code can be read with the output AxisErrorID of the function
block MC_ReadAxisError, page 186.
RecordedPosition DINT Returns the value the axis position at the occurrence of a trigger event.
Default value: 0
Inputs/Outputs
Input/Output Data type Elements Data type Description
Axis Axis_Ref – Reference to the axis (instance) for which the function
block is to be executed (corresponds to the name of
the axis). The name of the axis must be defined in the
EcoStruxure Machine Expert Devices tree.
TriggerInput MC_Trigger_Ref TouchProbeNumber UINT Selects the capture unit of the drive.
EIO0000003592.04 111
Function Blocks - Single Axis
Notes
Use MC_AbortTrigger function block to abort TouchProbe_LXM32 function block
execution.
Additional Information
Position Capture via Signal Input, page 108
TouchProbe_SD328A
Functional Description
This function block configures and starts position capture.
The function block returns the axis position at the occurrence of a trigger event.
The drive trigger parameters are provided by the device implementation.
Executing the function block MC_AbortTrigger while MC_TouchProbe is busy
aborts the function for the referenced trigger input.
A new rising edge at the input Execute overwrites and restarts the active trigger
function.
Graphical Representation
112 EIO0000003592.04
Function Blocks - Single Axis
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Outputs
Output Data type Description
ErrorID WORD Returns the value of a diagnostic code. Refer to Library Diagnostic Codes, page
30. If the value is 0 and if the output Error of this function block is set to TRUE,
then the diagnostic code can be read with the output AxisErrorID of the function
block MC_ReadAxisError, page 186.
RecordedPosition DINT Returns the value the axis position at the occurrence of a trigger event.
Default value: 0
EIO0000003592.04 113
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Elements Data type Description
Axis Axis_Ref – Reference to the axis (instance) for which the function
block is to be executed (corresponds to the name of
the axis). The name of the axis must be defined in the
EcoStruxure Machine Expert Devices tree.
TriggerInput MC_Trigger_Ref TouchProbeNumber UINT Selects the capture unit of the drive.
Notes
Use MC_AbortTrigger function block to abort TouchProbe_SD328A function block
execution.
Additional Information
Position Capture via Signal Input, page 108
TouchProbe_ILX
Functional Description
This function block configures and starts position capture.
The function block returns the axis position at the occurrence of a trigger event.
The drive trigger parameters are provided by the device implementation.
Executing the function block MC_AbortTrigger while MC_TouchProbe is busy
aborts the function for the referenced trigger input.
A new rising edge at the input Execute overwrites and restarts the active trigger
function.
114 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Outputs
Output Data type Description
EIO0000003592.04 115
Function Blocks - Single Axis
ErrorID WORD Returns the value of a diagnostic code. Refer to Library Diagnostic Codes, page
30. If the value is 0 and if the output Error of this function block is set to TRUE,
then the diagnostic code can be read with the output AxisErrorID of the function
block MC_ReadAxisError, page 186.
RecordedPosition DINT Returns the value the axis position at the occurrence of a trigger event.
Default value: 0
Inputs/Outputs
Input/Output Data type Elements Data type Description
Axis Axis_Ref – Reference to the axis (instance) for which the function
block is to be executed (corresponds to the name of
the axis). The name of the axis must be defined in the
EcoStruxure Machine Expert Devices tree.
TriggerInput MC_Trigger_Ref TouchProbeNumber UINT Selects the capture unit of the drive.
Notes
Use MC_AbortTrigger function block to abort TouchProbe_ILX function block
execution.
Additional Information
Position Capture via Signal Input, page 108
MC_AbortTrigger
Functional Description
This function block terminates a position capture.
116 EIO0000003592.04
Function Blocks - Single Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Outputs
Output Data type Description
EIO0000003592.04 117
Function Blocks - Single Axis
Inputs/Outputs
Input/Output Data type Elements Data type Description
Axis Axis_Ref – Reference to the axis (instance) for which the function
block is to be executed (corresponds to the name of
the axis). The name of the axis must be defined in the
EcoStruxure Machine Expert Devices tree.
TriggerInput MC_Trigger_Ref TouchProbeNumber UINT Selects the capture unit of the drive.
Additional Information
Position Capture via Signal Input, page 108
118 EIO0000003592.04
Function Blocks - Multi Axis
Graphical Representation
EIO0000003592.04 119
Function Blocks - Multi Axis
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Compensation movement:
• FALSE: With compensation movement
• TRUE: Without compensation movement
Default value: 1
Default value: 1
Outputs
Output Data type Description
120 EIO0000003592.04
Function Blocks - Multi Axis
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block requires the drive parameter GEARratio to be 0. This way,
RatioNumerator and RatioDenominator are used to calculate the gear ratio.
The velocity of the compensation movement can be limited via parameter settings.
The enabled direction of movement in the operating mode Electronic Gear is set
via the drive parameter GEARdir_enabl.
Once the operating mode is active, the compensation movement must not exceed
the maximum position deviation. If the required compensation movement exceeds
the maximum position deviation, an error is detected.
Refer to the documentation of the drive, page 10 for more details.
The operating mode Electronic Gear with the method velocity synchronization is
started with the function block GearIn_LXM32, page 126.
Additional Information
Operating Mode Electronic Gear, page 119
GearInPos_SD328A
Functional Description
This function block starts the operating mode Electronic Gear with the method
position synchronization.
In the operating mode Electronic Gear, movements are carried out synchronously
according to externally supplied reference value signals. A position reference
value is calculated on the basis of these external reference values plus an
adjustable gear ratio. The reference value signals can be A/B signals and P/D
signals.
A movement can be made using one of two methods:
• Position synchronization without compensation movement
Reference value signals supplied during an interruption caused by a halt
command or by a detected error of error class 1 are not taken into account.
• Position synchronization with compensation movement
Reference value signals supplied during an interruption caused by a halt
command or by a detected error of error class 1 are taken into account and
compensated for.
Refer to the documentation of the drive, page 10 for additional information on
compensation movements and error classes.
EIO0000003592.04 121
Function Blocks - Multi Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Compensation movement:
• FALSE: With compensation movement
• TRUE: Without compensation movement
Default value: 1
Default value: 1
Outputs
Output Data type Description
122 EIO0000003592.04
Function Blocks - Multi Axis
ErrorID WORD Returns the value of a diagnostic code. Refer to Library Diagnostic Codes, page
30. If the value is 0 and if the output Error of this function block is set to TRUE,
then the diagnostic code can be read with the output AxisErrorID of the function
block MC_ReadAxisError, page 186.
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block requires the drive parameter GEARratio to be 0. This way,
RatioNumerator and RatioDenominator are used to calculate the gear ratio.
The velocity of the compensation movement can be limited via parameter settings.
The enabled direction of movement in the operating mode Electronic Gear is set
via the drive parameter GEARdir_enabl.
Once the operating mode is active, the compensation movement must not exceed
the maximum position deviation. If the required compensation movement exceeds
the maximum position deviation, an error is detected.
Refer to the documentation of the drive, page 10 for more details.
Additional Information
Operating Mode Electronic Gear, page 119
GearInPos_ILX
Functional Description
This function block starts the operating mode Electronic Gear with the method
position synchronization.
In the operating mode Electronic Gear, movements are carried out synchronously
according to externally supplied reference value signals. A position reference
value is calculated on the basis of these external reference values plus an
adjustable gear ratio. The reference value signals can be A/B signals or P/D
signals.
EIO0000003592.04 123
Function Blocks - Multi Axis
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Compensation movement:
• FALSE: With compensation movement
• TRUE: Without compensation movement
Default value: 1
Default value: 1
124 EIO0000003592.04
Function Blocks - Multi Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The velocity of the compensation movement can be limited via parameter settings.
The enabled direction of movement in the operating mode Electronic Gear is set
via the drive parameter Gear.dirEnGear, 38:13.
Once the operating mode is active, the compensation movement must not exceed
the maximum position deviation. If the required compensation movement exceeds
the maximum position deviation, an error is detected.
Refer to the documentation of the drive, page 10 for more details.
Additional Information
Operating Mode Electronic Gear, page 119
EIO0000003592.04 125
Function Blocks - Multi Axis
GearIn_LXM32
Functional Description
This function block starts the operating mode Electronic Gear with the method
velocity synchronization.
In the operating mode Electronic Gear, movements are carried out according to
externally supplied reference value signals. A velocity reference value is
calculated on the basis of these external reference values plus an adjustable gear
ratio. The reference value signals can be A/B signals, P/D signals or CW/CCW
signals.
The movement is made synchronously (velocity synchronicity) with the supplied
reference value signals.
Refer to the documentation of the drive, page 10 for additional information on error
classes.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
This function block can be restarted while it is executed. The target values are
overwritten by the new values at the point in time the rising edge occurs.
Default value: 1
Default value: 1
126 EIO0000003592.04
Function Blocks - Multi Axis
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
This function block requires the parameter GEARratio to be 0. This way,
RatioNumerator and RatioDenominator are used to calculate the gear ratio.
The enabled direction of movement in the operating mode Electronic Gear is set
via the drive parameter GEARdir_enabl.
Refer to the documentation of the drive, page 10 for more details.
The operating mode Electronic Gear with the method Position Synchronization is
started with the function block GearInPos_LXM32.
EIO0000003592.04 127
Function Blocks - Multi Axis
In the operating mode Electronic Gear with the method Velocity Synchronization,
a position overtravel does not trigger a detected error. A position overtravel results
in a loss of the zero point.
Additional Information
Operating Mode Electronic Gear, page 119
128 EIO0000003592.04
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
EIO0000003592.04 129
Function Blocks - Administrative
Outputs
Output Data type Description
100.0 % corresponds to the continuous stall torque. The read value is indicated in
increments of 0.1 %.
Example: The value Torque = 300 is read. This means that the effective torque
amounts to 30 % of the nominal torque of the motor.
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Reading a Parameter, page 129
MC_ReadActualVelocity
Functional Description
This function block reads the velocity of the motor.
130 EIO0000003592.04
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
Outputs
Output Data type Description
EIO0000003592.04 131
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Reading a Parameter, page 129
MC_ReadActualPosition
Functional Description
This function block reads the position of the motor.
Graphical Representation
Inputs
Input Data type Description
132 EIO0000003592.04
Function Blocks - Administrative
Outputs
Output Data type Description
Default value: 0
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Reading a Parameter, page 129
MC_ReadAxisInfo
Functional Description
This function block gets status information on the axis.
EIO0000003592.04 133
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
Outputs
Output Data type Description
134 EIO0000003592.04
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Note
The values for the outputs LimitSwitchPos and LimitSwitchNeg are valid
depending whether the limit switches are defined in the I/O configuration of the
ILX2 and SD328A drives. This I/O configuration is read once when the application
is started and every time the power stage is enabled.
Do not modify the I/O configuration between the start of the application and
enabling the power stage or it will lead to invalid values of the outputs
LimitSwitchPos and LimitSwitchNeg.
Set the I/O configuration before the application is started.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only modify the I/O configuration while the power stage is disabled.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
Additional Information
Reading a Parameter, page 129
MC_ReadMotionState
Functional Description
This function block provides the status information on the ongoing movement.
EIO0000003592.04 135
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
Outputs
Output Data type Description
136 EIO0000003592.04
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Reading a Parameter, page 129
MC_ReadStatus
Functional Description
This function block reads the current status of the drive.
EIO0000003592.04 137
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
Outputs
Output Data type Description
138 EIO0000003592.04
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Reading a Parameter, page 129
EIO0000003592.04 139
Function Blocks - Administrative
MC_ReadParameter
Functional Description
This function block reads a value from a specific parameter.
Graphical Representation
140 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
ATV:
• 10: Actual velocity RFRD.
• 11: Target velocity LFRD.
• 1000: Selection via input Address.
LXM32:
• 1: Reference position (from profile generator). _RAMP_p_target
• 2: Positive position limit of software limit switch. MON_swLimP
• 3: Negative position limit of software limit switch. MON_swLimN
• 4: Monitoring of the positive software limit switch. (Activated: Bit 0 = 0.
Deactivated: Bit 0 = 1). MON_SW_Limits
• 5: Monitoring of the negative software limit switch. (Activated: Bit 0 = 0.
Deactivated: Bit 0 = 1). MON_SW_Limits
• 8: Maximum user-defined value for velocities in user-defined units
_ScaleVELmax
• 10: Actual velocity in user-defined units. _v_act
• 11: Target velocity in user-defined units. _RAMP_v_target
• 12/14: Maximum user-defined value for acceleration and deceleration in
user-defined units. _ScaleRAMPmax
• 1000: Selection via input Address.
Lexium ILA, ILE and ILS integrated drives (EtherNet/IP and Modbus TCP):
• 1: Reference position (from profile generator). _p_tarRAMPusr
• 2: Positive position limit of software limit switch. SPVswLimPusr
• 3: Negative position limit of software limit switch. SPVswLimNusr
• 4: Monitoring of the positive software limit switch. (Activated: Bit 0= 0.
Deactivated: Bit 0 = 1). SPV_SW_Limits
• 5: Monitoring of the negative software limit switch. (Activated: Bit 0 = 0.
Deactivated: Bit 0 = 1). SPV_SW_Limits
• 8: Maximum user-defined value for velocities in user-defined units. RAMPn_
max
• 10: Actual velocity in user-defined units. _n_act
• 11: Target velocity in user-defined units. _n_targetRAMP
• 1000: Selection via input Address.
Lexium ILA, ILE and ILS integrated drives (CANopen):
• 1: Reference position (from profile generator). p_ref
• 8: Maximum user-defined value for velocities in user-defined units. n_
maxDrv
• 10: Actual velocity in user-defined units. n_profile
• 11: Target velocity in user-defined units. n_target
• 1000: Selection via input Address.
EIO0000003592.04 141
Function Blocks - Administrative
Address DWORD Address of the parameter to be read. Can only be used if the input
ParameterNumber = 1000.
Refer to the documentation of the drive, page 10 for a list of the parameters with
the corresponding address of the parameters.
Outputs
Output Data type Description
Default value: 0
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Reading a Parameter, page 129
142 EIO0000003592.04
Function Blocks - Administrative
Writing a Parameter
MC_WriteParameter
Functional Description
This function block writes a value to a specific parameter.
Graphical Representation
EIO0000003592.04 143
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
ParameterNumber INT Value range: 0...65535
ATV:
• 1000: Selection via input Address.
LXM32:
• 2: Positive position limit of software limit switch. MON_swLimP
• 3: Negative position limit of software limit switch. MON_swLimN
• 4: Monitoring of the positive software limit switch. (Activated: Bit 0 = 0.
Deactivated: Bit 0 = 1). MON_SW_Limits
• 5: Monitoring of the negative software limit switch. (Activated: Bit 0 = 0.
Deactivated: Bit 0 = 1). MON_SW_Limits
• 1000: Selection via input Address.
Lexium ILA, ILE and ILS integrated drives (EtherNet/IP and Modbus TCP):
• 2: Positive position limit of software limit switch. SPVswLimPusr
• 3: Negative position limit of software limit switch. SPVswLimNusr
• 4: Monitoring of the positive software limit switch. (Activated: Bit 0 = 0.
Deactivated: Bit 0 = 1). SPV_SW_Limits
• 5: Monitoring of the negative software limit switch. (Activated: Bit 0 = 0.
Deactivated: Bit 0 = 1). SPV_SW_Limits
• 1000: Selection via input Address.
Lexium ILA, ILE and ILS integrated drives (CANopen):
• 1000: Selection via input Address.
Refer to the documentation of the drive, page 10 for a list of the parameters with
the corresponding address of the parameters.
Refer to the documentation of the drive, page 10 for a list of the parameters with
the corresponding length of the parameters.
Default value: 0
144 EIO0000003592.04
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If the inputs ParameterNumber, Address, Length or Value are modified while Busy
is TRUE, the new values are not used until the function block is executed again.
Additional Information
Writing a Parameter , page 143
SetDriveRamp_ATV
Functional Description
This function block configures the acceleration ramp and the deceleration ramp of
the axis.
EIO0000003592.04 145
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Acceleration DINT Value range: 0...9999
Default value: 30
Unit: 0.1 s.
Example:
With a value of 30, 3 seconds are required to accelerate from 0 to the nominal
frequency of the motor. It must be possible to reach the value with the available
torque of the motor.
Default value: 30
Unit: 0.1 s.
Example:
With a value of 30, 3 seconds are required to decelerate from the nominal
frequency of the motor to 0. It must be possible to reach the value with the
available torque of the motor.
Outputs
Output Data type Description
146 EIO0000003592.04
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter , page 143
SetDriveRamp_LXM32
Functional Description
This function block configures the acceleration ramp and the deceleration ramp of
the axis.
Graphical Representation
EIO0000003592.04 147
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Acceleration DINT Value range: 1...2147483647
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter , page 143
148 EIO0000003592.04
Function Blocks - Administrative
SetDriveRamp_SD328A
Functional Description
This function block configures the acceleration ramp and the deceleration ramp of
the axis.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Acceleration DINT Value range: 1...3000000
EIO0000003592.04 149
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter , page 143
SetDriveRamp_ILX
Functional Description
This function block configures the acceleration ramp and the deceleration ramp of
the axis.
150 EIO0000003592.04
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Acceleration DINT Value range: 30...3000000
Outputs
Output Data type Description
EIO0000003592.04 151
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter , page 143
SetLimitSwitch_LXM32
Functional Description
This function block configures the positive limit switch (LIMP) and the negative
limit switch (LIMN).
Graphical Representation
152 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
LimitSwitch UINT Value range: 1...2
Default value: 1
Default value: 0
• 0: Deactivate limit switch
• 1: Activate limit switch as normally closed contact
• 2: Activate limit switch as normally open contact
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
EIO0000003592.04 153
Function Blocks - Administrative
Notes
The function block can only be executed in the PLCopen state Disabled (operating
state 4 Ready To Switch On of drive). To transition to this state, disable the power
stage with the function block MC_Power.
Additional Information
Writing a Parameter , page 143
SetLimitSwitch_SD328A
Functional Description
This function block configures the positive limit switch (LIMP) and the negative
limit switch (LIMN).
Graphical Representation
154 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
LimitSwitch UINT Value range: 1...2
Default value: 1
Default value: 0
• 0: Deactivate limit switch
• 1: Activate limit switch as normally closed contact
• 2: Activate limit switch as normally open contact
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
EIO0000003592.04 155
Function Blocks - Administrative
Notes
The function block can only be executed in the PLCopen state Disabled (operating
state 4 Ready To Switch On of drive). To transition to this state, disable the power
stage with the function block MC_Power.
Additional Information
Writing a Parameter , page 143
SetLimitSwitch_ILX
Functional Description
This function block enables and disables the limit switches and sets the activation
edge.
The input LimitSwitch selects the address for the limit switch and the input Mode
sets the value for the activation edge.
NOTE: The function block can be executed only in state Disabled.
Graphical Representation
156 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
LimitSwitch UINT Value range: 1...2
Default value: 1.
Default value: 0.
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
EIO0000003592.04 157
Function Blocks - Administrative
Additional Information
Writing a Parameter, page 143
SetFrequencyRange_ATV
Functional Description
This function block configures the frequency ranges of the drive for the function
blocks MC_MoveVelocity and MC_Jog. If the frequency (speed of rotation)
becomes inferior to the value in LowFrequency, the drive uses the frequency
specified in LowFrequency without triggering an error message. If the frequency
(speed of rotation) exceeds the value in HighFrequency, the drive uses the
frequency specified in HighFrequency without triggering an error message.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
LowFrequency DINT Value range: 0...HighFrequency
Default value: 0
Unit: 0.1 Hz
158 EIO0000003592.04
Function Blocks - Administrative
Unit: 0.1 Hz
Unit: 0.1 Hz
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The function block can only be executed in the PLCopen state Disabled (operating
state 3 Switch On Disabled of drive). To transition to this state, disable the power
stage with the function block MC_Power.
Additional Information
Writing a Parameter, page 143
EIO0000003592.04 159
Function Blocks - Administrative
ResetParameters_ATV
Functional Description
This function block restores parameters to the factory settings.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Outputs
Output Data type Description
160 EIO0000003592.04
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The function block can only be executed in the PLCopen state Disabled (operating
state 4 Ready To Switch On of drive). To transition to this state, disable the power
stage with the function block MC_Power.
Additional Information
Writing a Parameter, page 143
ResetParameters_LXM32
Functional Description
This function block restores parameters to the factory settings.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
EIO0000003592.04 161
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The function block can only be executed in the PLCopen state Disabled (operating
state 4 Ready To Switch On of drive). To transition to this state, disable the power
stage with the function block MC_Power.
Parameters are restored to the factory settings with the exception of:
• Communication parameters
• Inversion of direction of movement
• Type of reference value signal for PTI interface
• Settings of encoder simulation
• Functions of digital inputs and outputs
The new settings are not saved to the non-volatile memory. Use
StoreParameters_LXM32 to save the new settings to the non-volatile memory.
Additional Information
Writing a Parameter, page 143
ResetParameters_SD328A
Functional Description
This function block restores parameters to the factory settings.
162 EIO0000003592.04
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Outputs
Output Data type Description
EIO0000003592.04 163
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
The function block can only be executed in the PLCopen state Disabled (operating
state 4 Ready To Switch On of drive). To transition to this state, disable the power
stage with the function block MC_Power.
Parameters are restored to the factory settings with the exception of:
• Communication parameters
• Inversion of direction of movement
• Type of reference value signal for position interface
• Settings of encoder simulation
• Functions of digital inputs and outputs
• Control mode
• Logic type
• Default operating mode for Local Control Mode
• Motor type
The new settings are not saved to the non-volatile memory. Use
StoreParameters_SD328A to save the new settings to the non-volatile memory.
Additional Information
Writing a Parameter, page 143
ResetParameters_ILX
Functional Description
This function block restores parameters to the factory settings.
Graphical Representation
164 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Outputs
Output Data type Description
Notes
The function block can only be executed in the PLCopen state Disabled (operating
state 4 Ready To Switch On of drive). To transition to this state, disable the power
stage with the function block MC_Power.
Parameters are restored to the factory settings with the exception of:
• Communication parameters
• Inversion of direction of movement
• Functions of digital inputs and outputs
The new settings are not saved to the non-volatile memory. Use
StoreParameters_ILX to save the new settings to the non-volatile memory.
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
EIO0000003592.04 165
Function Blocks - Administrative
Additional Information
Writing a Parameter, page 143
StoreParameters_ATV
Functional Description
This function block saves the parameter values to the non-volatile memory.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Outputs
Output Data type Description
166 EIO0000003592.04
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter, page 143
StoreParameters_LXM32
Functional Description
This function block saves the parameter values to the non-volatile memory.
Graphical Representation
EIO0000003592.04 167
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter, page 143
StoreParameters_SD328A
Functional Description
This function block saves the parameter values to the non-volatile memory.
168 EIO0000003592.04
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
Outputs
Output Data type Description
EIO0000003592.04 169
Function Blocks - Administrative
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter, page 143
StoreParameters_ILX
Functional Description
This function block saves the parameter values to the non-volatile memory.
Graphical Representation
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
170 EIO0000003592.04
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Writing a Parameter, page 143
EIO0000003592.04 171
Function Blocks - Administrative
Graphical Representation
Inputs
Input Data type Description
ATV320:
172 EIO0000003592.04
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Input Input_Ref Input is a special data type for digital and analog inputs (if available). The data
type corresponds to the axis reference from the device configuration (instance) to
which the inputs belong (similar to Axis). In the case of function blocks provided
for reading analog and digital inputs, Input replaces the input Axis.
Additional Information
Inputs and Outputs, page 172
EIO0000003592.04 173
Function Blocks - Administrative
MC_ReadDigitalInput
Functional Description
This function block reads the state of a digital input.
Graphical Representation
174 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
ATV320:
EIO0000003592.04 175
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Input MC_Input_Ref Input is a special data type for digital and analog inputs (if available). The data
type corresponds to the axis reference from the device configuration (instance) to
which the inputs belong (similar to Axis). In the case of function blocks provided
for reading analog and digital inputs, Input replaces the input Axis.
Additional Information
Inputs and Outputs, page 172
176 EIO0000003592.04
Function Blocks - Administrative
MC_ReadDigitalOutput
Functional Description
This function block reads the state of a digital output.
Graphical Representation
EIO0000003592.04 177
Function Blocks - Administrative
Inputs
Input Data type Description
ATV320:
178 EIO0000003592.04
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Output MC_Output_Ref Output is a special data type for digital and analog outputs (if available). The data
type corresponds to the axis reference from the device configuration (instance) to
which the outputs belong (similar to Axis). In the case of function blocks provided
for writing and reading digital inputs, Output replaces the output Axis.
Additional Information
Inputs and Outputs, page 172
EIO0000003592.04 179
Function Blocks - Administrative
MC_WriteDigitalOutput
Functional Description
This function block sets the state of a digital output.
Graphical Representation
180 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
OutputNumber UINT Default value: 1
ATV320:
EIO0000003592.04 181
Function Blocks - Administrative
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Output MC_Output_Ref Output is a special data type for digital and analog outputs (if available). The data
type corresponds to the axis reference from the device configuration (instance) to
which the outputs belong (similar to Axis). In the case of function blocks provided
for writing and reading digital inputs, Output replaces the output Axis.
Additional Information
Inputs and Outputs, page 172
182 EIO0000003592.04
Function Blocks - Administrative
Error Handling
ReadAxisWarning_LXM32
Functional Description
This function block reads the error code of the most recent detected error of error
class 0.
Graphical Representation
Inputs
Input Data type Description
Outputs
Output Data type Description
EIO0000003592.04 183
Function Blocks - Administrative
Refer to the drive documentation for a description of the error codes and classes.
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Error Handling, page 183
ReadAxisWarning_ILX
Functional Description
This function block reads the error code of the most recent detected error of error
class 0.
Graphical Representation
184 EIO0000003592.04
Function Blocks - Administrative
Inputs
Input Data type Description
Outputs
Output Data type Description
Refer to the drive documentation for a description of the error codes and classes.
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Error Handling, page 183
EIO0000003592.04 185
Function Blocks - Administrative
MC_ReadAxisError
Functional Description
This function block reads the error information relative to the most recent detected
error.
Graphical Representation
Inputs
Input Data type Description
Outputs
Output Data type Description
186 EIO0000003592.04
Function Blocks - Administrative
This output shows library-specific and drive-specific error codes. Refer to the
chapter Library Diagnostic Codes, page 30 for a list of the library-specific error
codes. Refer to the drive documentation for an overview of the drive-specific error
codes.
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Additional Information
Error Handling, page 183
MC_Reset
Functional Description
This function block acknowledges an error message. The error memory is cleared
so that it is available for new error messages. If the power stage is disabled by the
automatic error response, it can be enabled again if the cause of the detected
error has been rectified when the error message is acknowledged.
NOTE: If there is no drive error active, the function block itself will set ErrorId =
109 (Device state invalid).
Graphical Representation
EIO0000003592.04 187
Function Blocks - Administrative
Inputs
Input Data type Description
A rising edge of the input Execute starts the function block. The function block
continues execution and the output Busy is set to TRUE.
A rising edge at the input Execute is ignored while the function block is being
executed.
• FALSE: If Enable is set to FALSE, the outputs Done, Error, or
CommandAborted are set to TRUE for one cycle.
• TRUE: If Enable is set to FALSE, the outputs Done, Error, or
CommandAborted remain set to TRUE.
Outputs
Output Data type Description
Inputs/Outputs
Input/Output Data type Description
Axis Axis_Ref Reference to the axis (instance) for which the function block is to be executed
(corresponds to the name of the axis). The name of the axis must be defined in
the EcoStruxure Machine Expert Devices tree.
Notes
If you have activated this function block, simultaneous use of the Control_ATV
function block may lead to unintended behavior.
188 EIO0000003592.04
Function Blocks - Administrative
WARNING
UNINTENDED EQUIPMENT OPERATION
• Do not activate the Control_ATV function block when this function block is
active.
• Deactivate this function block or allow the function block to terminate before
activating the Control_ATV function block.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
Additional Information
Error Handling, page 183
EIO0000003592.04 189
Glossary
B
byte:
A type that is encoded in an 8-bit format, ranging from 00 hex to FF hex.
H
homing:
The method used to establish the reference point for absolute movement.
P
PLCopen:
For more information, refer to http://www.plcopen.org/.
EIO0000003592.04 191
Index MC_ReadStatus.................................................. 137
MC_Reset .......................................................... 187
MC_SetPosition ....................................................95
MC_Stop ..............................................................97
C MC_TorqueControl ................................................53
common inputs and outputs MC_TouchProbe ................................................. 108
behavior of function blocks with the input MC_WriteDigitalOutput ........................................ 180
Enable.............................................................36 MC_WriteParameter............................................ 143
behavior of function blocks with the input MoveVelocity_LXM32 ............................................61
Execute ...........................................................38 MoveVelocity_SD328A ..........................................64
Control_ATV .........................................................70
O
E operating mode Electronic Gear ........................... 119
error handling...................................................... 183 operating mode Homing.........................................84
operating mode Jog...............................................43
operating mode Profile Position ..............................77
G operating mode Profile Torque................................53
operating mode Profile Velocity ..............................59
GearIn_LXM32 ................................................... 126 operating mode SpeedControl................................75
GearInPos_ILX ................................................... 123
GearInPos_LXM32.............................................. 119
GearInPos_SD328A ............................................ 121 P
general description
libraries and related function blocks.....................16 position capture via signal input ............................ 108
library diagnostic codes ......................................30
PLCopen state diagram ......................................20
transitions between function blocks .....................21 R
ReadAnalogInput_ATV ........................................ 172
ReadAxisWarning_ILX......................................... 184
H ReadAxisWarning_LXM32 ................................... 183
Halt_LXM32........................................................ 106 reading a parameter ............................................ 129
Home_ILX ............................................................91 ResetParameters_ATV ........................................ 160
Home_LXM32.......................................................86 ResetParameters_ILX ......................................... 164
Home_SD328A .....................................................89 ResetParameters_LXM32.................................... 161
ResetParameters_SD328A .................................. 162
I
S
initialization...........................................................40
inputs and outputs ............................................... 172 SetDriveRamp_ATV ............................................ 145
SetDriveRamp_ILX.............................................. 150
SetDriveRamp_LXM32 ........................................ 147
J SetDriveRamp_SD328A ...................................... 149
SetFrequencyRange_ATV ................................... 158
Jog_ILX................................................................50 SetLimitSwitch_ILX ............................................. 156
Jog_LXM32 ..........................................................45 SetLimitSwitch_LXM32........................................ 152
Jog_SD328A ........................................................48 SetLimitSwitch_SD328A ...................................... 154
SetStopRamp_ILX .............................................. 101
SetStopRamp_LXM32 ...........................................99
M SetTorqueRamp_LXM32 .......................................54
MC_AbortTrigger................................................. 116 SpeedControl_ILX.................................................75
MC_Halt ............................................................. 104 Stop_LXM32....................................................... 102
MC_Home ............................................................84 stopping ...............................................................97
MC_Jog................................................................43 StoreParameters_ATV......................................... 166
MC_MoveAbsolute ................................................77 StoreParameters_ILX .......................................... 170
MC_MoveAdditive .................................................79 StoreParameters_LXM32 .................................... 167
MC_MoveRelative.................................................81 StoreParameters_SD328A................................... 168
MC_MoveVelocity .................................................59
MC_Power............................................................40
MC_ReadActualPosition ...................................... 132 T
MC_ReadActualTorque ....................................... 129 TorqueControl_LXM32...........................................56
MC_ReadActualVelocity ...................................... 130 TouchProbe_ILX ................................................. 114
MC_ReadAxisError ............................................. 186 TouchProbe_LXM32............................................ 110
MC_ReadAxisInfo ............................................... 133 TouchProbe_SD328A .......................................... 112
MC_ReadDigitalInput .......................................... 174
MC_ReadDigitalOutput........................................ 177
MC_ReadMotionState ......................................... 135
MC_ReadParameter ........................................... 140
192 EIO0000003592.04
V
VelocityControlAnalogInput_ATV ............................66
VelocityControlSelectAI_ATV .................................68
W
writing a parameter.............................................. 143
EIO0000003592.04 193
Schneider Electric
35 rue Joseph Monier
92500 Rueil Malmaison
France
+ 33 (0) 1 41 29 70 00
www.se.com