CETONI SDK  20220623
The software libraries for integration of all CETONI devices.

Overview

Error handling functions.

This groups defines all functions to handle axis system specific device errors.

+ Collaboration diagram for Error Handling:

Functions

LCA_Func long LCA_CALL LCA_GetDevErrMsg (dev_hdl hAxis, long DevErr, char *pStringBuf, short BufSize)
 Get descriptive error message for a certain device error that cured. More...
 
LCA_Func long LCA_CALL LCA_ReadLastAxisDevErr (dev_hdl hAxis, long *pLastDevErr)
 Query last occurred error code. More...
 

Function Documentation

◆ LCA_GetDevErrMsg()

LCA_Func long LCA_CALL 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

◆ LCA_ReadLastAxisDevErr()

LCA_Func long LCA_CALL 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