beckhoff — 9.2.2 TcEvent

API 9.2 Classes 9.2.1 TcEventLog The Main class of the TcEvent Logger. Provides Interface to the COM Client and to the ADS world. This Class implements the state machine for handling the behavior of the alarms and the signal transfer between the PLC and the COM clients. Internally it controls the TcEventKeyToEvent Map that lists active alarms and an object of the Type IEnumSTATSTGPtr that holds a list of streams that present the Logged alarms. On request to a method call on the ITEventLog interface it returns one enumeration object for active events and one for logged events.

Requirements Additionally this class provides the event interface _ITcEventLogEvents [ } 144] that could be implemented by the client. 9.2.2 TcEvent This class represents one event. The class provides interfaces to the COM clients. Objects of this class are issued by the TcEventLog the main class of the TcEvent Logger. The class provides through it's interface all parameter of the alarms and uses internally the assigned formatter object to return the event message language independent. TcEventLogger 128 Version: 1.1 Interface Description ITcServer Used internally by the TwinCAT system to control this server. ITcAdsAsync Used internally to implement ADS functionality into the TcEventLogger.

The TcEvent Logger receives ADS commands on ADS port 110 through this interface. ITcEventLog [} 129] This is the main interface of the TcEventLogger to COM clients like the HMI. Main features to control active and logged alarms and to add new alarms or delete existing ones. ITcEventLogC3 [} 141] This is a custom interface of the TcEventLogger to COM clients like the HMI that supports custom interfaces. This interface derives from ITcEventLogC2.

ITcEventLogC2 [} 139] Interface derives from ITcEventLogC2 and it the base interface of ITcEventLogC3 ITcEventLogC [} 137] This interface is the base interface of ITcEventLogC3 and ITcEventLogC2 ITcEventLogBase C Not used yet Interface Description ITcEvent [} 157] The main Interface provides all parameters of an event object. ITcEventC [} 175] This custom interface provides additional parameters of the alarm.