TiOPCItem.Activate

TiOPCItem

Used to instantiate a connection between the this OPC Item and the OPC Server.

procedure
Activate();

Description

Use the Activate to manually instantiate a connection between the specified OPC Item and the OPC Server. If you have not already setup the OPC item with the ComputerName, ServerName, ItemName, and PropertyName properties or have not setup the item through the built-in property editor, then a connection will not be made.

If you need automatic control over when the connections are made and disconnected between the Component and the OPC Server, set the SetOPCItemAutoConnect property to TRUE so that a connection to the OPC Server is made automatically during streaming/loading of the component.

Example

Delphi

iComponent.OPCItem[0].Activate; //Connect 1st OPC Item

C++ Builder

iComponent.OPCItem[0]->Activate(); //Connect 1st OPC Item

Contents | Index | Previous | Next