Relative positioning
Example: Relative positioning of a linear axis
|
Pos |
Description |
|---|---|
|
A |
Negative hardware limit switch |
|
B |
Load (e.g. slide) |
|
C |
Positive hardware limit switch |
|
D |
Current actual position |
|
E |
Distance to be travelled (= lrPos_Dist input) |
|
F |
Target position (input current actual position + lrPos_Dist) |
With relative positioning, the target position defined in the lrPos_Dist input corresponds to the distance to be travelled (F = E), meaning that the drive exactly travels the distance defined from the current actual position (D).
Prerequisite
-
The axis is enabled (xReadyForMotion = TRUE).
Execution
With a rising edge (FALSEäTRUE) at the xMoveRelExecute input, a travel to the relative target position (lrPos_Dist input) is started on the basis of the parameters for the motion profile (see below). The technology module changes to the "MOVEREL" state.
In order to reach the target position, the axis is brought to a standstill via the lrDec parameter. The axis reaches a standstill exactly in the target position.
After reaching the target position, the state changes back to STANDBY (xMoveRelExecute = FALSE).
During the travel process, the absolute target position in the lrPos_Dist input can be changed, which requires triggering the Execute input for positioning again.
Positioning can be interrupted via xAbort, xHalt or xQSPApplication. Via xFinishPositioning, positioning can be continued again and completed.
Travel diagram
|
No |
xMoveRel Execute |
xFuncBusy |
xFunDone |
xInPosition |
eTMState |
Info |
|---|---|---|---|---|---|---|
|
A |
FALSE ä TRUE |
FALSE ä TRUE |
FALSE |
FALSE |
STANDBYW MOVEREL |
The axis starts the positioning run to the relative target position 500 units. |
|
B |
TRUE |
TRUEæ FALSE |
FALSE ä TRUE |
FALSE ä TRUE |
MOVERELW STANDBY |
As soon as the relative target position has been reached, xInPosition and xFunDone are set to TRUE. |
|
C |
FALSE ä TRUE |
FALSE- |
TRUEæ FALSE |
TRUE |
STANDBY |
When xMoveRelExecute is set = FALSE, xFunDone changes from TRUEæFALSE. |
|
D |
FALSE ä TRUE |
FALSEä TRUEæ FALSE |
TRUEæ FALSEä TRUE |
TRUEæ FALSEä TRUE |
STANDBYW MOVERELW STANDBY |
The axis starts the positioning run to the relative target position 250 units. After reaching the relative target position, xInPosition and xFunDone are set to TRUE. |
Parameters to be set
Further parameters for relative positioning can be found in the AXIS_REF in subindex 130 ... 137.