MC_CAM_REF (FB)ΒΆ
FUNCTION_BLOCK MC_CAM_REF
This function block represents a generic cam.
- InOut:
Scope
Name
Type
Initial
Comment
Input
wCamStructIDWORD16#DC34
By means of this variable, which always has a constant value, MC_CamTableSelect checks if the entered data structure is of type
MC_CAM_REF.byTypeDescribes the cam type, that is the way in which the cam is represented.
byVarTypeBYTEDefines the type of variables that enter in the curve table. Only used for byType SMC_CAM_TYPE.X or SMC_CAM_TYPE.XY
0: <unused>
1:
INT2:
UINT3:
DINT4:
UDINT5:
REAL6:
LREAL
xStartLREALStart position of the master defining the range of master values available
xEndLREALEnd position of the master defining the range of master values available.
nElementsINTNumber of elements that is depending on cam type the number of slave positions, master/slave positions or XYVA points.
nMaxElementsINT-1
nTappetsINTNumber of tappet switch actions.
pcePOINTER TO BYTE
Pointer to actual data element which type depends on byType:
POLY:
pcepoints to an array of |SMC_CAMElement|X:
pcepoints toSMC_CAMTable_..._1e.g.: SMC_CAMTable_LREAL_128_1XY:
pcepoints toSMC_CAMTable_..._2e.g.: SMC_CAMTable_UDINT_256_2XYVA:
pcepoints to an array of SMC_CAMXYVA
ptPOINTER TO SMC_CAMTappet
dwTappetActiveBitsDWORDInternal variable
strCAMNameSTRINGbyInterpolationQualityBYTE1
1: Linear interpolation, 3: Cubic interpolation
byCompatibilityModeBYTECompatibility mode: Bit0:
TRUE: Periodic execution of tables with master widthxPartofLMBOOLTRUE: Generated by programming system -> maintained by managers.