ST_EcSlaveScannedData

Die Struktur ST_EcSlaveScannedData enthält die EtherCAT Konfigurationsdaten eines gescannten EtherCAT Slave Gerätes.

TYPE ST_EcSlaveConfigData:
STRUCT
    nEntries        : WORD;
    nAddr           : WORD;
    stSlaveIdentity : ST_EcSlaveIdentity;
    ndlStatusReg    : WORD;
END_STRUCT
END_TYPE

nEntries:  intern verwendet!

nAddr: Adresse eines EtherCAT Slaves.

stSlaveIdentity: Identity eines EtherCAT Slaves (s. ST_EcSlaveIdentity).

ndlStatusReg: Link Status eines EtherCAT Slaves aus dem ESC Register 0110/0111hexbzw. 272/273dec. Ist der Slave nicht erreichbar/offline, wird der Status 0 angezeigt. Die Zuordnung „PortNummer <=> Buchse/Ebus Kontakt“ ist der jeweiligen Gerätedokumentation zu entnehmen. Wenn nicht anders beschrieben, ist Port0 der linke Ebus-Kontakt einer EL/ES-Klemme bzw. RJ45-Buchse einer EP-Box, Port1 der rechte abgehende Ebus-Kontakt/RJ45-Buchse.

Die Bitbedeutungen lauten

Bit

Bedeutung

1

internal use

2

internal use

3

internal use

4

physical link on Port 0
0: no link, 1: Link detected

5

physical link on Port 1
0: no link, 1: Link detected

6

physical link on Port 2
0: no link, 1: Link detected

7

physical link on Port 3
0: no link, 1: Link detected

8

Loop Port 0
0: Open, 1:Closed

9

Communication on Port 0
0:no stable communication, 1:Communication established

10

Loop Port 1
0: Open, 1:Closed

11

Communication on Port 1
0:no stable communication, 1:Communication established

12

Loop Port 2
0: Open, 1:Closed

13

Communication on Port 2
0:no stable communication, 1:Communication established

14

Loop Port 3
0: Open, 1:Closed

15

Communication on Port 3
0:no stable communication, 1:Communication established

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende SPS Bibliotheken

TwinCAT v2.10.0 oder höher

PC or CX (x86)

TcEtherCAT.Lib
( Standard.Lib; TcBase.Lib; TcSystem.Lib, TcUtilities.Lib werden automatisch eingebunden )

TwinCAT v2.10.0 Build >= 1307 oder höher

CX (ARM)