C# 클래스 Opc.Ua.Com.Client.ComHdaClient

Provides access to a COM DA server.
상속: ComClient
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
ComHdaClient ( Opc.Ua.Com.Client.ComHdaClientConfiguration configuration ) : System

Initializes a new instance of the ComHdaClient class.

CreateBrowser ( ) : IOPCHDA_Browser

Creates the browser.

DeleteAtTime ( string itemId, DeleteAtTimeDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode

Updates the history of an item.

DeleteRaw ( string itemId, DeleteRawModifiedDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode

Updates the history of an item.

FindAggregate ( uint aggregateId, ushort namespaceIndex ) : BaseObjectState

Finds the specified aggregate.

FindItemAnnotations ( string itemId, ushort namespaceIndex ) : PropertyState

Finds the item annotations.

FindItemAttribute ( string itemId, uint attributeId, ushort namespaceIndex ) : PropertyState

Finds the UA defined component of the item.

GetHistoryAccessLevel ( ) : byte

Gets the history access level for the HDA server.

GetItems ( ) : Opc.Ua.Com.Client.HdaItem[]

Get handles for the specified items.

GetServerCapabilities ( uint propertyId, object defaultValue ) : object

Gets the server capabilities.

GetStatus ( ) : ServerStatus?

Reads the status from the server.

GetSupportedAggregates ( ushort namespaceIndex ) : Opc.Ua.BaseObjectState[]

Gets the supported aggregates.

GetSupportedAttributes ( ) : Opc.Ua.Com.Client.HdaAttribute[]

Gets the supported attributes.

InsertAnnotations ( string itemId, UpdateDataDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode

Inserts annotations for item.

Read ( HdaReadRequestCollection requests, bool useExistingHandles ) : void

Reads the specified requests.

ReadAnnotationHistory ( HdaHistoryReadAnnotationRequest request ) : Opc.Ua.StatusCode

Reads the raw data history.

ReadAttributeHistory ( HdaHistoryReadAttributeRequest request ) : Opc.Ua.StatusCode

Reads the raw data history.

ReadAttributeValues ( int serverHandle ) : Opc.Ua.Com.Client.HdaAttributeValue[]

Updates the attributes for the items.

ReadAvailableAttributes ( HdaItem item ) : Opc.Ua.Com.Client.HdaAttributeValue[]

Reads the values for all available attributes.

ReadHistory ( HdaHistoryReadAtTimeRequest request ) : Opc.Ua.StatusCode

Reads the data history at specified times.

ReadHistory ( HdaHistoryReadProcessedRequest request ) : Opc.Ua.StatusCode

Reads the processed data history.

ReadHistory ( HdaHistoryReadRawModifiedRequest request ) : Opc.Ua.StatusCode

Reads the raw data history.

ReleaseItemHandles ( ) : int[]

Releases the handles for the items.

ReleaseItemHandles ( HdaItem items ) : void

Releases the handles for the items.

UpdateData ( string itemId, UpdateDataDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode

Updates the history of an item.

UpdateServerMetadata ( ) : void

Updates the server metadata.

ValidateItemIds ( ) : bool[]

Validates the item ids.

비공개 메소드들

메소드 설명
ConvertTime ( System.DateTime time ) : OPCHDA_TIME

Converts the DateTime to an OPCHDA_TIME.

DeleteAtTime ( HdaItem item, DateTimeCollection timestamps ) : int[]

Deletes the raw data for an item.

DeleteRaw ( HdaItem item, System.DateTime startTime, System.DateTime endTime ) : Opc.Ua.StatusCode

Deletes the raw data for an item.

GetAnnotationAccessLevel ( ) : byte

Gets the access level for annotations provided by the server.

GetUpdateCapabilities ( ) : OPCHDA_UPDATECAPABILITIES

Gets the update capabilities for the server.

InsertAnnotations ( HdaItem item, DataValueCollection values, int &errors ) : Opc.Ua.StatusCode

Insert annotations.

MapErrorCodeToUpdateStatus ( int error ) : Opc.Ua.StatusCode

Converts a HRESULT returned during a HistoryUpdate to an StatusCode.

ReadAnnotations ( HdaHistoryReadAnnotationRequest request ) : Opc.Ua.StatusCode

Reads the annotation data for an item.

ReadAtTime ( HdaHistoryReadAtTimeRequest request ) : Opc.Ua.StatusCode

Reads the data for an item at the specified times.

ReadAttributes ( HdaHistoryReadAttributeRequest request ) : Opc.Ua.StatusCode

Reads the raw modified data for an item.

ReadModified ( HdaHistoryReadRawModifiedRequest request ) : Opc.Ua.StatusCode

Reads the raw modified data for an item.

ReadProcessed ( HdaHistoryReadProcessedRequest request ) : Opc.Ua.StatusCode

Reads the raw data for an item.

ReadRaw ( HdaHistoryReadRawModifiedRequest request ) : Opc.Ua.StatusCode

Reads the raw data for an item.

UpdateData ( HdaItem item, PerformUpdateType updateType, DataValueCollection values, int &errors ) : Opc.Ua.StatusCode

Update data

메소드 상세

ComHdaClient() 공개 메소드

Initializes a new instance of the ComHdaClient class.
public ComHdaClient ( Opc.Ua.Com.Client.ComHdaClientConfiguration configuration ) : System
configuration Opc.Ua.Com.Client.ComHdaClientConfiguration
리턴 System

CreateBrowser() 공개 메소드

Creates the browser.
public CreateBrowser ( ) : IOPCHDA_Browser
리턴 IOPCHDA_Browser

DeleteAtTime() 공개 메소드

Updates the history of an item.
public DeleteAtTime ( string itemId, DeleteAtTimeDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode
itemId string
details DeleteAtTimeDetails
result HistoryUpdateResult
리턴 Opc.Ua.StatusCode

DeleteRaw() 공개 메소드

Updates the history of an item.
public DeleteRaw ( string itemId, DeleteRawModifiedDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode
itemId string
details DeleteRawModifiedDetails
result HistoryUpdateResult
리턴 Opc.Ua.StatusCode

FindAggregate() 공개 메소드

Finds the specified aggregate.
public FindAggregate ( uint aggregateId, ushort namespaceIndex ) : BaseObjectState
aggregateId uint
namespaceIndex ushort
리턴 Opc.Ua.BaseObjectState

FindItemAnnotations() 공개 메소드

Finds the item annotations.
public FindItemAnnotations ( string itemId, ushort namespaceIndex ) : PropertyState
itemId string The item id.
namespaceIndex ushort Index of the namespace.
리턴 PropertyState

FindItemAttribute() 공개 메소드

Finds the UA defined component of the item.
public FindItemAttribute ( string itemId, uint attributeId, ushort namespaceIndex ) : PropertyState
itemId string The item id.
attributeId uint The attribute id.
namespaceIndex ushort Index of the namespace.
리턴 PropertyState

GetHistoryAccessLevel() 공개 메소드

Gets the history access level for the HDA server.
public GetHistoryAccessLevel ( ) : byte
리턴 byte

GetItems() 공개 메소드

Get handles for the specified items.
public GetItems ( ) : Opc.Ua.Com.Client.HdaItem[]
리턴 Opc.Ua.Com.Client.HdaItem[]

GetServerCapabilities() 공개 메소드

Gets the server capabilities.
public GetServerCapabilities ( uint propertyId, object defaultValue ) : object
propertyId uint The property id.
defaultValue object The default value.
리턴 object

GetStatus() 공개 메소드

Reads the status from the server.
public GetStatus ( ) : ServerStatus?
리턴 ServerStatus?

GetSupportedAggregates() 공개 메소드

Gets the supported aggregates.
public GetSupportedAggregates ( ushort namespaceIndex ) : Opc.Ua.BaseObjectState[]
namespaceIndex ushort
리턴 Opc.Ua.BaseObjectState[]

GetSupportedAttributes() 공개 메소드

Gets the supported attributes.
public GetSupportedAttributes ( ) : Opc.Ua.Com.Client.HdaAttribute[]
리턴 Opc.Ua.Com.Client.HdaAttribute[]

InsertAnnotations() 공개 메소드

Inserts annotations for item.
public InsertAnnotations ( string itemId, UpdateDataDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode
itemId string The item id.
details UpdateDataDetails The details.
result HistoryUpdateResult The result.
리턴 Opc.Ua.StatusCode

Read() 공개 메소드

Reads the specified requests.
public Read ( HdaReadRequestCollection requests, bool useExistingHandles ) : void
requests HdaReadRequestCollection The requests.
useExistingHandles bool if set to true use the handles specified in the request objects.
리턴 void

ReadAnnotationHistory() 공개 메소드

Reads the raw data history.
public ReadAnnotationHistory ( HdaHistoryReadAnnotationRequest request ) : Opc.Ua.StatusCode
request HdaHistoryReadAnnotationRequest The request.
리턴 Opc.Ua.StatusCode

ReadAttributeHistory() 공개 메소드

Reads the raw data history.
public ReadAttributeHistory ( HdaHistoryReadAttributeRequest request ) : Opc.Ua.StatusCode
request HdaHistoryReadAttributeRequest The request.
리턴 Opc.Ua.StatusCode

ReadAttributeValues() 공개 메소드

Updates the attributes for the items.
public ReadAttributeValues ( int serverHandle ) : Opc.Ua.Com.Client.HdaAttributeValue[]
serverHandle int
리턴 Opc.Ua.Com.Client.HdaAttributeValue[]

ReadAvailableAttributes() 공개 메소드

Reads the values for all available attributes.
public ReadAvailableAttributes ( HdaItem item ) : Opc.Ua.Com.Client.HdaAttributeValue[]
item HdaItem The item.
리턴 Opc.Ua.Com.Client.HdaAttributeValue[]

ReadHistory() 공개 메소드

Reads the data history at specified times.
public ReadHistory ( HdaHistoryReadAtTimeRequest request ) : Opc.Ua.StatusCode
request HdaHistoryReadAtTimeRequest
리턴 Opc.Ua.StatusCode

ReadHistory() 공개 메소드

Reads the processed data history.
public ReadHistory ( HdaHistoryReadProcessedRequest request ) : Opc.Ua.StatusCode
request HdaHistoryReadProcessedRequest
리턴 Opc.Ua.StatusCode

ReadHistory() 공개 메소드

Reads the raw data history.
public ReadHistory ( HdaHistoryReadRawModifiedRequest request ) : Opc.Ua.StatusCode
request HdaHistoryReadRawModifiedRequest The request.
리턴 Opc.Ua.StatusCode

ReleaseItemHandles() 공개 메소드

Releases the handles for the items.
public ReleaseItemHandles ( ) : int[]
리턴 int[]

ReleaseItemHandles() 공개 메소드

Releases the handles for the items.
public ReleaseItemHandles ( HdaItem items ) : void
items HdaItem
리턴 void

UpdateData() 공개 메소드

Updates the history of an item.
public UpdateData ( string itemId, UpdateDataDetails details, HistoryUpdateResult result ) : Opc.Ua.StatusCode
itemId string
details UpdateDataDetails
result HistoryUpdateResult
리턴 Opc.Ua.StatusCode

UpdateServerMetadata() 공개 메소드

Updates the server metadata.
public UpdateServerMetadata ( ) : void
리턴 void

ValidateItemIds() 공개 메소드

Validates the item ids.
public ValidateItemIds ( ) : bool[]
리턴 bool[]