Event HMI 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.DisplayUserComment = True End Sub 7.2.1.16 AlarmTextColor ITcEventView [ } 68] This property sets or returns the color that is used to display alarm. The alarm had been issued from the PLC function block ADSLOGEVENT by setting the flag from FALSE to TRUE (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 TcEventClass [ } 179] set to TCEVENTCLASS_ALARM . Property get HRESULT get_AlarmTextColor([out, retval] OLE_COLOR* pVal); Parameters pVal [out, retval] pointer to OLE_COLOR variable that receives the text color that is used to display alarms. Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer Property let HRESULT put_AlarmTextColor([in] OLE_COLOR newVal); Parameters Return Values S_OK Function was successfully called TcEventLogger 82 Version: 1.1 newVal [in] A variable that sets the text color that is used to display alarms.