Absolute extension and compression factor of the master axis

Connection of the scaling factor lrSetScalingX < 0 to the master axis during runtime in the master cycle

  • Upper blue curve: master axis

    In the master cycle, the lrSetScalingX input = 0.5 (range 2).

  • Red curve: x axis with the eScalingModeX mode = 1 (instant absolute)

    The lrSetScalingX scaling factor has an immediate effect on the course of the x position and the x speed. The position and the speed of the x axis jump. The factor is multiplied in the calculation.

    x_pos = Master_pos * lrSetScalingX

    x_vel = Master_vel * lrSetScalingX

  • Lower blue curve: x axis with the eScalingModeX mode = 3 (profile generator absolute)

    The lrSetScalingX scaling factor also has a multiplicative effect on the position and the speed of the x axis. However, the difference is that the step change in the x position and in the x speed is extended via the ramp generator.

Parameters to be set

The parameters to be set are located in the L_TS2P_scPar_FlexCamState structure.

  • scPar.eScalingModeX , data type: L_TS2P_ScalingMode, initial value: "x_zero"

  • scPar.lrSetOffsetScalingXVel , data type: LREAL, initial value: 100

  • scPar.lrSetOffsetScalingXAcc , data type: LREAL, initial value: 1 000

  • scPar.lrSetOffsetScalingXDec , data type: LREAL, initial value: 1 000

  • scPar.lrSetOffsetScalingXJerk , data type: LREAL, initial value: 1 000 000