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

◆ EC_API_SLV_setDeviceType()

uint32_t EC_API_SLV_setDeviceType ( EC_API_SLV_SHandle_t pHandle,
EC_API_SLV_EDevType_t  devType 
)

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]pHandleThe pointer to the EtherCAT API instance.
[in]devTypeEtherCAT Device Type based on EtherCAT Profiles (CiA402 and MDP5001).
Returns
ErrorCode API Error Code
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
// the Call
uint32_t EC_API_SLV_setDeviceType(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_EDevType_t devType)
Define EtherCAT Device Type. Identifies the slave as a standard slave, an EtherCAT servo drive suppor...
Definition ecSlvApi_param.c:1271
@ EC_API_SLV_eDT_DEFAULT_DEVICE
The device does not support any specific profile.
Definition ecSlvApi_types.h:79
Examples
ecSubDeviceCiA402.c.