beckhoff — 2 Introduction

Introduction Message formatting The TcEventLogger offers the TcEventFormatter [ } 116] concept to load message texts from a database. Beckhoff supplies default formatters e.g. for loading message texts from a xml file. Custom formatters can be implemented and injected into the system. Default formatters supplied by Beckhoff: The formatter to be used for an event is chosen in the PLC, when issuing the event. Message Configuration To load message texts from a database the events need to be configured. The TcEventConfigurator [ } 20] offers a GUI to do that. It supports both standard formatters and additional Plain Text or Excel format for translation purposes.

Use the TcEventConfigurator used to do the entire event configuration: Configure messages Save data in different formats Generate PLC Sample Code Visualizations To reduce the effort of creating custom visualizations, a standard implementation is supplied with the TcEventLogger : The TcEventViewer [ } 67] . The TcEventViewer is an extensive configurable ActiveX control for usage in customers HMIs. The TcEventBar is an example implementation for displaying events. It utilizes the TcEventViewer ActiveX. The TcEventBar can be found in the 'TwinCAT/EventLogger' directory.

Setting up the TcEventBar The TcEventBar uses a registry key ( HKEY_CURRENT_USER\Software\TwinCAT\TcEventBar ) for the properties (since v.2.9.0.11) . In the "ContextMenuFlags" value you can save the context menu settings of the TcEventBar. The following flags can be set to disable the menu items. TcEventLogger 11 Version: 1.1 Formatter Description TcEventFormatter Loads data from the TwinCAT Project Storage (.tps). TcXMLFormatter Loads data from XML files. TcEventView item: Description 0x00000001 "Clear active events" 0x00000002 "Clear logged events" 0x00000004 "Set filter" 0x00000008 "Confirm" 0x00000010 "Reset"