beckhoff — 9.3.8.15 Reset

API Return Values S_OK Function was successfully called TCEVENTERR_NOCONFIRM The error was no confirmable error (TcEventFlags TCEVENTFLAG_REQMUSTCON was not set) Visual Basic sample code ' get the one and only event logger Dim evtLogger As TCEVENTLOGGERLib.TcEventLog Set evtLogger = New TCEVENTLOGGERLib.TcEventLog ' get the most recent active event Dim evt As TcEvent Set evt = evtLogger.GetLastEvent ' confirm the alarm Call evt.Confirm(TcEventConCodes.TCEVENTCON_OK) Remarks After this method call the Event Logger will raise the event OnConfirmEvent [ } 145] on all client that implement the event interface _ITcEventLogEvents [ } 144] (VB: Dim WithEvents).

If the alarm was issued by the PLC the TCEVENTSTATE_CONFIRMED will be flagged at the EventState output of the PLC function block. 9.3.8.15 Reset ITcEvent [ } 157] The method is used to reset an event. Events that had be issued from the PLC function block (or other ADS device) or from a call to a Report Event Function like IT [ } 137]cEventLogC [ } 137] :: ReportEvent [ } 138] , ITcEventC3 [ } 141] :: ReportEventEx [ } 143] or ITcEventLog [ } 129] :: ReportEvent [ } 129] could be reset by this method call are directly from the PLC function block that issues the alarm. If the event is reset the timestamps DateReset + MsReset will be assigned to the actual date + time.

HRESULT Reset(); Parameters Return Values S_OK Function was successfully called Visual Basic sample code ' get the one and only event logger Dim evtLogger As TCEVENTLOGGERLib.TcEventLog Set evtLogger = New TCEVENTLOGGERLib.TcEventLog ' get the most recent active event Dim evt As TcEvent Set evt = evtLogger.GetLastEvent ' reset the alarm Call evt.Reset TcEventLogger 168 Version: 1.1