API 9 API The TcEventLogger is a mechanism to manage messages (eG from the PLC). It’s realized as TcCOM- Server and controlled from the TwinCAT System. It offers multiple COM Interfaces to query and manipulate messages: 9.1 TcEventLogger Return Codes TcEventLogger 127 Version: 1.1 Interface Description ITcServer Used by the TwinCAT System to manage this Server. ITcAdsAsync Used internal to implement AdS functions. The TcEventLogger get its AdS commands from port 110. ITcEventLog [} 129] This it the main Interface of the TcEventLogger for COM Clients like HMI. It offers functions to control active and logged alarms and to add and remove alarms.
ITcEventLogC [} 137] This is the basic interface of ITcEventLogC3 and ITcEventLogC2. ITcEventLogC2 [} 139] This interface derives from ITcEventLogC and is the basic interface for ITcEventLogC3. ITcEventLogC3 [} 141] This is an application-specific interface of the TcEventLoggers for COM Clients that use application-specific interfaces like HMI. is interface deriving from ITcEventLogC2. ITcEventLogEvents [} 144] Callback functions for callbacks from the TcEventlogger to COM-Clients. Clients can use this to get informations when an event occurs or is cancelled. ITcEvent [} 157] Message object. This object can be used to get informations about a message (e.G.
event- and source ID) or the message text. It can also be used to reset messages. ITcEnumEvents [} 150] This interface can be used to enumerate the active or logged messages. ITcEnumEventDocLink [} 176] This interface can be used to enumerate the Doc Links.
Code (hex) Description 0x00000000 No Errorr 0x98210001 Event object is in signaled state 0x98210002 Event object is confirmed 0x98210003 Event object is reset 0x98210004 Event object is confirmed but not reset 0x98210005 Event object does not need confirmation 0x98210006 Reset or confirm for unknown event 0x98210007 Event is loaded from persistent storage 0x98210008 Event configuration could not be retrieved from the storage 0x98210009 Could not access storage