EtherCAT Slave
 
Loading...
Searching...
No Matches

◆ EC_SLV_APP_CIA_GETAXISVALUE

#define EC_SLV_APP_CIA_GETAXISVALUE (   gav_type,
  gav_target,
  gav_axisDesc 
)
Value:
{ if (gotInOffset && (NULL != (gav_axisDesc).pdoObject)) { \
(gav_target) = ((gav_type*)&(pApplication_p->pdRxBuffer[(gav_axisDesc).pdoOffset]))[0]; } else { \
(void)EC_SLV_APP_getCiA402ObjectValue(pApplication_p, (gav_axisDesc).pSdo, sizeof(gav_type), (uint16_t*)&(gav_target)); } }

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.