EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_PDO_setAssignment()

uint32_t EC_API_SLV_PDO_setAssignment ( EC_API_SLV_SHandle_t pHandle,
bool  assignment 
)

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 by default writable, meaning that the user is able to modify the PDO assignments of the SyncManagers. Replicates PdoAssign Attribute of CoE in the ESI files

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]assignmentThe boolean is to specify it assignment is permitted or not
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
EC_API_EError_t retVal = 0;
// the Call
retVal = EC_API_SLV_PDO_setAssignment(pHandle, true);
enum EC_API_EError EC_API_EError_t
uint32_t EC_API_SLV_PDO_setAssignment(EC_API_SLV_SHandle_t *pHandle, bool assignment)
Enable or disable PDO assignments of the SyncManagers. Download of PDO assignment (e....
Definition ecSlvApi_pdo.c:1800