beckhoff · 217 pp.
Beckhoff TcEventLogger User and Service Manual PDF
Related manuals
Contents
Document text
Table of contents
Table of contents Table of contents 1 Foreword.................................................................................................................................................... 7 1.1 Notes on the documentation ............................................................................................................. 7 1.2 Safety instructions............................................................................................................................. 8 1.3 Notes on information security............................................................................................................
9 2 Introduction ............................................................................................................................................. 10 3 Setup ........................................................................................................................................................ 13 4 Alarm & Events for Windows CE ........................................................................................................... 15 5 Connectivity.............................................................................................................................................
16 5.1 DCOM ............................................................................................................................................. 16 5.1.1 DCOM Samples ............................................................................................................... 16 5.2 ADS................................................................................................................................................. 17 5.2.1 Compatibility.....................................................................................................................
17 5.2.2 Interfaces ......................................................................................................................... 19 6 Event Configuration................................................................................................................................ 20 6.1 Beckhoff TcEventConfigurator ........................................................................................................ 20 6.2 Getting started.................................................................................................................................
20 6.3 TcEventConfigurator Reference...................................................................................................... 21 6.4 TcEventConfigurator - File Formats ................................................................................................ 23 6.5 TcEventConfigEditor ActiveX .......................................................................................................... 24 6.6 EventConfiguration on Windows CE ...............................................................................................
25 6.7 COM................................................................................................................................................ 25 6.7.1 IEvtConfiguration.............................................................................................................. 26 6.7.2 IEvtCfgSource.................................................................................................................. 32 6.7.3 IEvtCfgEvent ....................................................................................................................
41 6.7.4 IEvtCfgDocLink ................................................................................................................ 50 6.7.5 IEvtCfgEnumParser ......................................................................................................... 55 6.7.6 IEvtCfgParser................................................................................................................... 55 6.7.7 EvtCfgTpsParser.............................................................................................................. 60 6.7.8 EvtCfgXmlParser..............................................................................................................
61 6.7.9 IEvtCfgEditor.................................................................................................................... 61 7 Event HMI................................................................................................................................................. 67 7.1 Classes ........................................................................................................................................... 68 7.1.1 TcEventView ....................................................................................................................
68 7.2 Interfaces ........................................................................................................................................ 68 7.2.1 ITcEventView ................................................................................................................... 68 7.3 Enums ........................................................................................................................................... 113 7.2.2 ITcEventViewLight ......................................................................................................... 112 7.3.1 TCEVENTVIEW_CONTEXTMENUFLAGS....................................................................
113 7.3.2 TCEVENTVIEW_DISPLAYMODE ................................................................................. 114 7.3.3 TC_SORTMODE............................................................................................................ 114 8 Event Formatting................................................................................................................................... 116 8.1 TcEventFormatter ......................................................................................................................... 116 TcEventLogger 3 Version: 1.1
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
Table of contents
Table of contents 10.5.2 View active alarms in user defined ListView .................................................................. 197 10.6 C++Builder 2009 ........................................................................................................................... 198 10.6.1 Integration in CodeGear C++Builder 2009..................................................................... 198 10.6.2 Console Application - Read logged alarms via DCOM .................................................. 206 10.6.3 Console Application - Read logged alarms via ADS proxy ............................................
208 10.6.4 View active alarms in user defined ListView .................................................................. 211 10.6.5 Einbinden von TcEventViewer-ActiveX-Control............................................................. 214 TcEventLogger 5 Version: 1.1
Table of contents
Table of contents TcEventLogger 6 Version: 1.1