beckhoff — 9.3.8.21 MsReset

API 9.3.8.20 DateReset ITcEvent [ } 157] The property returns the event reset date and time. The event reset date and time is the time when the event was reset from the PLC function block by setting Event from TRUE to FALSE (or other ADS device) or from a call to ITcEvent [ } 157] ::. Reset [ } 168] HRESULT DateReset([out, retval] DATE *pVal); Parameters pVal [out, retval] Pointer to a long value that receives the event reset date and time. 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 reset date and time Dim dateTime As Date dateTime = evt.DateReset Debug.Print dateTime 9.3.8.21 MsReset ITcEvent [ } 157] The property returns the millisecond part of the event reset date and time. The event reset date and time is the time when the event was reset from the PLC function block by setting Event from TRUE to FALSE (or other ADS device) or from a call to ITcEvent [ } 157] ::.

Reset [ } 168] HRESULT MsReset([out, retval] long *pVal); Parameters Return Values S_OK Function was successfully called TcEventLogger 172 Version: 1.1 pVal [out, retval] Pointer to a long value that receives the millisecond part of the event reset date and time.