GetAxisError
Gets general axis errors not relating to the functions, such as axis errors, drive errors, and communication errors.
Syntax
KsError GetAxisError(
int Index,
WORD* ErrorId
);
Parameters
Index [in]: the index of an axis. Indexes are zero based. Aliases affect this parameter.
ErrorId [out]: error identification. The value is vendor-specific and should be checked in your servo drive manual.
Return value
If the function succeeds, it returns errNoError
, otherwise an error code. For more information about the error code, see the KsError list.
Remarks
If ErrorId is 11, it could be KINGSTAR position error, or servo drive's error (see your servo drive's manual).
Example
N/A
Requirements
RT | Win32 | |
---|---|---|
Minimum supported version | 4.0 | 4.0 |
Header | ksmotion.h | ksmotion.h |
Library | KsApi_Rtss.lib | KsApi.lib |
See also