Position offset via profile generator
The slave axis is moved with a variable position offset to the master axis. The offset is specified by a profile generator.
Preconditions
-
The technology module is in an error-free state.
-
The drive is enabled ( xReadyForMotion = TRUE).
Execution
For positioning, a profile is specified via the parameters speed, acceleration, deceleration and jerk ( scPar.lrSetOffsetTrimVel, scPar.lrSetOffsetTrimAcc, scPar.lrSetOffsetTrimDcc, scPar.lrSetOffsetTrimJerk ).
The lrSetOffsetPos input specifies the position offset to the master axis. The scPar.xLoadOffset parameter determines whether the position offset is cyclic or loaded via a profile generator.
The allowed direction of rotation of the slave axis is determined by the eAllowedDirection parameter:
|
Setting eAllowedDirection |
Direction setting for the clutch and profile generator of the offset and trim functions |
|---|---|
|
0 (both directions) |
The slave axis may engage in both directions. An offset or trim may be moved in both directions. |
|
1 (positive direction) |
The slave axis may only engage in positive direction. An offset may only be moved in positive direction. A negative offset is only moved to the extent that the speed of the total conductance does not become less than '0'. |
|
2 (negative direction) |
The slave axis may only engage in negative direction. An offset may only be moved in negative direction. A positive offset is only moved to the extent that the speed of the total conductance does not exceed '0'. |
If the offset function is active, the xOffsetTrimActive output = TRUE.
Inputs relevant for the function
-
lrSetOffsetPos , initial value: 0 units
Outputs relevant for the function
-
lrOffsetTotalVel
-
xOffsetTrimActive
Parameters relevant for the function
-
scPar.xLoadOffset, initial value: FALSE
-
eAllowedDirection , initial value: 0 (both directions)
-
scPar.lrSetOffsetTrimVel , initial value: 10 [unit/s]
-
scPar.lrSetOffsetTrimAcc , initial value: 100 [unit/s²]
-
scPar.lrSetOffsetTrimDcc , initial value: 100 [unit/s²]
-
scPar.lrSetOffsetTrimJerk , initial value: 10 000 [unit/s³]
Example
Single cycle operation
|
No. |
lrSetOffsetPos |
lrOffsetTotal |
xOffsetTrimActive |
Info |
|---|---|---|---|---|
|
1 |
0 units 200 units |
0 units |
FALSEäTRUE |
The offset is corrected to the target value lrSetOffsetPos = 200 units via a profile generator. |
|
2 |
200 units |
200 units |
TRUEæFALSE |
The offset is corrected. |
|
3 |
200 units 0 units |
200 units |
FALSEäTRUE |
The offset is corrected to the target value lrSetOffsetPos = 0 units via a profile generator. |