L_MC2P_CamDataPointYA
This FB contains the definition of the data points with YA 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.
- CamData input of the FB L_MC2P_CamRefFromStruct
L_MC2P_CamRefFromStruct1.itfCamData:= L_MC2P_CamDataPointYA1
|
|
|
|
L_MC2P_CamDataPointYA |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
LREAL |
- |
|
lrY |
|
|
|
|
|
LREAL |
- |
|
lrYss |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name Data type |
Information/possible settings |
|---|---|
|
lrY LREAL |
Slave position |
|
lrYss LREAL |
Deflection of the slave position |
Example: Create curve with three points
|
1 Create instances
L_MC2P_CamDataPointYA_1: ARRAY[0..2] OF L_MC2P_CamDataPointYA
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_CamDataPointYA_1[0].lrY := 0.0;
L_MC2P_CamDataPointYA_1[1].lrY := 100.0;
L_MC2P_CamDataPointYA_1[2].lrY := 360.0;
L_MC2P_CamDataPointYA_1[0].lrYss := 0.0;
L_MC2P_CamDataPointYA_1[1].lrYss := 0.0;
L_MC2P_CamDataPointYA_1[2].lrYss := 0.0;
L_MC2P_CamRefFromStruct_1(
xExecute:= TRUE,
sName:= 'Curve1' ,
udiCamDataCount:= 3 ,
itfCamData:= (L_MC2P_CamDataPointYA_1[0]),
eCamType:= L_MC2P_CamType.DataPointsEquiYA,
eInterpolationQuality:= L_MC2P_InterpolationQuality.Linear,
lrXStartPos:= 0.0,
lrXEndPos:= 360.0,
xDone=> ,
xBusy=> ,
xError=> ,
eErrorID=> );
|
Connection for MC_CamIn
L_MC2P_CamRefFromStruct