ST_EcSlaveScannedData

The structure ST_EcSlaveScannedData describes the EtherCAT configuration data of one scanned EtherCAT Slave

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

nEntries:  intern used!

nAddr: Address of one EtherCAT Slave.

stSlaveIdentity: Identity of one EtherCAT Slave (s. ST_EcSlaveIdentity).

ndlStatusReg: Link State of one EtherCAT Slave from ESC register 0110/0111hex  resp. 272/273dec . If the slave is not accessible/offline the sate is 0. The assignment „Port number <=> socket/Ebus contact“ can be seen in the device documentation. If not specified, Port0 is the Ebus contact on the left of an EL/ES terminal resp. RJ45 socket of an EP box and Port1 is the contact on the right/ RJ 45 socket.


Bits and description

Bit

Description

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 system type

PLC libraries to be linked

TwinCAT v2.10.0 or higher

PC or CX (x86)

TcEtherCAT.lib
( Standard.Lib; TcBase.Lib; TcSystem.Lib, TcUtilities.Lib are included automatically )

TwinCAT v2.10.0 Build >= 1307 or higher

CX (ARM)