Position offset via profile generator
The position offset is transferred to the drive axis via a profile generator. The offset is specified via the lrSetOffsetPosX input.
The basic conditions for calculating the profile are specified via scPar.lrSetOffsetTrimVel , scPar.lrSetOffsetTrimAcc , scPar.lrSetOffsetTrimDec and scPar.lrSetOffsetTrimJerk .
Inputs relevant for the function
-
lrSetOffsetPosX, initial value: 0 unit
Outputs relevant for the function
-
lrSetOffset, initial value: 0 unit
-
lrSetOffsetTotal , initial value: 0 unit
Parameters relevant for the function
-
scPar.lrSetOffsetTrimVel , initial value: 10 unit/s
-
scPar.lrSetOffsetTrimAcc , initial value: 100 unit/s²
-
scPar.lrSetOffsetTrimDec , initial value: 100 unit/s²
-
scPar.lrSetOffsetTrimJerk , initial value: 10000 unit/s³
Example
|
No |
lrSetOffsetPosX |
lrOffsetTotal |
xOffsetTrimActive |
INFO |
|---|---|---|---|---|
|
1 |
0 units ä 200 units |
0 units |
FALSE ä TRUE |
The offset is corrected using the offset and trim profile parameters with the help of a profile generator to the lrSetOffsetPosX target value (200 units) |
|
2 |
200 units |
200 units |
TRUE æ FALSE |
The offset is corrected |
|
3 |
200 units æ 0 units |
200 units |
FALSE ä TRUE |
The offset is corrected using the offset and trim profile parameters with the help of a profile generator to the lrSetOffsetPosX target value (0 units) |