ResetAxis

重设所有内部轴的相关错误以将状态从 ErrorStop 转化为 Standstill 或 Disabled ,此不会影响函式实例的输出。

语法

KsCommandStatus ResetAxis(
     int Index
);

参数

Index [in]:轴索引。索引以零为起点;别名将影响此参数。

回传值

返回 KsCommandStatus 结构。

备注

当轴发生错误将发送警报并进入 ErrorStop 状态,此函式可清除此警报。

范例

BOOL Enable(INT Index) {
   KsCommandStatus status = WaitForCommand(5, TRUE, ResetAxis(Index));
   status = WaitForCommand(5, TRUE, PowerAxis(Index, TRUE, TRUE, TRUE));
   return TRUE;
}

使用需求

  RT Win32
最低支援版本 4.0 4.0
标头档 ksmotion.h ksmotion.h
程式库 KsApi_Rtss.lib KsApi.lib

参见

PowerAxis

SetAxisCamSwitch

SetAxisTouchProbe