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

A wrapper for COM-DA group.
Наследование: ComObject
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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[]