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

◆ EC_API_SLV_setProductCode()

uint32_t EC_API_SLV_setProductCode ( EC_API_SLV_SHandle_t pHandle,
uint32_t  productCode 
)

Set device product code. Used by the EEPROM and Object Dictionary.

Set a product code. Required for device identification. It is used by the SII interface and the Object Dictionary

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]productCodeproduct identification number.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
// the Call
retVal = EC_API_SLV_setProductCode(S_ecSlvApiHdl, 0x54490006);
uint32_t EC_API_SLV_setProductCode(EC_API_SLV_SHandle_t *pHandle, uint32_t productCode)
Set device product code. Used by the EEPROM and Object Dictionary.
Definition ecSlvApi_param.c:121
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_setVendorId, EC_API_SLV_setRevisionNumber, EC_API_SLV_setProductName, EC_API_SLV_getProductCode
Examples
ecSubDeviceCiA402.c.