GetCamTable
獲取凸輪表的資訊。
語法
KsError GetCamTable(
int Index,
McCamTable* Table,
int Length,
double* MasterPositions,
double* SlavePositions,
double* PointParameters
);
參數
Index [in]:凸輪表索引。索引以零為起點;別名將影響此參數。
Table [in]:欲讀取的凸輪表,請見 McCamTable 結構。
Length [in]:主從位置緩衝區的長度。
MasterPositions [out]:凸輪表中儲存主位置的陣列。
SlavePositions [out]:凸輪表中儲存從位置的陣列。
PointParameters [out]:表點的附加參數,取決於其插補類型。
直線插補:null。
Poly5 插補:有四個點類型,"!=" 表示 "不等於"。
- StopPoint: Vel = 0; Acc = 0;
- VelocityPoint: Vel != 0; Acc = 0;
- AccelerationPoint: Vel = 0; Acc != 0;
- MovePoint: Vel != 0; Acc != 0;
回傳值
如果此函式執行成功,會回傳 errNoError
,否則會傳回錯誤碼。如需更多有關錯誤碼的資訊,請參閱 KsError 清單。
範例
N/A
使用需求
RT | Win32 | |
---|---|---|
最低支援版本 | 4.0 | 4.0 |
標頭檔 | ksmotion.h | ksmotion.h |
程式庫 | KsApi_Rtss.lib | KsApi.lib |
參見