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

◆ EC_API_SLV_PDO_setFixed()

uint32_t EC_API_SLV_PDO_setFixed ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_Pdo_t pPdo,
bool  fixed 
)

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]pHandleThe pointer to the EtherCAT API instance
[in]pPdoPDO instance.
[in]fixedThe 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(pHandle, pPdo, false);
uint32_t EC_API_SLV_PDO_setFixed(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_Pdo_t *pPdo, bool fixed)
This is the function to set a PDO as fixed or not. Download of PDO Configuration during start up.
Definition ecSlvApi_pdo.c:1638