EtherCAT Slave  1.06.01

◆ EC_API_SLV_PDO_setFixedMapping()

uint32_t EC_API_SLV_PDO_setFixedMapping ( EC_API_SLV_SHandle_t pEcSlaveApi_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]fixed_pThe boolean specifies if the PDO is fixed or not. true: PDO Configuration is not downloaded, false: PDO Configuration is downloaded (set when PDO mapping can be changed)
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_setFixedMapping(ecSlaveApi, false);
EC_API_SLV_PDO_setFixedMapping
uint32_t EC_API_SLV_PDO_setFixedMapping(EC_API_SLV_SHandle_t *pEcSlaveApi_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:502