TcEventLogger
This class represents the connection to a TwinCAT 3 Eventlogger.
Syntax
public class: ITcEventLogger2, _ITcEventLoggerEvents
Constructor
Initializes a new instance of the TcEventLogger class.
public TcEventLoggerClass();
Call:
TcEventLogger logger : new TcEventLogger();
Interfaces
Name | Description |
---|---|
Interface for sending commands to the EventLogger. | |
This interface provides the messages for occurring events. |
Methods
Name | Modifier | Return type | Definition location | Description |
---|---|---|---|---|
public virtual | void | ITcEventLogger/ITcEventLogger2 | Calls Clear() for all alarms in the "Raised" state. | |
public virtual | void | ITcEventLogger/ITcEventLogger2 | Calls Clear() for all events that are currently in the "Raised" state. | |
public virtual | void | ITcEventLogger/ITcEventLogger2 | Calls Confirm() for all alarms with the confirmation state "WaitForConfirmation". | |
public virtual | void | ITcEventLogger/ITcEventLogger2 | Connects to the EventLogger of the TwinCAT system on a given system. | |
public virtual | void | ITcEventLogger/ITcEventLogger2 | Cancels the connection to an EventLogger of the TwinCAT system. | |
public virtual | string | ITcEventLogger/ITcEventLogger2 | Returns the class name for an event. | |
public virtual | TcEventLoggerAdsProxyLib.TcLoggedEventCollection | ITcEventLogger/ITcEventLogger2 | Queries the events located in the cache. | |
public virtual | void | Sends a message. |
events
Name | Return type | Definition location | Description |
---|---|---|---|
AlarmCleared | _ITcEventLoggerEvents_AlarmClearedEventHandler | Called if an alarm changes to the "Not Raised" state. | |
AlarmConfirmed | _ITcEventLoggerEvents_AlarmConfirmedEventHandler | Called if an alarm changes to the "Confirmed" state. | |
AlarmRaised | _ITcEventLoggerEvents_AlarmRaisedEventHandler | Called if an alarm changes to the "Raised" state. | |
MessageSent | _ITcEventLoggerEvents_MessageSentEventHandler | Called when a message has been sent. |
Properties
Name | Modifier | Type | Access | Definition location | Description |
---|---|---|---|---|---|
public virtual | TcAlarmCollection | get | ITcEventLogger/ITcEventLogger2 | Returns a collection with all currently active alarms. | |
public virtual | bool | get | ITcEventLogger/ITcEventLogger2 | Represents the connection that was established by means of Connect. Should be checked regularly. |
- ITcEventLogger_ClearAllAlarms
- ITcEventLogger_ClearLoggedEvents
- ITcEventLogger_ConfirmAllAlarms
- ITcEventLogger_Connect
- ITcEventLogger_Disconnect
- ITcEventLogger_GetEventClassName
- ITcEventLogger_GetLoggedEvents
- ITcEventLogger_GetText
- ITcEventLogger_ActiveAlarms
- ITcEventLogger_IsConnected
- ITcEventLogger2_SendTcMessage