Programming
6.5.5.5 MC_MoveRelative_ISD51x
This function block commands a controlled motion of a
specified distance relative to the set position at the time of
execution. This action completes with velocity 0 if no
further actions are pending. Only positive values are
allowed for the inputs Velocity, Acceleration, and
Deceleration.
The command is transferred immediately and, in aborting
buffer mode, is also executed immediately.
MC_MoveRelative_ISD51x
AXIS_REF_-
Axis
ISD51x
BOOL
Execute
DINT
Distance
DINT
Velocity
UDINT
Acceleration
UDINT
Deceleration
MC_BUFFER_-
Bu erMode
MODE_ISD51x
UINT
TorqueLimit
Illustration 6.63 MC_MoveRelative_ISD51x
Variable
Data type Default
name
value
VAR_IN_OUT
Axis
AXIS_REF_ISD51x
VAR_INPUT
Execute
BOOL
FALSE
Distance
DINT
0
Velocity
DINT
0
Acceleration
UDINT
0
Deceleration
UDINT
0
MG36D102
Programming Guide
Done
BOOL
Busy
BOOL
Active
BOOL
Command
BOOL
Aborted
Error
BOOL
ErrorInfo
DD_ERROR_-
ISD51x
Description
Reference to the axis.
See
chapter 6.5.4.1 AXIS_REF_IS
D51x.
Start the motion at rising
edge.
Commanded position for
motion [user-defined
position unit]. Can be a
positive or negative value.
Value of the maximum
velocity (not necessarily
reached) [user-defined
velocity unit]. Only values
>0 allowed.
Value of the acceleration
(increasing energy of the
motor) [user-defined
acceleration unit]. Only
values >0 are allowed.
Value of the deceleration
(decreasing energy of the
motor) [user-defined
acceleration unit]. Only
values >0 are allowed.
Danfoss A/S © 01/2017 All rights reserved.
Variable
Data type Default
name
value
BufferMode
MC_BUFFE
mcAbort
R_MODE_I
ing_ISD5
SD51x
1x
TorqueLimit
UINT
0xFFFF
VAR_OUTPUT
Done
BOOL
Busy
BOOL
Active
BOOL
CommandA-
BOOL
borted
Error
BOOL
ErrorInfo
DD_ERROR_ISD51x
Table 6.44 MC_MoveRelative_ISD51x
The buffer mode itself is described in more detail in
chapter 2.4.1 Profile Position Mode. It is only possible to
have 1 buffered position. Trying to command a 2
buffered command leads to an error.
MC_MoveRelative with BufferMode = Aborting
The potentially ongoing positioning is aborted
immediately. The new target position is the actual position
of the axis at the point of the rising edge of Execute of the
function block, plus the value of the Distance input of
MC_MoveRelative_ISD51x. The trajectory parameters
(Velocity, Acceleration, and Deceleration) are used
immediately.
If the function block is activated in the axis state Continu-
ousMotion, the specified relative distance is added to the
set position at the point of the rising edge of Execute. This
applies for both buffer modes Buffered and Aborting.
Description
Defines the chronological
sequence of the function
block. See Table 6.43 for
available values.
Maximum torque used
during this motion [per
thousand of rated torque].
Commanded distance
reached.
The function block is not
finished and new output
values are to be expected.
The function block has
control on the axis.
Command is aborted by
another command.
An error has occurred
within the function block.
Error identification and
instance identifier.
See chapter 6.5.2.3 Error
Indication.
nd
205
6
6
Need help?
Do you have a question about the VLT Series and is the answer not in the manual?
Questions and answers