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

A wrapper for COM-DA group.
상속: ComObject
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
ActivateItems ( bool active ) : void

Sets the active state for a set of items in a group.

AddItems ( ) : void

Adds all items to the group that have not already been added.

ApplyChanges ( ) : bool

Applys any changes to the group.

ComDaGroup ( ComDaClient server, bool callbacksRequired ) : System

Creates an empty group.

Create ( ) : void

Creates the group on the server if not already created.

CreateItem ( string itemId, int samplingInterval, float deadband, bool active ) : GroupItem

Creates the item.

Delete ( ) : void

Deletes the group on the server if it has been created.

ModifyGroup ( ) : int

Modifies the group.

ModifyItem ( GroupItem item, int samplingInterval, float deadband, bool active ) : bool

Modifies the item.

RemoveItem ( GroupItem item ) : bool

Removes the item from the group.

RemoveItems ( ) : void

Removes the items from the group that have been marked as deleted.

SetMonitoredItems ( GroupItem item, MonitoredItem monitoredItems ) : void

Sets the monitored items associated with the item.

SyncRead ( int serverHandles, int count ) : DaValue[]

Reads the values for a set of items.

SyncWrite ( int serverHandles, object values, int count ) : int[]

Writes the values for a set of items.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

ReleaseServer ( ) : void

Releases all references to the server.

비공개 메소드들

메소드 설명
GetItemResults ( IntPtr &pInput, int count, bool deallocate ) : int[]

Unmarshals and deallocates a OPCITEMRESULT structures.

GetItemValues ( IntPtr &pInput, int count, bool deallocate ) : DaValue[]

Unmarshals and deallocates a OPCITEMSTATE structures.

GetItemValues ( int dwCount, object pvValues, short pwQualities, System pftTimeStamps, int pErrors ) : DaValue[]

Creates an array of item value result objects from the callback data.

OnDataChange ( int clientHandles, DaValue values ) : void

Called when a data change event arrives.

OnReadComplete ( int requestId, int clientHandles, DaValue values ) : void

Called when a asynchronous read completes.

OnWriteComplete ( int requestId, int clientHandles, int errors ) : void

Called when a asynchronous write completes.

메소드 상세

ActivateItems() 공개 메소드

Sets the active state for a set of items in a group.
public ActivateItems ( bool active ) : void
active bool
리턴 void

AddItems() 공개 메소드

Adds all items to the group that have not already been added.
public AddItems ( ) : void
리턴 void

ApplyChanges() 공개 메소드

Applys any changes to the group.
public ApplyChanges ( ) : bool
리턴 bool

ComDaGroup() 공개 메소드

Creates an empty group.
public ComDaGroup ( ComDaClient server, bool callbacksRequired ) : System
server ComDaClient The server that the group belongs to.
callbacksRequired bool if set to true if the group will received callbacks.
리턴 System

Create() 공개 메소드

Creates the group on the server if not already created.
public Create ( ) : void
리턴 void

CreateItem() 공개 메소드

Creates the item.
public CreateItem ( string itemId, int samplingInterval, float deadband, bool active ) : GroupItem
itemId string The item id.
samplingInterval int The sampling interval.
deadband float The deadband.
active bool if set to true [active].
리턴 GroupItem

Delete() 공개 메소드

Deletes the group on the server if it has been created.
public Delete ( ) : void
리턴 void

Dispose() 보호된 메소드

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

ModifyGroup() 공개 메소드

Modifies the group.
public ModifyGroup ( ) : int
리턴 int

ModifyItem() 공개 메소드

Modifies the item.
public ModifyItem ( GroupItem item, int samplingInterval, float deadband, bool active ) : bool
item GroupItem The item.
samplingInterval int The sampling interval.
deadband float The deadband.
active bool if set to true [active].
리턴 bool

ReleaseServer() 보호된 메소드

Releases all references to the server.
protected ReleaseServer ( ) : void
리턴 void

RemoveItem() 공개 메소드

Removes the item from the group.
public RemoveItem ( GroupItem item ) : bool
item GroupItem The item.
리턴 bool

RemoveItems() 공개 메소드

Removes the items from the group that have been marked as deleted.
public RemoveItems ( ) : void
리턴 void

SetMonitoredItems() 공개 메소드

Sets the monitored items associated with the item.
public SetMonitoredItems ( GroupItem item, MonitoredItem monitoredItems ) : void
item GroupItem The item.
monitoredItems Opc.Ua.Server.MonitoredItem The monitored items.
리턴 void

SyncRead() 공개 메소드

Reads the values for a set of items.
public SyncRead ( int serverHandles, int count ) : DaValue[]
serverHandles int
count int
리턴 DaValue[]

SyncWrite() 공개 메소드

Writes the values for a set of items.
public SyncWrite ( int serverHandles, object values, int count ) : int[]
serverHandles int
values object
count int
리턴 int[]