Relative 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 eScalingModeX mode = 2 (instant relative)

    The lrSetScalingY scaling factor has an immediate effect on the course of the slave speed. This keeps the position of the slave axis steady and the y speed gets a step change.

    Resulting speed of the slave axis: Slave_vel = y_vel * lrSetScalingY

  • Lower blue curve: slave axis with the eScalingModeY mode = 4 (profile generator relative)

    As in mode 2 (relative), the lrSetScalingY scaling factor only has an effect on the speed. However, the difference is that the step change in the slave speed is blended via the ramp generator.

Parameters to be set

The parameters to be set are located in the L_TS2P_scPar_FlexCamState 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