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

Name

Typ

Beschreibung

nEntries

WORD

Intern verwendet

nAddr

WORD

Adresse eines EtherCAT-Slaves

stSlaveIdentity

ST_EcSlaveIdentity

Identity eines EtherCAT-Slaves (siehe ST_EcSlaveIdentity)

ndlStatusReg

WORD

Link-Status eines EtherCAT-Slaves aus dem ESC Register 0110/0111hexbzw. 272/273dec. Wenn der Slave nicht erreichbar/offline ist, 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 v3.1.0

PC oder CX (x86, x64, ARM)

Tc2_EtherCAT