C# Класс Opc.Ua.Com.Client.ComDaClient

Provides access to a COM DA server.
Наследование: ComClient
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CloneClient ( ) : ComDaClient

Creates a new instance of the client with the same configuration.

ComDaClient ( ComDaClientConfiguration configuration ) : System

Initializes a new instance of the ComDaClient class.

CreateBrowser ( string itemId ) : IDaElementBrowser

Creates a browser.

CreateGroup ( int groupId, int samplingInterval, float deadband, int &groupHandle, int &revisedSamplingInterval ) : object

Creates a group.

FindElement ( string itemId ) : DaElement

Finds the branch or item.

FindElementParentId ( string itemId ) : string

Finds the item id for the parent of the element.

FindProperty ( string itemId, int propertyId ) : DaProperty

Finds the property metadata for the specified item id.

GetStatus ( ) : OPCSERVERSTATUS?

Reads the status from the server.

Read ( ReadRequestCollection requests ) : void

Reads the item and property values from the server.

ReadAvailableProperties ( string itemId, bool updateCache ) : DaProperty[]

Read the available non-built in properties from the server.

ReadPropertyValues ( List requests ) : void

Reads the property values and stores the results in the request objects.

RemoveGroup ( int groupHandle ) : void

Removes a group.

Write ( WriteRequestCollection requests ) : void

Writes the item and property values to the server.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

OnConnected ( ) : void

Called immediately after connecting to the server.

Приватные методы

Метод Описание
ChangeBrowsePosition ( OPCBROWSEDIRECTION direction, string name ) : bool

Changes the browse position.

CreateElement ( string itemId, string name, string parentId ) : DaElement

Creates a new element.

CreateEnumerator ( bool branches ) : EnumString

Creates an enumerator for the current browse position.

Da20ReadItemValues ( List requests ) : void

Reads the item values and stores the results in the request object.

Da20WriteItemValues ( List requests ) : void

Writes the item values to servers.

Da30ReadItemValues ( List requests ) : void

Reads the values using the DA3 interfaces.

Da30WriteItemValues ( List requests ) : void

Writes the values using the DA3 interfaces.

FindElement ( string itemId, string name, string parentId ) : DaElement

Finds the element and updates the name if it is not already cached.

GetItemId ( string browseName ) : string

Looks up the item id for the node relative to the current browse position.

GetPropertyItemIds ( string itemId, DaProperty properties ) : void

Gets the property item ids.

ReadPropertyValues ( string itemId ) : DaValue[]

Reads the values of the properties from the server.

SaveElementInCache ( DaElement element ) : void

Saves the element in cache.

UpdateElement ( DaElement element, string name, string parentId ) : void

Updates a element.

Описание методов

CloneClient() публичный Метод

Creates a new instance of the client with the same configuration.
public CloneClient ( ) : ComDaClient
Результат ComDaClient

ComDaClient() публичный Метод

Initializes a new instance of the ComDaClient class.
public ComDaClient ( ComDaClientConfiguration configuration ) : System
configuration ComDaClientConfiguration
Результат System

CreateBrowser() публичный Метод

Creates a browser.
public CreateBrowser ( string itemId ) : IDaElementBrowser
itemId string The item id.
Результат IDaElementBrowser

CreateGroup() публичный Метод

Creates a group.
public CreateGroup ( int groupId, int samplingInterval, float deadband, int &groupHandle, int &revisedSamplingInterval ) : object
groupId int
samplingInterval int
deadband float
groupHandle int
revisedSamplingInterval int
Результат object

Dispose() защищенный Метод

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FindElement() публичный Метод

Finds the branch or item.
public FindElement ( string itemId ) : DaElement
itemId string The item id.
Результат DaElement

FindElementParentId() публичный Метод

Finds the item id for the parent of the element.
public FindElementParentId ( string itemId ) : string
itemId string The item id.
Результат string

FindProperty() публичный Метод

Finds the property metadata for the specified item id.
public FindProperty ( string itemId, int propertyId ) : DaProperty
itemId string The item id.
propertyId int The property id.
Результат DaProperty

GetStatus() публичный Метод

Reads the status from the server.
public GetStatus ( ) : OPCSERVERSTATUS?
Результат OPCSERVERSTATUS?

OnConnected() защищенный Метод

Called immediately after connecting to the server.
protected OnConnected ( ) : void
Результат void

Read() публичный Метод

Reads the item and property values from the server.
public Read ( ReadRequestCollection requests ) : void
requests ReadRequestCollection The requests.
Результат void

ReadAvailableProperties() публичный Метод

Read the available non-built in properties from the server.
public ReadAvailableProperties ( string itemId, bool updateCache ) : DaProperty[]
itemId string The item id.
updateCache bool if set to true the cache is updated.
Результат DaProperty[]

ReadPropertyValues() публичный Метод

Reads the property values and stores the results in the request objects.
public ReadPropertyValues ( List requests ) : void
requests List The requests.
Результат void

RemoveGroup() публичный Метод

Removes a group.
public RemoveGroup ( int groupHandle ) : void
groupHandle int
Результат void

Write() публичный Метод

Writes the item and property values to the server.
public Write ( WriteRequestCollection requests ) : void
requests WriteRequestCollection The requests.
Результат void