ResetAxis

Makes the transition from the state ErrorStop to Standstill or Disabled by resetting all internal axis-related errors — it doesn't affect the output of the function instances.

Syntax

KsCommandStatus ResetAxis(
     int Index
);

Parameters

Index [in]: the index of an axis. Indexes are zero based. Aliases affect this parameter.

Return value

Returns the KsCommandStatus structure.

Remarks

When an error occurs on the axis, it sends an alarm and enters the ErrorStop state. This function can clear the alarm.

Example

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

Requirements

  RT Win32
Minimum supported version 4.0 4.0
Header ksmotion.h ksmotion.h
Library KsApi_Rtss.lib KsApi.lib

See also

PowerAxis

SetAxisCamSwitch

SetAxisTouchProbe