3 ecatgetslaveidatposition (fun), Ecatgetslaveidatposition (fun), Ecatgetslaveidatposition (fun) ( 110) – Lenze EtherCAT control technology User Manual
Page 110: Control technology | ethercat communication manual
Control technology | EtherCAT communication manual
EtherCAT function libraries
Functions for the network management
110
L
DMS 3.1 EN 01/2011 TD17
9.6.3
ecatGetSlaveIdAtPosition (FUN)
Inputs (VAR_INPUT)
Return value
Example
Function:
This function shows the slave ID of the slave the auto-increment
address of which is configured in the control configuration file (XML).
The slave ID is used by the
Library:
AtEm.lib
Visualisation:
-
Identifier/data type
Meaning/possible settings
wAutoIncAddress
WORD
Auto-increment address of the slave
The auto-increment address is the logic position of the slave in the bus, starting with
16#0000, then descending with 16#FFFF, 16#FFFD, 16#FFFC, etc.
Identifier/data type
Meaning/possible settings
ecatGetSlaveIdAtPosition
DWORD
Slave ID of the slave specified under wAutoIncAddress.
dwSlaveId := ecatGetSlaveAtPosition(16#FFFC);