4 ecatgetslaveprop (fun), Ecatgetslaveprop (fun), Ecatgetslaveprop (fun) ( 111) – Lenze EtherCAT control technology User Manual
Page 111: Id is used by the, Function, Control technology | ethercat communication manual
DMS 3.1 EN 01/2011 TD17
L
111
Control technology | EtherCAT communication manual
EtherCAT function libraries
Functions for the network management
9.6.4
ecatGetSlaveProp (FUN)
Inputs (VAR_INPUT)
The EC_T_SLAVE_PROP structure
Return value
Function:
This function shows the properties of the slave with the slave ID
transmitted.
Library:
AtEm.lib
Visualisation:
-
Identifier/data type
Meaning/possible settings
dwSlaveId
DWORD
The slave ID can be identified via the functions
(physical address) and
ecatGetSlaveIdAtPosition (FUN) ( 110)
(auto-increment
address).
pSlaveProp
POINTER TO
EC_T_SLAVE_PROP
Pointer to the EC_T_SLAVE_PROP structure (see below), in which the properties of
the slave are indicated after the POU has been executed.
TYPE EC_T_SLAVE_PROP :
wStationAddress : EC_T_WORD;
wAutoIncAddr : EC_T_WORD;
achName : ARRAY [0..79] OF EC_T_CHAR;
Identifier/data type
Description
wStationAddress
WORD
Station address (EtherCAT address/physical address)
wAutoIncAddr
WORD
Auto-increment address
achName
ARRAY [0..79] OF
EC_T_CHAR
Designation of the slave with max. 80 characters
Identifier/data type
Meaning/possible settings
ecatGetSlaveProp
BOOL
TRUE: A slave with the specified slave ID exists.
FALSE: A slave with the specified slave ID does not exist.