EtherCAT Slave  1.06.01

◆ EC_SLV_APP_CIA_SETAXISVALUE

#define EC_SLV_APP_CIA_SETAXISVALUE (   type_p,
  axisDesc_p,
  value_p 
)
Value:
if (gotOffsets && (NULL != (axisDesc_p).pdoObject)) { \
((type_p*)&(pApplication_p->pdTxBuffer[(axisDesc_p).pdoOffset]))[0] = (value_p); } else { \
EC_SLV_APP_setCiA402ObjectValue(pApplication_p, &(axisDesc_p), sizeof(type_p), (uint16_t*)&(value_p)); }

Write 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.
[in]axisDesc_pAxis variable descriptor.
[in]value_pVariable to write value from.
Examples
ESL_cia402Demo.c.