This function block performs a movement with a specified distance with reference to the previous target position.
The function block replaces another positioning function block currently active on the axis. It performs a movement to a new target position which is calculated based on the target position of the previously active positioning function block plus the value of the Distance input of MC_MoveAdditive. If no function block is active, a new movement is started equal to the functionality of MC_MoveRelative.
Input |
Data type |
Description |
---|---|---|
Axis |
Axis_Ref |
Reference to the axis for which the function block is to be executed. |
Execute |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. 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. |
Distance |
LREAL |
Value range: -2147483648...2147483647 Default value: 0. Target position relative to the previous target position in user-defined units. |
Velocity |
LREAL |
Value range: A positive LREAL value Default value: 0 Target velocity in user-defined units. |
Acceleration |
LREAL |
Value range: A positive LREAL value Default value: 0 Acceleration in user-defined units. |
Deceleration |
LREAL |
Value range: A positive LREAL value Default value: 0 Deceleration in user-defined units. |
Jerk |
LREAL |
Value range: A positive LREAL value and zero
Default value: 0 |
BufferMode |
Default value: Aborting Buffer mode. Possible values:
See MC_Buffer_Mode for a description of the values. |
Output |
Data type |
Description |
---|---|---|
Done |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Busy |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Active |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
CommandAborted |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Error |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
ErrorID |
This enumeration provides diagnostics information. |