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

◆ EC_API_SLV_setRevisionNumber()

uint32_t EC_API_SLV_setRevisionNumber ( EC_API_SLV_SHandle_t pHandle,
uint32_t  revisionNumber 
)

Set device revision number. 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]revisionNumberproduct revision 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_setRevisionNumber(S_ecSlvApiHdl, 0x00000011);
uint32_t EC_API_SLV_setRevisionNumber(EC_API_SLV_SHandle_t *pHandle, uint32_t revisionNumber)
Set device revision number. Used by the EEPROM and Object Dictionary.
Definition ecSlvApi_param.c:173
Definition ecSlvApiInternal.h:331
See also
EC_API_SLV_setVendorId, EC_API_SLV_setProductCode, EC_API_SLV_setProductName, EC_API_SLV_getRevisionNumber
Examples
ecSubDeviceCiA402.c.