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

◆ EC_API_SLV_PDO_setAssignment()

uint32_t EC_API_SLV_PDO_setAssignment ( EC_API_SLV_SHandle_t *  pEcSlaveApi_p,
bool  assignment_p 
)

Enable or disable PDO assignments of the SyncManagers. Download of PDO assignment (e.g. 0x1C12, 0x1C13, etc) during start up.

The process data SyncManagers are read only by default, meaning that the user is not able to modify the PDO assignments of the SyncManagers. Replicates PdoAssign Attribute of CoE in the ESI files.

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]assignment_pThe boolean is to specify it assignment is permitted or not
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_setAssignment(ecSlaveApi, true);
uint32_t EC_API_SLV_PDO_setAssignment(EC_API_SLV_SHandle_t *pEcSlaveApi_p, bool assignment_p)
Enable or disable PDO assignments of the SyncManagers. Download of PDO assignment (e....
Definition ecSlvApi_ProcDataStub.c:572
Examples
ecSlvESI.c.