dOPC Client Toolkit
Close
dOPCAE.TdOPCEventServer.GetConditionState

GetConditionState returns the TdOPCEventCondition from the passed Source for the passed ConditionName.

function GetConditionState(Source: string; ConditionName: string): tdOPCEventCondition;
__fastcall tdOPCEventCondition GetConditionState(AnsiString Source, AnsiString ConditionName);
procedure TForm1.Button1Click(Sender: TObject); var dOPCEventServer: TdOPCEventServer; Source, ConditionName: string; ConditionNames : TStringlist; Condition : TdOPCEventCondition; begin ConditionNames := TStringlist.Create; Source := 'Device1.Ramp'; dOPCEventServer.QuerySourceConditions(Source,ConditionNames); if ConditionNames.Count > 0 then begin ConditionName := ConditionNames[0]; Condition := dOPCEventServer.GetConditionState(Source,ConditionName); if Condition <> nil then begin //... show info ... Condition.Free; end; end; ConditionNames.Free; end;
Kassl GmbH Copyright © 2019. All rights reserved.