InchAxis
命令永不停止的控制運動在有最大距離限制下以指定速度移動,當軸到達最大距離時將會自動停止。
語法
KsCommandStatus InchAxis(
int Index,
double Distance,
double Velocity,
double Acceleration,
double Deceleration,
double Jerk,
McDirection Direction
);
參數
Index [in]:軸索引。索引以零為起點;別名將影響此參數。
Distance [in]:此運動移動的最大距離。
Velocity [in]:指定速度的值,[單位/秒]。
Acceleration [in]:加速度值,單位由 McProfileType 類型決定,(馬達的增加能源) [單位/秒2] 或 [秒]。
Deceleration [in]:減速度值,單位由 McProfileType 類型決定,(馬達的減少能源) [單位/秒2] 或 [秒]。
Jerk [in]:加加速度值,單位由 McProfileType 類型決定,為 [單位/秒3] 或 [秒]。
Direction [in]:英吋移動的方向,為 mcPositiveDirection
或 mcNegativeDirection
。請見 McDirection 類型。
回傳值
返回 KsCommandStatus 結構。
範例
N/A
使用需求
RT | Win32 | |
---|---|---|
最低支援版本 | 4.0 | 4.0 |
標頭檔 | ksmotion.h | ksmotion.h |
程式庫 | KsApi_Rtss.lib | KsApi.lib |
參見