Position trimming

Trim partial signal flow

Condition

scPar.eTrimMode = 1 (trimming per position offset)

Type

Position trimming makes it possible to adjust the position of the slave axis relative to the master axis. The position difference set in scPar.lrTrimDist is trimmed in each case.

Increment trimming

Increment trimming can be selected by setting the scPar.eTrimMode parameter to L_TS2P_TrimMode.position .

The trimming process corresponds to a relative positioning. Each positive edge at xTrimPos increases the position to be trimmed by the value of scPar.lrTrimDist .

Speed trimming

Speed trimming can be selected by setting the scPar.eTrimMode parameter to L_TS2P_TrimMode.velocity .

  • Speed-based trimming is carried out in a positive direction as long as the xTrimPos input is set.

  • Speed-based trimming is carried out in a negative direction as long as the xTrimNeg input is set.

  • If both xTrimPos and xTrimNeg are set to TRUE, ...

The acceleration and velocity of the trimming superimpose the ones of the master axis. Hence, the results for the axis to be trimmed are as follows:

  • resulting speed of: v AxisRes = v master axis + lrSetOffsetTrimVel

  • resulting acceleration of: a AxisRes = a master axis + lrSetOffsetTrimAcc

Inputs relevant for the function

  • xTrimPos

  • xTrimNeg

Outputs relevant for the function

  • xOffsetTrimActive

  • lrOffsetTotal

Parameters relevant for the function

  • scPar.eTrimMode , initial value: 1 (trimming by position offset)

  • scPar.lrTrimDist , initial value: 1 unit

  • 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: 10 000 unit/s³

Measuring points relevant for the function

  • scSignalflow.MP_lrOffsetTrim

Example

sTrimming in positive/negative direction by 90 units at a maximum trimming speed of 50 units/s

No

xTrimPos

xTrimNeg

xOffsetTrimActive

eTMState

INFO

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 a negative direction by -lrTrimDist = -90 units

4

FALSE

TRUE æ FALSE

TRUE æ FALSE

SYNCHRONIZED

Synchronous travel