Trimming per position offset

When trimming per position offset, the position of the slave axis is adjusted in relation to the master axis.

Preconditions

  • The technology module is in an error-free state.

  • The drive is enabled ( xReadyForMotion = TRUE).

  • scPar.eTrimMode = 1 (trimming per position offset)

Execution

For trimming, a profile is specified via the parameters speed, acceleration, deceleration and jerk ( scPar.lrSetOffsetTrimVel, scPar.lrSetOffsetTrimAcc, scPar.lrSetOffsetTrimDcc, scPar.lrSetOffsetTrimJerk ).

The position difference for trimming is specified in the scPar.lrTrimDist parameter.

When the xTrimPos input = TRUE, the slave axis is adjusted in the positive direction (+ scPar.lrTrimDist ) in relation to the master axis and when the xTrimNeg input = TRUE, it is adjusted in the negative direction ( - scPar.lrTrimDist ).

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 MasterAxis + scPar.lrSetOffsetTrimVel

  • resulting acceleration of: a AxisRes = a MasterAxis + scPar.lrSetOffsetTrimAcc

During the trimming process, the xOffsetTrimActive output = TRUE.

If there is a rising edge at the xTrimReset input = FALSE ä TRUE, the position offset resulting from the trimming will be moved to zero via the profile generator.

Notice

  • A running trimming command cannot be released by another trimming command.

  • If both inputs = TRUE, the axis decelerates to standstill and the eTMState status output changes to the "ERROR" state. The "ERROR" state is exited if both inputs = FALSE.

Inputs relevant for the function

  • xTrimPos, xTrimNeg

  • xTrimReset

Outputs relevant for the function

  • xOffsetTrimActive

Parameters relevant for the function

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

  • scPar.lrTrimDist , initial value: 1 unit

  • 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³

Measuring points relevant for the function

  • scSignalflow.MP_lrPosOffsetTotalVel

Example

Trimming 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

Trimming per position offset is activated. The slave axis positions itself in relation to the master axis in the positive direction by scPar.lrTrimDist = 90 units.

2

TRUEæFALSE

FALSE

TRUEæFALSE

SYNCHRONIZED

Synchronous travel

3

FALSE

FALSEäTRUE

FALSEäTRUE

SYNCHRONIZED

Trimming per position offset is activated. The slave axis positions itself in relation to the master axis in the negative direction by scPar.lrTrimDist = 90 units.

4

FALSE

TRUEæFALSE

TRUEæFALSE

SYNCHRONIZED

Synchronous travel