beckhoff — 11.2.7.3 ADS Interface

Reference | I/O Devices TwinCAT 2 208 Version: 1.7 Index Group Index Off- set Access Data type Description 0x00000003 0x00000100 R UINT16 Returns current state of master. Following values are returned by this service: 0x0001: Init State 0x0002: Pre-Operational State 0x0003: Bootstrap State 0x0004: Safe-Operational State 0x0008: Operational State 0x00000003 requested state W Request State from master. 0x00000006 0x00000000 R UINT16 Returns the number of projected slaves. 0x00000007 0x00000000 R UINT16[nSl aves] Returns the fixed addresses of all slaves. 0x00000009 0x00000000 R { Returns the EtherCAT status and the Link status of all Slaves: BYTE EtherCAT state of a slave.

The state can adopt one of the following values: 0x0001: Init State 0x0002: Pre-Operational State 0x0003: Bootstrap State 0x0004: Safe-Operational State 0x0008: Operational State Additionally following bits can be set: 0x0010: Error State 0x0020: Invalid VPRS( VendorId, Product Code, RevisionsNo or SerialNo) 0x0040: Initialization command error BYTE Link status of an EtherCAT slave. The Link status can consist of an ORing of the following bits: 0x0000: Link ok. 0x0001: Link not present 0x0002: No communication 0x0004: Link missing 0x0008: Additional link 0x0010: Port A 0x0020: Port B 0x0040: Port C 0x0080: Port D exampe: 0x0024 = Missing Link at port B.

}[nSlaves] 0x00000009 0x00000001 -0x0000FFF F (EtherCAT slave address) R { Returns the EtherCAT status of the EtherCAT slave specified in the index offset. BYTE EtherCAT state of a slave. The state can adopt one of the following values: 0x0001: Init State 0x0002: Pre-Operational State 0x0003: Bootstrap State 0x0004: Safe-Operational State 0x0008: Operational State