Position offset via profile generator
This function can be used to specify a position offset via a profile generator.
Preconditions
-
The technology module is in an error-free state.
Type
The position offset is transferred to the drive axis via a profile generator. The offset is specified via the lrSetOffsetPos input.
The scPar.eAllowedDirection parameter is used to define the direction in which the drive may rotate:
-
in the positive and negative directions of rotation (0)
-
only in the positive direction of rotation (1)
only in the negative direction of rotation (2)
The basic conditions to calculate the profile are determined via the following parameters:
-
scPar.lrSetOffsetTrimVel
-
scPar.lrSetOffsetTrimAcc
-
scPar.lrSetOffsetTrimDec
-
scPar.lrSetOffsetTrimJerk
Inputs relevant for the function
The inputs are located in the L_TS2P_SyncAndCorrectionState function block.
-
lrSetOffsetPos
Outputs relevant for the function
The outputs are located in the L_TS2P_SyncAndCorrectionState function block.
-
lrOffsetTotal
Parameters relevant for the function
The parameters are located in the L_TS2P_scPar_SyncAndCorrectionState structure.
-
scPar.eAllowedDirection , initial value: 0
-
scPar.lrSetOffsetTrimVel , LREAL, initial value: 10 units/s
-
scPar.lrSetOffsetTrimAcc , LREAL, initial value: 100 units/s²
-
scPar.lrSetOffsetTrimDcc , LREAL, initial value: 100 units/s²
-
scPar.lrSetOffsetTrimJerk , LREAL, initial value: 100 000 units/s³
scPar.lrTrimDist , LREAL, initial value: 1 unit
Example:
If, for example, the master value axis is operated in the positive direction, scPar.eAllowedDirection = 1 (only in the positive direction of rotation) can be used to prevent the drive axis from rotating in the negative direction.
Position offset
|
No. |
lrSetOffsetPos |
lrOffsetTotal |
xOffsetTrimActive |
Description |
|---|---|---|---|---|
|
A |
0 units -> 200 units |
0 units |
FALSE ä TRUE |
The offset is corrected to the lrSetOffsetPos target value (200 units) using the offset and trimming profile parameters via a profile generator. |
|
B |
200 units |
200 units |
TRUE æ FALSE |
The offset is corrected. |
|
C |
200 units -> 0 units |
200 units |
FALSE ä TRUE |
The offset is corrected to the lrSetOffsetPos target value (0 units) using the offset and trimming profile parameters via a profile generator. |