CamDescription

An object of this type represents a cam description that can be processed with the MC_CamIn function block, for example. A cam description can be integrated into the user program by inserting an object of the type "CAM Description" in the IEC Editor or by declaring a variable of the type CamDescription and configuring the cam description directly in the user program.

Application examples can be found in the chapters Realizing a cam description with the CAM Editor and Realizing a cam description via an object of type CamDescription.

VAR_INPUT

Variable name

Data type

Description

CamSegment

ARRAY [1..DisplaceableConstants.gc_iMaxNumberOfCamSegments] OF ST_CamSegment

Array, each component of which represents a cam segment. The type of mathematical function used, the master or slave position, and the derivatives on the left and right margins of the segment are defined for each cam segment.

X_Offset

LREAL

Displacement of the cam in the X direction

Y_Offset

LREAL

Displacement of the cam in the Y direction

uiNrOfDefinedCamSegments

UINT

Number of cam segments configured by the user