Event Configuration Return Values S_OK The configuration has been imported into pConfig. E_ACCESSDENIED The parser is locked by an asynchronous operation. E_FAIL The configuration could not be imported. 6.7.6.11 OpenConfiguration Open a configuration file. All subsequent calls will from now on refer to this file. When processing has finished, call CloseConfiguration [ } 57] . HRESULT OpenConfiguration([in]BSTR name); Parameters name [in] Path and file to be opened. Return Values S_OK The configuration is opened. E_ACCESSDENIED The parser is locked by an asynchronous operation. E_FAIL The file could not be opened.
6.7.7 EvtCfgTpsParser The EvtCfgTpsParser does work on the TwinCAT storage file format. The default storage file is 'TwinCAT\default.tps'. To have your event messages fetched from the TwinCAT storage, you need to choose the TcEventFormatter when firing events from the PLC. Do so by specifying 'TcEventLogger.TcEventFormatter' as progId in the TcEvent structure. When calling ActivateConfiguration, the parser will set the opened configuration file as TwinCATs current project. If you create a new configuration and register it this will have two side effects: The EventLoggers list of logged events is lost. Additional TwinCAT servers will no more be registered.
When you activate the previous configuration, theese side effects will resolve again. Changing the active configuration will first take effect after restarting TwinCAT. TcEventLogger 60 Version: 1.1