dOPC Client Toolkit
Close
dOPCComn.TdOPCClient.Active

Active connects or disconnects from a OPC DA Server.

property Active: boolean;
__property boolean Active;

This value must be set to True to establish a connection to a server.

var Server : TdOPCDAClient; begin Server := TdOPCDAClient.Create(nil); Server.ServerName := 'opc.tcp://localhost:53530/opcua/simulationserver'; // UA Server Server.ServerName := 'Matrikon.OPC.Simulation'; // Classic COM Server Server.ServerName := ' http://opcxml.demo-this.com/XmlDaSampleServer/Service.asmx'; // XML DA Server Server.Active := true; //connect to Server // do something... Server.Active := false; //disconnect from Server Server.Free; end;
Kassl GmbH Copyright © 2024. All rights reserved.