恭喜,你发布的帖子
发布于 2017-05-12 00:36:43
8楼
对这块指令不是很理解,很熟悉,说说我的理解。
据我理解 MC_interpolate 是做插补用的,不能生成5阶多项式这种曲线连接。Step 7 指令中 MC_interpolate
与 MC_CamSectorAdd指令。MC_CamSectorAdd可以生成5阶多项式连接曲线。
不知道博途是不是升级了指令系统,你说的这个MC_interpolate用TO_CAM定义能说的具体些吗?
比如这个就是插点的:
#camtest.Point[#i16Index].x := "CamPoint".CamNumberPointX[#i16Index];
#camtest.Point[#i16Index].y := "CamPoint".CamNumberPointY[#i16Index];
#camtest.ValidPoint[#i16Index] := TRUE;
只需要给前面赋值,然后调用MC_interpolate指令就可以生产曲线。
前提您需要顶一个TO_CAM类型,里面有
Point Array[1..1000] of TO_Cam_Struct_PointData
Segment Array[1..50] of TO_Cam_Struct_SegmentData
Segment就可以定义多项式。
Segment[1] TO_Cam_Struct_SegmentData
xmin LReal
xmax LReal
a0 LReal
a1 LReal
a2 LReal
a3 LReal
a4 LReal
a5 LReal
a6 LReal
sineAmplitude LReal
sinePeriod LReal
sinePhase LReal
这是是其中一个segment包含的变量。怎么使用看自己想怎么利用这些变量来了。
请填写推广理由: