beckhoff — 10.6.1 Integration in CodeGear C++Builder 2009

Samples 'clear the listview Call lvwAlarm.ListItems.Clear Debug.Assert Not objEventLogger Is Nothing Dim objEvent As TcEvent 'get the number of active Events For Each objEvent In objEventLogger.EnumActiveEventsEx If (Not objEvent Is Nothing) Then 'here we get one Event from the collection Dim strMessage As String 'get the Event Message Text strMessage = objEvent.GetMsgString(1033) 'get the key Dim newKey As String newKey = GetKeyFromIDs(objEvent.SrcId, objEvent.Id) 'add the Message to the listview Dim objListItem As ListItem Set objListItem = lvwAlarm.ListItems.Add(, newKey, strMessage & objEvent.Date) End If Next End Sub '------------------------------------------------------ ' create unique key from event group and event id ' Public Function GetKeyFromIDs(ByVal SourceId As Long, ByVal EventId As Long) As String GetKeyFromIDs = SourceId & "-" & EventId End Function The List View has a column with the Event message.

The Method DisplayActiveAlarms gets the active alarms from the EventLogger and shows them. When a new Event is shown or a actual event is reset the OnNewEvent event-function adds events to the List View and the OnResetEvent event-function removes events from the List View. The method GetKeyFromIDs created a key of the event group and the event id. The user defined Event View only supports events that are not quit-requiring. To use it for quit-requiring events you have to add functions for ITcEventLogEvents [ } 144] :: OnSignalEvent [ } 147] and ITcEventLogEvents [ } 144] :: OnConfirmEvent [ } 145] .

10.6 C++Builder 2009 10.6.1 Integration in CodeGear C++Builder 2009 Die Komponenten der EventLogger-Typbibliotheken werden importiert und einem neuen Package hinzugefьgt. Das Komponenen-Package wird anschliessend in der ActiveX-Komponentenpalette installiert. Systemvoraussetzungen CodeGear C++Builder 2009; Delphi and C++Builder 2009 Update 3; Delphi and C++Builder 2009 Update 4 (Database Pack Update); C++Builder 2009 Boost Update; RAD Studio 2009 Hotfix 2 (dieser Hotfix behebt u.a. folgende Probleme beim Debuggen unter Windows 7: Assertion :... "(!SetThreadContext fehlgeschlagen")); TwinCAT v2.11 oder hцher; TcEventLogger 198 Version:

1.1 Language / IDE Source code Visual Basic 6.0 https://infosys.beckhoff.com/content/1033/ TcEventLogger/Resources/12333058571/.zip