Executing the cam once

The xCamCyclic parameter is set to FALSE to execute the cam once, i.e. after reaching the cam end point ( xEndOfProfile output = TRUE), the master axis stops while the setpoint for the slave axis remains unchanged.

If the master position is outside the defined cam, the last valid value for the slave axis is output.

Parameters to be set

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

  • scPar.xCamCyclic , BOOL, initial value: TRUE

Executing the cam once

No

xSyncIn

xCammingBusy

xEndOfProfile

Info

A

FALSE ä TRUE

FALSE ä TRUE

FALSE

A cam with the following settings is executed:

xCamCyclic := FALSE // cam executed once

B

TRUE

TRUE

TRUE

After one cam cycle, the master axis stops while the setpoint for the slave axis remains unchanged.

For a PLC clock cycle,xEndOfProfile is set to TRUE; this means that the cam processing will be completed.