Motion.StopAxis 方法
命令一個控制運動停止,並將軸設定為停止 (Stopping) 狀態。此方法將中斷所有執行中的函式,當軸處於停止 (Stopping) 狀態,其他函式將無法移動軸,當軸到達速度零後,KsCommandStatus 的 Done
欄位將立即設為 true。欲離開停止 (Stopping) 狀態並轉為靜止 (Standstill) 狀態,請使用 Motion.ReleaseAxis。
命名空間:IntervalZero.KINGSTAR.Local.Api
組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
語法
public KsCommandStatus StopAxis(
int Index,
double Deceleration,
double Jerk
)
Public Function StopAxis(
Index As Integer,
Deceleration As Double,
Jerk As Double
) As KsCommandStatus
參數
Index [in]
型別:int
軸索引。索引以 0 為起始;別名將影響此參數。
Deceleration [in]
型別:double
減速度值,單位取決於 McProfileType。[單位/秒2] 或 [秒]
Jerk [in]
型別:double
加加速度值,單位取決於 McProfileType。[單位/秒3] 或 [秒]
回傳值
回傳 KsCommandStatus 類別。
範例
N/A
參見