GetAxisTorqueOffset
獲取軸的扭矩偏移量。
語法
KsError GetAxisTorqueOffset(
int Index,
double* Torque
);
參數
Index:軸的索引。索引以零為起點;別名將影響此參數。
Torque:接收扭矩偏移量的值指標。
回傳值
如果此函式執行成功,會回傳 errNoError
,否則會傳回錯誤碼。如需更多有關錯誤碼的資訊,請參閱 KsError 清單。
備註
此函式僅可在 TorqueOffset 功能啟用情況下使用。
範例
複製
double torOffset = 0.0;
KsError nRet = GetAxisTorqueOffset(0, &torOffset);
使用需求
RT | Win32 | |
---|---|---|
最低支援版本 | 4.0 | 4.0 |
標頭檔 | ksmotion.h | ksmotion.h |
程式庫 | KsApi_Rtss.lib | KsApi.lib |
參見