Offset for the master and slave axis

An offset for the master and slave axis can be specified via the inputs lrSetOffsetPosX or lrSetOffsetPosY .

The selection mode for accepting the offset values is specified via the parameters eOffsetModeX and eOffsetModeY .

The selection of the mode for accepting offset values for the master axis is set via the parameter eOffsetModeX, and for the slave axis via the parameter eOffsetModeY. (L_TS2P_scPar_FlexCamHigh

Setting mode:

  • eOffsetModeX

  • eOffsetModeY

Description

0 (x_zero)

Standard setting:

The offset values are accepted in the "zero crossing" of the cam. The "zero crossing" is defined as the starting point of a cam if the direction of rotation of the master is positive, or as the end point of a cam if the direction of rotation of the master is negative.

1 (Instant absolute)

The offset values are accepted immediately after they have been specified or changed. Direct specification or change of the offset values causes a step change of the setpoint position even if the axes are at standstill.

2 (profile generator absolute)

The ramp generator brings the current offset to the setpoint offset via the following profile parameters:

  • lrSetOffsetScalingXVel , lrSetOffsetScalingYVel

  • lrSetOffsetScalingXAcc , lrSetOffsetScalingYAcc

  • lrSetOffsetScalingXDec, lrSetOffsetScalingYDec

  • lrSetOffsetScalingXJerk, lrSetOffsetScalingYJerk

The lrJerk parameter limits the maximum jerk. Generally, the jerk is set to 100 times the acceleration.

If 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.

Parameters to be set

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

  • scPar.eOffsetModeX , data type: L_TS2P_OffsetMode, 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.OffsetModeY , data type: L_TS2P_OffsetMode, 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