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

◆ EC_SLV_APP_CIA_SETAXISVALUE

#define EC_SLV_APP_CIA_SETAXISVALUE (   sav_type,
  sav_axisDesc,
  sav_value 
)
Value:
{ if (gotOutOffset && (NULL != (sav_axisDesc).pdoObject)) { \
((sav_type*)&(pApplication_p->pdTxBuffer[(sav_axisDesc).pdoOffset]))[0] = (sav_value); } else { \
(void)EC_SLV_APP_setCiA402ObjectValue(pApplication_p, &(sav_axisDesc), sizeof(sav_type), (uint16_t*)&(sav_value)); } }

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.