EtherCAT Slave  1.06.01

◆ EC_API_SLV_CiA402_SM_clearErrorCode()

void EC_API_SLV_CiA402_SM_clearErrorCode ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
uint8_t  axisNo_p 
)

Inform the CiA402 state machine whether a state change finished or not.

CiA402 users must inform regarding the error option codes, the state machine requires input from the application. For example, if a Quick Stop was triggered, the SM has to be informed whether the QS action finished or it is still pending to finish.

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
EC_API_SLV_CiA402_SM_clearErrorCode(S_ecSlvApiHdl, axisNo);
See also
EC_API_SLV_CiA402_SM_getErrorCode
Examples
ecSlvESI.c, and 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
EC_API_SLV_CiA402_SM_clearErrorCode
void EC_API_SLV_CiA402_SM_clearErrorCode(EC_API_SLV_SHandle_t *pEcSlaveApi_p, uint8_t axisNo_p)
Inform the CiA402 state machine whether a state change finished or not.
Definition: ecSlvApi_CiA402Stub.c:402