beckhoff — 9.3.5.3 OnResetEvent

API This event method is called on all clients that implement and connect this event interface when a event is confirmed. The event was confirmed from the PLC function block by setting EventQuit=TRUE (or other ADS device) or the from a call to ITcEvent [ } 157] ::. Confirm [ } 167] HRESULT OnConfirmEvent([in] IDispatch* evtObj); Parameters evtObj [in] IDispatch pointer to a event object of the class TcEvent [ } 128] . The event object provides the full access to the confirmed event. Each client receives a reference to the event object and no copy. Return Values S_OK Function was successfully called E_POINTER evtObj was no valid pointer.

Visual Basic sample code Option Explicit Dim WithEvents evtLogger As TCEVENTLOGGERLib.TcEventLog ' form load Private Sub Form_Load() ' get the one and only event logger Set evtLogger = New TcEventLog End Sub ' event method Private Sub evtLogger_OnConfirmEvent(ByVal evtObj As Object) Dim evt As TcEvent Set evt = evtObj ' print the date and time of the confirmation Debug.Print evt.DateConfirmed End Sub Remarks 9.3.5.3 OnResetEvent _ITcEventLogEvents [ } 144] This event method is called on all clients that implement and connect this event interface when a event is reset.

The event was reset from the PLC function block ADSLOGEVENT by setting Event from TRUE to FALSE (or other ADS device) or the from a call to ITcEvent [ } 157] ::. Reset [ } 168] HRESULT OnResetEvent([in] IDispatch* evtObj); Parameters evtObj [in] IDispatch pointer to a event object of the class TvEvent [ } 128] . The event object provides the full access to the reset event. Each client receives a reference to the event object and no copy. Return Values S_OK TcEventLogger 146 Version: 1.1