EtherCAT Slave  1.06.01

◆ EC_API_SLV_setDeviceType()

uint32_t EC_API_SLV_setDeviceType ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
EC_API_SLV_EDevType_t  devType_p 
)

Define EtherCAT Device Type. Identifies the slave as a standard slave, an EtherCAT servo drive supporting the CiA402 drive profile or a modular device. Object Dictonary Index 0x1000.

CiA402 is a set of profile specifications standardizes the functional behavior of controllers for servo drives, frequency inverters, and stepper motors. It also introduces several operation modes and corresponding configuration parameters. A modular structure can be used for all kind of devices that supports physical or logical modules. This can be for example:

Gateways from Fieldbusses to EtherCAT Multi Axis servo drives (physical modules) with each axis having independent operation modes (logic modules) Extendable bus coupler with an internal backbone (e.g. sliced I/Os) *

Parameters
[in]pEcSlaveApi_pThe pointer to the EtherCAT API instance.
[in]devType_pEtherCAT Device Type based on EtherCAT Profiles (CiA402 and MDP5001).
Returns
uint32_t as EC_API_EError_t DTK Error code.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
// the Call
Examples
ecSlvCiA402.c.
EC_API_SLV_eDT_DEFAULT_DEVICE
@ EC_API_SLV_eDT_DEFAULT_DEVICE
The device does not support any specific profile.
Definition: ecSlvApi.h:99
EC_API_SLV_setDeviceType
uint32_t EC_API_SLV_setDeviceType(EC_API_SLV_SHandle_t *pEcSlaveApi_p, EC_API_SLV_EDevType_t devType_p)
Define EtherCAT Device Type. Identifies the slave as a standard slave, an EtherCAT servo drive suppor...
Definition: ecSlvApiStub.c:1437