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 |
5 | physical link on Port 1 |
6 | physical link on Port 2 |
7 | physical link on Port 3 |
8 | Loop Port 0 |
9 | Communication on Port 0 |
10 | Loop Port 1 |
11 | Communication on Port 1 |
12 | Loop Port 2 |
13 | Communication on Port 2 |
14 | Loop Port 3 |
15 | Communication on Port 3 |
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT v2.10.0 or higher | PC or CX (x86) | TcEtherCAT.lib |
TwinCAT v2.10.0 Build >= 1307 or higher | CX (ARM) |