dOPC Client Toolkit
Close
dOPCDA.TdOPCItemProperties
dOPCDA_TdOPCItemProperties

class to store a list of all properties of an OPC Item 

 

TdOPCItemProperties = class(TdList);
class TdOPCItemProperties : public TdList;

TdOpcItemProperties can be used to browse the available properties (also referred to as attributes or parameters) associated with an item.

Besides the current values of these properties can be read.

//get all Properties from Item 'A100.SP' Props := TdOpcItemProperties.Create(OPCServer,'A100.SP'); for i := 0 to Props.Count-1 do with Props[i] do ShowMessage(Format('property %d %s Datatype: %d Value: %s',[Id,Description,Datatype,ValToAStr(Value)])); Props.Free;
Kassl GmbH Copyright © 2024. All rights reserved.