L_MC2P_CamDataPointY

This FB contains the definition of the data points with Y information (equidistant).

The instance of the FB

  • is an interface of L_MC2P_IMotionData type
  • can be directly connected to an input of L_MC2P_IMotionData type of another FB, e.g.
    Programming example:
    L_MC2P_CamRefFromStruct1.itfCamData:= L_MC2P_CamDataPointY1

 

 

 

L_MC2P_CamDataPointY

 

 

 

LREAL

-

lrY

 

 

 

 

 

 

 

 

Name

Data type

Information/possible settings

lrY

LREAL

Slave position

Example: Create curve with three points
Create instances
L_MC2P_CamDataPointY_1: ARRAY[0..2] OF L_MC2P_CamDataPointY;
L_MC2P_CamREfFromStruct_1: L_MC2P_CamREfFromStruct;
MC_CamIn_1: MC_CamIn;
Call FBs and execute curve
// define 3 points within the curve 360 units
L_MC2P_CamDataXYVA_1[0].lrY  := 0.0;
L_MC2P_CamDataXYVA_1[1].lrY  := 100.0;
L_MC2P_CamDataXYVA_1[2].lrY  := 360.0;
L_MC2P_CamRefFromStruct_1(
xExecute:= TRUE,
sName:= 'Curve1' ,
udiCamDataCount:= 3 ,
itfCamData:= (L_MC2P_CamDataPointY_1[0]),
eCamType:= L_MC2P_CamType.DataPointsEquiY,
eInterpolationQuality:= L_MC2P_InterpolationQuality.Linear,
lrXStartPos:= 0.0,
lrXEndPos:= 360.0,
xDone=> ,
xBusy=> ,
xError=> ,
eErrorID=> );

Connection for MC_CamIn L_MC2P_CamRefFromStruct