Executing the master axis with cams of variable cycle lengths

The master axis is the reference value for the cam. The x axis is coupled with the master axis via the position without smoothing. The x axis is included in the cam profile as an input. A non-linear movement of the y axis is calculated from the cam profile. The slave axis is coupled with the y axis via the position.

This makes it possible to derive a linear movement of the master axis to a non-linear movement of the slave axis.

Notice

Reference between the master axis and x axis:

In some applications it is necessary to adapt the master value for the cam. Since the master axis cannot be controlled from the TM, an intermediate value is inserted; a virtual x axis that can only be used within the "Flex Cam" TM.

  • The x axis is the direct master value for the cam and is synchronous with the master axis via position coupling.

  • The x axis can be manipulated in relation to the master axis via scaling factors and offset. The specification of the scaling value has a multiplicative effect on the x axis. The specification of the offset has an additional effect on the x axis.

  • The x axis has a variable cycle length that is specified in accordance with the cam format. The master axis has a constant cycle length and may not be simply modified during operation.

The xMasterAbsolute parameter is used to establish the reference of the position between the x axis and the master axis. This always refers to the first start or cycle of the currently active cam:

  • xMasterAbsolute = FALSE

    The x position of the cam is executed relative to the master position.

    For this purpose, the starting point of the x axis is set to the start of the cam when the cam is activated. In this way, cam-dependent cycle lengths can be implemented without having to adapt the "external" modulo cycle length of the master axis. However, in this case the absolute assignment between the master cycle and the x cycle of the cam is lost.

  • xMasterAbsolute = TRUE

    The master position is included directly in the cam calculation.

    For this purpose, the x position is directly set to the master position when the cam is activated. The cycle assignment between the master cycle and the x cycle of the cam is always maintained if the x cycle length corresponds to the modulo cycle length of the master axis.

    If the x cycle length is set so that it does not equal the modulo cycle length of the master axis, the relative reference to the master axis is set automatically after the first cam cycle (see above, xMasterAbsolute = FALSE).

Parameters to be set

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

  • xMasterAbsolute , BOOL, initial value: TRUE