beckhoff — Table of contents

Table of contents 8.1.1 ITcLogFormatterC.......................................................................................................... 116 8.2 TcXmlFormatter............................................................................................................................. 122 8.2.1 TcEventSourceLocation................................................................................................. 122 8.2.2 XmlEventConfguration ...................................................................................................

123 9 API .......................................................................................................................................................... 127 9.1 TcEventLogger Return Codes....................................................................................................... 127 9.2 Classes ......................................................................................................................................... 128 9.2.1 TcEventLog....................................................................................................................

128 9.2.2 TcEvent.......................................................................................................................... 128 9.3 Interfaces ...................................................................................................................................... 129 9.3.1 ITcEventLog................................................................................................................... 129 9.3.2 ITcEventLogC ................................................................................................................

137 9.3.3 ITcEventLogC2 .............................................................................................................. 139 9.3.4 ITcEventLogC3 .............................................................................................................. 141 9.3.5 ITcEventLogEvents........................................................................................................ 144 9.3.6 ITcEnumEvents.............................................................................................................. 150 9.3.7 ITcEnumEventEx ...........................................................................................................

155 9.3.8 ITcEvent......................................................................................................................... 157 9.3.9 ITcEventC ...................................................................................................................... 175 9.4 Enums ........................................................................................................................................... 179 9.3.10 ITcEnumEventDocLink................................................................................................... 176 9.4.1 TcEventClass.................................................................................................................

179 9.4.2 TcEventConCodes......................................................................................................... 179 9.4.3 TcEventFlags ................................................................................................................. 180 9.4.4 TcEventPriority............................................................................................................... 180 9.4.5 TcEventStates................................................................................................................ 181 9.5 Structures......................................................................................................................................

181 9.5.1 TcEventDocLink............................................................................................................. 181 9.5.2 TcEventHeader .............................................................................................................. 181 10 Samples ................................................................................................................................................. 183 10.1 Configuration of Messages ...........................................................................................................

184 10.2 PLC interface ................................................................................................................................ 186 10.2.1 Issue a simple message................................................................................................. 186 10.2.2 Issue a complex message.............................................................................................. 187 10.3 Visual Studio C++ ......................................................................................................................... 190 10.2.3 Issue a message with format parameters ......................................................................

189 10.3.1 Integration of TcEventViewer ActiveX control................................................................ 190 10.3.2 Console Application - Read logged events via DCOM................................................... 191 10.3.3 Connection Points.......................................................................................................... 192 10.4 Visual Studio C#............................................................................................................................ 193 10.3.4 Add the TcEvtCfgEditor ActiveX into an Dialog .............................................................

192 10.4.1 Displaying Logged Events in C# .................................................................................... 193 10.4.2 Displaying Active Events in C# ...................................................................................... 195 10.5 Visual Basic................................................................................................................................... 196 10.5.1 Integration of TcEventViewer ActiveX control................................................................ 196 TcEventLogger 4 Version: 1.1