Error Handling
Overview
Error handling functions.
This groups defines all functions to handle axis system specific device errors.
Collaboration diagram for Error Handling:
Functions | |
long | LCA_GetDevErrMsg (dev_hdl hAxis, long DevErr, char *pStringBuf, short BufSize) |
Get descriptive error message for a certain device error that cured. More... | |
long | LCA_ReadLastAxisDevErr (dev_hdl hAxis, long *pLastDevErr) |
Query last occurred error code. More... | |
Function Documentation
long LCA_GetDevErrMsg | ( | dev_hdl | hAxis, |
long | DevErr, | ||
char * | pStringBuf, | ||
short | BufSize | ||
) |
Get descriptive error message for a certain device error that cured.
- Parameters
-
[in] hAxis Valid axis handle [in] DevErr Error code of device error that occurred [out] pStringBuf String buffer for storage of error message [in] BufSize Size of string buffer in bytes
- Returns
- Error code - ERR_NOERR indicates success
long LCA_ReadLastAxisDevErr | ( | dev_hdl | hAxis, |
long * | pLastDevErr | ||
) |
Query last occurred error code.
If device is in error state (LCA_IsAxisInFaultState()) then this function returns the last error that occurred.
- Parameters
-
[in] hAxis Valid axis handle [out] pLastDevErr Returns the last error that occurred
- Returns
- Error code - ERR_NOERR indicates success