dOPC Client Toolkit
Close
dOPCDA.TdOPCGroups.Add

Add, creates and returns a new TdOPCGroup object and adds it to the tdOPCGroups collection.

function Add(GroupName: string; Active: boolean; OnDataChange: boolean): TdOPCGroup; overload;
__fastcall TdOPCGroup Add(AnsiString GroupName, boolean Active, boolean OnDataChange);
Parameter
Description
GroupName
Your own unique group name
Active
true = creates an active group otherwise (false) the group is not active
OnDatachange
true = creates a group with subscription otherwise (false) no onDatachange event will be fired.

The properties of this new group are determined by the current defaults in the TdOPCDAClient object. After a group is added, its properties can be modified. The name of the group which is passed by the GroupName parameter must be unique among the other groups created by the client.

var MyGroup : TdOPCGroup; begin MyGroup := OPCServer.OPCGroups.Add('MyGroup',true,false); //adds an active group without subscription //... end;
Kassl GmbH Copyright © 2024. All rights reserved.