Absolute extension and compression factor of the slave axis

Connection of the scaling factor lrSetScalingY < 0 to the slave axis during runtime in the y cycle

  • Upper blue curve: y axis

    In the y cycle, the lrSetScalingY input = 0.5 (range 2).

  • Red curve: slave axis with the eScalingModeY mode = 1 (instant absolute)

    The lrSetScalingY scaling factor has an immediate effect on the course of the slave position and the slave speed; both jump. The factor is multiplied in the calculation.

    Slave_pos = y_pos * lrSetScalingY

    Slave_vel = y_vel * lrSetScalingY

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

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

Parameters to be set

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

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

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

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

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

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