EtherCAT Slave  1.06.01

◆ EC_SLV_APP_CIA_GETAXISVALUE

#define EC_SLV_APP_CIA_GETAXISVALUE (   type_p,
  target_p,
  axisDesc_p 
)
Value:
if (gotOffsets && (NULL != (axisDesc_p).pdoObject)) { \
(target_p) = ((type_p*)&(pApplication_p->pdRxBuffer[(axisDesc_p).pdoOffset]))[0]; } else { \
EC_SLV_APP_getCiA402ObjectValue(pApplication_p, (axisDesc_p).pSdo, sizeof(type_p), (uint16_t*)&(target_p)); }

Read CiA402 Axis value.

If objects are mapped and known (on SafeOP/OP) use direct access to linear process data memory when not mapped, use traditional PDO data API.

Parameters
[in]type_pType of variable.
[out]target_pTarget to read value to.
[in]axisDesc_pAxis variable descriptor.
Examples
ESL_cia402Demo.c.