Executing the cam cyclically

The xCamCyclic parameter is set to TRUE to execute the cams cyclically one after the other, i.e. after reaching the cam end point ( xEndOfProfile output = TRUE), the cam is executed once again from its start.

If the position of the master axis is located outside the defined x axis range, it is included in the cam calculation, i.e. from the second cam the reference to the master position is relative. 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 profile pulse is lost.

Parameters to be set

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

  • scPar.xCamCyclic , BOOL, initial value: TRUE

Executing the cam cyclically (absolute master, relative slave)

No

xSyncIn

xCammingBusy

xSynchronised

Info

A

FALSE ä TRUE

FALSE ä TRUE

TRUE

A cam with the following settings is executed:

xCamCyclic := TRUE // cyclic execution of the cams

xMasterAbsolute := TRUE // absolute reference between master axis and x axis (parameterization)

xSlaveAbsolute := FALSE // relative reference between slave axis and x axis

The x axis is set absolutely to the master axis.

B

TRUE

TRUE

TRUE

After completion of the 1st cam cycle, the x axis reference is set relative to the master axis. The slave axis is traversed relatively to the y axis as per the parameterization.

C

TRUE äæä FALSE

TRUE äæä FALSE

FALSE

After completion of the 4th cycle, xSncIn = FALSE declutches from the cam.