beckhoff — 5.2.1 Compatibility

Connectivity 5.2 ADS General Use the TcEventLogAdsProxy for connecting your application to an instance of the TcEventLogger. The EventLogger may either be running locally or on a remote computer. This class implements the ITcEventLogAdsProxy interface for creating ADS connections and inherits from the ITcEventlog interfaces. The ITcEventLog provides an object oriented and easy to use programming interface [ } 19] Requirements Connections to the AdsProxy are supported on Windows NT/ XP/ Vista since TwinCAT 2.10.1327 on Windows CE since image version 2.20a or 3.06a Setup 1. Create an ADS route between local and remote system (Not neccesary for local connections) 2.

Call the ITcEventLogAdsProxy::Connect() [ } 19] method 5.2.1 Compatibility The WindowsCE Eventlogger offers a high degree of compatibility to the standard Win32 based logger. Minimal effort is reqired to develop an application that supports both versions. This document provides some implementation hints on developing a compatible application. See samples for C# [ } 17] C++ [ } 17] TcEventViewer [ } 18] TcEventBar [ } 19] Developing a C# application that supports both versions of the TcEventLogger 1. Add references to the "Beckhoff TcEventLogger" and the "Beckhoff TcEventLogAdsProxy" COM type libraries 2. Add one global instance of the TcEventLogger 3.

Use theese two methods to connect either to a local PC Based TcEventLogger or an remote Win- TcEventLog m_logger = null; dowsCE system. If your application is a Windows CE and shall connect the local logger pass Null for the NetId void ConnectRemoteLogger( String strNetId ) { TcEventLogAdsProxyLib.TcEventLogger adsLogCLient = new TcEventLogAdsProxyLib.TcEventLogger(); TcEventLogger 17 Version: 1.1