dOPC Client Toolkit

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 := ''; // 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.