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]hAxisValid axis handle
[in]DevErrError code of device error that occurred
[out]pStringBufString buffer for storage of error message
[in]BufSizeSize 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]hAxisValid axis handle
[out]pLastDevErrReturns the last error that occurred
Returns
Error code - ERR_NOERR indicates success