ST_EcSlaveScannedData

The ST_EcSlaveScannedData structure contains the EtherCAT configuration data of a scanned EtherCAT slave device.

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

Name

Type

Description

nEntries

WORD

Used internally

nAddr

WORD

Address of an EtherCAT slave

stSlaveIdentity

ST_EcSlaveIdentity

Identity of an EtherCAT slave (see ST_EcSlaveIdentity)

ndlStatusReg

WORD

Link status of an EtherCAT slave from ESC register 0110/0111hex or 272/273dec. Status 0 is displayed if the slave cannot be reached or is offline. The "port number <=> socket/Ebus contact" assignment can be found in the respective device documentation. Unless described otherwise, port 0 is the left-hand Ebus contact of an EL/ES terminal or the RJ45 socket of an EP box, port 1 is the right-hand outgoing Ebus contact/RJ45 socket.

The bit meanings are:

Bit

Meaning

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

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_EtherCAT