EtherCAT Slave  1.06.01

◆ EC_API_SLV_CiA402_SM_getErrorCode()

uint16_t EC_API_SLV_CiA402_SM_getErrorCode ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
uint8_t  axisNo_p 
)

Get Local Error value.

Internal CiA402 State Machine set error codes if an error is detected. The application should resolve the error.

Parameters
[in]pEcSlaveApi_pSlave API Handle Instance
[in]axisNo_pNumber of Axis.
Example
#include <ecSlvApi.h>
// required variables
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
uint8_t axisNo;
// the Call
retVal = EC_API_SLV_CiA402_getPendingErrorOptionCode(S_ecSlvApiHdl, axisNo);
Examples
ESL_cia402Demo.c.
EC_API_SLV_SHandle_t
struct EC_API_SLV_SHandle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition: ecSlvApi.h:135