beckhoff — 8.2.1 TcEventSourceLocation

Event Formatting 8.2 TcXmlFormatter The TcXmlFormatter offers functions to format text for TcEventLogger Events. It can handle several languages and can add floats, integers, or strings into the printed string. The printed strings are saved in a XML file. The TcEventFormatter is in the TcEventFormatter.dll. Database Ther TcXmlFormatter uses XML files as Database. Its configurated with 2 different XML files: 1. In the file TcEventSourceLocation.xml [ } 122] are the Sources defined. The Id and name of the Event file are saved here for every Source. 2. The messages are described by XmlEventConfguration.

[ } 123] When the XML file is changed, the TcEventLogger must be restarted (or the ITcServer Reset() method must be called). To restart the EventLogger 1) Stop all Clients that use the TcEventLogger, like HMI, TcEventbar. 2) Stop TwinCAT. 3) Start the Task Manager and ensure, that the program TcEventLogger.exe is not running. If the TcEventLogger.exe is still running you might need to restart the operating system. 4) Start TwinCAT again. The new Event configuration is now valid. 8.2.1 TcEventSourceLocation The file TcEventSourceLocation.xml defines the location of the event configuration for every Source of the TcXmlFormatter [ } 122] . This file is located in the TwinCAT/Resource directory.

The current path of the Resource directory can be read from the Registry under the key value HKEY_LOCAL_MACHINE\SOFTWARE\Beckhoff\TwinCAT\System\[ResourcePath] . The following screenshot shows the Registry value: Scheme This picture shows the XML scheme, that describes the TcEventSourceLocation XML file. TcEventLogger 122 Version: 1.1