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 |
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 platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_EtherCAT |