Position trimming
For trimming the position of the slave axis is adjusted in relation to the master axis.
Preconditions
-
If the TM is in the AccDecSync or Synchronised state, trimming is commissioned via the profile generation. If the TM is disengaged, the trim value is transferred immediately: this does not apply to velocity trimming is activated.
-
Velocity trimming(eTrimMode = 0 ) does not exceed a trim value. in disengaged state.
Type
Signal flow trimming
Trimming per position offset (scPar.eTrimMode = 1)
The trimming process corresponds to a relative positioning. With each positive edge at the xTrimPos input, the position to be trimmed is increased by the value of scPar.lrTrimDist . With each positive edge at the xTrimNeg input, the position to be trimmed is decreased by the value of scPar.lrTrimDist .
Trimming per velocity offset (scPar.eTrimMode = 0)
-
As long as the xTrimPos input is set to TRUE, the trimming is in the positive direction.
-
As long as the xTrimNeg input is set to TRUE, the trimming is in the negative direction.
-
If both inputs are TRUE, the trimming is stopped.
The acceleration and velocity of the trimming are superimposed on those of the master axis. The results for the axis to be trimmed are as follows:
Resulting speed of v AxisRes = v MasterAxis + lrSetOffsetTrimVel
Resulting acceleration of a AxisRes = a MasterAxis + lrSetOffsetTrimAcc
Inputs relevant for the function
The inputs are located in the L_TS2P_SyncAndCorrectionState function block.
-
xTrimPos, xTrimNeg
Parameters relevant for the function
The parameters are located in the L_TS2P_scPar_SyncAndCorrectionState structure.
-
scPar.lrTrimDist , LREAL, initial value: 1 unit
-
scPar.lrSetOffsetTrimVel , LREAL, initial value: 1 unit
-
scPar.lrSetOffsetTrimAcc , LREAL, initial value: 1 unit
Example
Trimming in the positive and negative directions by 90 units at a maximum trimming speed of 50 units/s in each case
|
No |
xTrimPos |
xTrimNeg |
xOffsetTrimActive |
eTMState |
Description |
|---|---|---|---|---|---|
|
1 |
FALSE ä TRUE |
FALSE |
FALSE ä TRUE |
SYNCHRONIZED |
Position trimming in the positive direction by lrTrim-Dist = 90 units |
|
2 |
TRUE æ FALSE |
FALSE |
TRUE æ FALSE |
SYNCHRONIZED |
Synchronous travel |
|
3 |
FALSE |
FALSE ä TRUE |
FALSE ä TRUE |
SYNCHRONIZED |
Position trimming in the negative direction by lrTrim-Dist = -90 units |
|
4 |
FALSE |
TRUE æ FALSE |
TRUE æ FALSE |
SYNCHRONIZED |
Synchronous travel |