beckhoff — 11.2.7.3 ADS Interface

Reference | I/O Devices AdsAddr( optional ): The variable 'AdsAddr' holds the Ams netId and Ams port of the slave device. These are necessary parameters for communicating with the EtherCAT slave device via ADS. The variable 'AdsAddr' is added by default if the slave supports a mailbox. Chn0( optional for drives only): Drive channel. Additional non cyclic diagnostic information can be found on the Online [ } 198] tab of the EtherCAT device. 11.2.7.3 ADS Interface | ADS Interface Acyclic data can be transmitted to or from the EtherCAT device via ADS-Read or ADS-Write commands. It possible to communicate with the mailboxes of EtherCAT slave devices via ADS.

Every EtherCAT device has its own Net-ID. The port depends on the individual Ads service : The NetId can be found in the edit field "NetId" on the EtherCAT tab of the EtherCAT master device: TwinCAT 2 205 Version: 1.7 Value Description 0x 1 ___ Slave in 'INIT' state 0x 2 ___ Slave in 'PREOP' state 0x 3 ___ Slave in 'BOOT' state 0x 4 ___ Slave in 'SAFEOP' state 0x 8 ___ Slave in 'OP' state 0x0010 Slave signals error 0x0020 Invalid vendorId, productCode...

read 0x0100 Slave not present 0x0200 Slave signals link error 0x0400 Slave signals missing link 0x0800 Slave signals unexpected link 0x1000 Communication port A 0x2000 Communication port B 0x4000 Communication port C 0x8000 Communication port D Port Description 65535 (0xFFFF) General Ads services handled by the master directly. 0x1 - 0xFFFE (fixed address of a slave device) This is an Ads services directed at an individual slave device. The port number is the same as the EtherCAT address