Clutching-in with "CAM absolute" coupling mode

The slave axis is positioned to the resulting y position of the cam in a path-based manner using a 5th grade polynomial.

In this mode, the slave axis can synchronise to a cam movement that is already running, providing the possibility that the clutch-in process takes several cam cycles, the transition to cam operation taking a bit longer.

The clutch-in direction relating to the direction of rotation of the master axis is set via the eAllowedDirection parameter.

The lrMasterSyncInPos parameter determines the position of the master axis from which the slave axis is to be synchronised.

The lrMasterSyncInDist parameter is used to define the distance of the master axis over which the slave axis is traversed to the curve position. The slave axis can only be synchronized to the y position of the cam while the master axis is running.

If the master axis is stopped during the clutch-in process, the slave axis is also stopped. If the master axis continues to run, the slave axis clutch-in process continues.

Notice

Path-based clutch-in of the slave axis with or without reversing:

If the eAllowedDirection parameter is set to 0 (both), the slave axis is allowed to reverse (movement against the master axis) during the clutch-in process. If reversing during the clutch-in process should be inhibited, the eAllowedDirection parameter must be set to 1 (positive) or the eAllowedDirection parameter must be set to -1 (negative).

Parameters to be set

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

  • scPar.eSyncMode , data type: L_TS2P_SyncModeFlexCam, initial value: "Profile generator absolute"

  • scPar.eAllowedDirection , data type: L_TB2P_AllowedDirection, initial value: "both"

  • scPar.lrMasterSyncInDist , data type: LREAL, initial value: 100

  • scPar.lrMasterSyncInPos , data type: LREAL, initial value: 0

Clutching in to the cam via the "CAM absolute" mode

No

xSyncIn

xCammingBusy

xAccDecSync

xSynchronised

Info

A

FALSE äTRUE

FALSE äTRUE

FALSE äTRUE

FALSE

A cam is executed with the following settings:

xCamCyclic := FALSE // cam executed once

If there is a rising edge at the xSyncIn input, the slave axis is clutched in to the y axis within one PLC cycle. In doing so, the slave position is maintained. The internal offset is set between the y position and the slave position. The y position is calculated from the cam. The xAccDecSync output is set for one PLC cycle.

B

TRUE

TRUE

TRUE

FALSE

The cam reaches the end of the defined range. The xEndOfProfile status is set for one PLC cycle.

C

TRUE

TRUE

FALSE

TRUE

The slave axis reaches the position of the y axis. This completes the clutch-in process. The slave axis moves synchronously to the y axis.

D

TRUE

FALSE

FALSE

FALSE

The cam reaches the end of the defined range. xEndOfProfile is set for one PLC cycle.