EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_CiA402_SM_clearErrorCode()

uint32_t EC_API_SLV_CiA402_SM_clearErrorCode ( EC_API_SLV_SHandle_t pHandle,
uint8_t  axisNo 
)

Set error code on axis.

User CiA402 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]pHandleSlave API Handle Instance
[in]axisNoNumber of Axis.
Returns
ErrorCode API Error Code
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);
uint32_t EC_API_SLV_CiA402_SM_clearErrorCode(EC_API_SLV_SHandle_t *pHandle, uint8_t axisNo)
Set error code on axis.
Definition ecSlvApi_CiA402.c:339
Definition ecSlvApiInternal.h:331
Examples
ESL_cia402Demo.c.