COM API
The TcAdsDll provides functions for communication with other ADS devices via the COM interface of the TwinCAT router. You will find further information related to ADS under TwinCAT ADS.
The COM class TcClient supports the user programs to establish a connection from an ADS device to the local PC or to a remote PC. The TcAdsDll supports a multi-threaded threading model. It can be used by multi-threaded and single-threaded COM clients. If the TcAdsDll is used by single-threaded COM clients, the method calls are synchronized by a marshaler. The marshaler is compiled in the TcAdsDll, no further proxy-stub-dll is necessary.
The TcClient returns an object of type TcAdsSync for each individual connection to an ADS device. This class supports synchronous ADS communication to the ADS device. The TcAdsSync class makes the functions available via the default interface ITcAdsSync. To reach the ADS notification from the TcAdsSync object, the user program must implement and connect the event interface ITcAdsSyncEvent.
