dOPC Client Toolkit Help file
TdOPCSvr Class Members
Members
TdHandleComponent Properties
TdHandleComponent Properties 
Description 
Active connects or disconnects from a OPC DA Server. 
BuildNumber contains the build number of the OPC server. 
ClientName contains a client name registered with TdOPCSrvs. 
ComputerName contains the name of the server to which the client is connected via the Connect method. 
This is ConnectDelay, a member of class TdOPCSvr. 
CurrentTime contains the current time from the server. 
Provides access to the window handle of the dOPC Server components (TdOPCServer and tdOPCEventServer). 
KeepAlive specify a value in milliseconds to check the OPC server accessibility 
LastUpdateTime contains the last update time from the server. 
LocaleId contains the locale id which may be used to localize strings returned from the server. 
MajorVersion contains the major part of the server version number (e.g. the "1" in version "1.32"). 
MinorVersion contains the minor part of the server version number (e.g. the "32" in version "1.32"). 
Params contains additional parameters for XML communication. 
Protocol contains the communication protocol of the OPC DA server (coCOM or coXML). 
ServerCaption contains the name of the server. 
ServerClsId contains the class id of the OPC server if the Protocol is coCOM, otherwise an empty string. 
ServerName contains the name of the OPC DA server the client wants to connect with. 
ServerState contains the current server state. 
ServerStateStr contains the ServerState as a string. 
StartTime contains the the server startup time. 
VendorInfo contains the vendor information string for the server. 
Version contains the version of the dOPC component. 
This is WrongServertype, a member of class TdOPCSvr. 
Topics
Topic 
Description 
The properties of the TdHandleComponent class are listed here. 
The events of the TdOPCSvr class are listed here. 
The methods of the TdOPCSvr class are listed here. 
The properties of the TdOPCSvr class are listed here. 
TdOPCSvr Methods
TdOPCSvr Methods 
Description 
check if connected to server -> if not then raise an exception 
Connect establishes a connection to an OPC DA server. 
Disconnect disconnects from a connected OPC server. 
Abstract method. 
GetState returns global information about the server. 
LoadFromFile loads the TdOPCSrv component from the file passed by the FromFile parameter and fills all properties, groups and items. 
LoadFromStream loads the TdOPCSrv component from the stream passed by the Stream parameter and fills all properties, groups and items. 
SaveToFile saves the TdOPCSrv component to the file passed by the ToFile parameter (including all properties, groups and items). 
SaveToStream saves the TdOPCSrv component to the stream passed by the Stream parameter (including all properties, groups and items). 
ServerTypeName returns the type of the OPC server as a string. 
Version2 returns True if the OPC server is OPC DA 2 server, otherwise False. 
Version3 returns True if the OPC server is OPC DA 3 server, otherwise False. 
TdOPCSvr Events
TdOPCSvr Events 
Description 
OnConnect is generated when a connection has been established with an OPC server. 
OnDisconnect is generated after a disconnect from an OPC server. 
OnError is generated if any error occurred on the OPC server. 
Events
OnServerShutdown is generated when the OPC server plans to shut down. 
OnTimeout is generated when the connection to the OPC server has timed out.
The value of property KeepAlive must greater than zero 
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.