beckhoff — 7.2.1.46 MaxEvents

Event HMI 7.2.1.46 MaxEvents ITcEventView [ } 68] This property sets or returns the number of maximum displayed events in the TcEventViewer.

Property get HRESULT get_MaxEvents([out, retval] long* pVal); Parameters pVal [out, retval] pointer to variable that receives the max number of events Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer Property let HRESULT put_MaxEvents[in] long newVal); Parameters newVal [in] A variable that sets the the max number of events Return Values S_OK Function was successfully called Visual Basic sample code Option Explicit ' add the Beckhoff TcEvent View Library to the components ' place a TcEventView on the form, and assign the name TcEventView1 Private Sub Form_Load() TcEventView1.MaxEvents = 20 End Sub Remarks If MaxEvent is set to 0 all events are displayed.

The reducing of the max number of events can speed up the performance of the TcEventView. TcEventLogger 108 Version: 1.1