EtherCAT Slave1.12.02

◆ EC_API_SLV_PDO_setFixed()

uint32_t EC_API_SLV_PDO_setFixed ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
EC_API_SLV_SPdo_t pPdo_p,
bool  fixed_p 
)

This is the function to set a PDO as fixed or not. Download of PDO Configuration during start up.

The application PDO mapping is variable by default, meaning that the objects flagged as mappable in the OD could be added to the process data by the user with a configuration tool. Replicates the PdoConfig Attribute of CoE in the ESI files

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance
[in]pPdo_pPDO instance.
[in]fixed_pThe boolean specifies if the PDO is fixed or not. false: 0x1600, 0x1A00 are RW. true: 0x1600, 0x1A00 are RO.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
// the Call
retVal = EC_API_SLV_PDO_setFixed(ecSlaveApi, pPdo, false);
uint32_t EC_API_SLV_PDO_setFixed(EC_API_SLV_SHandle_t *pEcSlaveApi_p, EC_API_SLV_SPdo_t *pPdo_p, bool fixed_p)
This is the function to set a PDO as fixed or not. Download of PDO Configuration during start up.
Definition: ecSlvApi_ProcDataStub.c:504