EtherCAT Slave  1.06.01

◆ EC_SLV_APP_cia402Application()

void EC_SLV_APP_cia402Application ( void *  pCtxt_p)

CiA402 Application function.

Write Control Word RxPDO to activate axis with value 7. Write to Operation Mode RxPDO the position, velocity or torque modes (8, 9, 10). Write Control Word RxPDO to enable axis operation with value 15. Write a target torque, velocity or position value to the RxPDO mapping. Read the TxPDO or OBD values of the actual position, velocity or torque. Read the TxPDO or OBD values of the status word and the operation mode display.

Remarks
If device goes into OP state without activating the axis, status goes into quickstop mode (4096). Reset quickstop status by activating the axis in control word object.
Parameters
[in]pCtxt_pEtherCAT slave handle.
Example
#include <ecSlvApi.h>
// required variables
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
// the Call
Examples
ecSlvCiA402.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_SLV_APP_cia402Application
void EC_SLV_APP_cia402Application(void *pCtxt_p)
CiA402 Application function.
Definition: ESL_cia402Demo.c:871