Event Formatting 8 Event Formatting An event formatter is used to load event specific messages in a certain language from a database. Beckhoff provides a set of standard EventFormatter implementations. Anyhow, the EventFormatter programming interface is documented so that customers can implement specific Formatters to suport proprietary file or database formats. When an event is issued in the PLC, a formatter ProgId must be given. The TcEvenlogger will then try to create an instance of the COM Object with that ProgId. If such an object exists and implements the ITcLogFormatterC [ } 116] interface the eventlogger will query it for the certain message text. TwinCAT standard formatters:
8.1 TcEventFormatter 8.1.1 ITcLogFormatterC Table 14: Methods and Properties in Vtable Order 8.1.1.1 GetFormatString This method returns the Formatstring assigned from TcEvent.DataFormatStrAddress when the event was shown by the PLC method ADSLOGEVENT . TcEventLogger 116 Version: 1.1 Formatter Description Supported Platforms TcEventFormatter Load data from the Project Storage. NT/2000/XP/Vista. TcXMLFormatter [} 122] Load data from XML files. NT/2000/XP/Vista/CE.
IUnknown Methods Description QueryInterface returns a pointer to the interface you query for AddRef Increment the reference counter Release Decrements the reference counter ITcLogFormatterC Meth- ods Description GetFormatString [} 116] Returns the format string GetCompleteString [} 117] Returns a formatted message string in the requested language SetFormatString [} 118] Sets the format string for a certain event GetClassPrio [} 119] Returns the event class and priority EnumDocLinks [} 120] Returns an enumeration object GetSourceName [} 121] Returns the Sourcename in a certain language