Scaling the position via the ramp generator

In order to be able to internally change the scaling factors continuously in spite of an erratic change in value at the inputs lrSetScalingX or lrSetScalingY , ramp generators can be used: ramp modes "3 (profile generator absolute)" and "4 (profile generator relative)" in the eScalingModeX or eScalingModeY parameter.

A ramp generator executes a compensating movement via a ramp function between the last and the new scaling factor. If the scaling factor is changed again during the compensating movement of the ramp generator, the ramp generator executes a new compensating movement with the current value.

If the ramp generators are active and the cam has been changed, the ramp generators are not deactivated. The compensating movement is executed in its entirety until it is finished.

 WARNiNG!

Injury to persons

Risk of injury is caused by unpredictable motor movements (especially by reversing direction of rotation)

Possible consequences

Death or severe injuries

Protective measures

  • Reversing is allowed during the compensating movement if the eAllowedDirection parameter is set to 0 (both).

  • If reversing during the compensating movement should be inhibited, the eAllowedDirection parameter must be set to 1 (positive) or the eAllowedDirection parameter must be set to 2 (negative).

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

  

  • 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