beckhoff — 9.3.8.17 MustConfirm

API Remarks After this method call the Event Logger will raise the event OnResetEvent [ } 146] on all clients that implement the event interface _ITcEventLogEvents [ } 144] (VB: Dim WithEvents). If the alarm was issued by the PLC the TCEVENTSTATE_RESET will be flagged at the EventState output of the PLC function block. 9.3.8.16 State ITcEvent [ } 157] The property returns the event status.

The event state is described through the enum TcEventStates [ } 181] HRESULT State([out, retval] long *pVal); Parameters pVal [out, retval] Pointer to a long value that receives the event state with the values of the enum TcEventStates Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer.

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 ' get the event state Dim states As TcEventStates states = evt.state 9.3.8.17 MustConfirm ITcEvent [ } 157] The property returns if the event has to be confirmed. This flag is true if the event was 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] with the TcEventFlags [ } 180] TCEVENTFLAG_REQMUSTCON set. HRESULT MustConfirm([out, retval] BOOL *pVal); Parameters pVal TcEventLogger 169 Version: 1.1