Opc data Access Automation Specification



Download 1,93 Mb.
Pdf ko'rish
bet75/107
Sana03.01.2022
Hajmi1,93 Mb.
#317185
1   ...   71   72   73   74   75   76   77   78   ...   107
Bog'liq
OPC DA Auto 2.02 Specification

4.4.5.5

 

AsyncRefresh 

Description 

Generate an event for all active items in the group (whether they have changed or not).  Inactive 

items are not included in the callback. The results are returned via the DataChange event 

associated with the OPCGroup object, as well as the GlobalDataChange event associated with the 

OPCGroups object. 

Syntax 

AsyncRefresh(Source As Integer, TransactionID As Long,ByRef CancelID As Long) 

 

Part Description 



Source 

The ‘data source’; OPC_DS_CACHE or OPC_DS_DEVICE  

TransactionID 

The client specified transaction ID. This is included in the 

‘completion’ information provided in the Corresponding Event. 

CancelID 

A Server generated transaction ID. This is provided to enable the 

client to cancel the “transaction”. 

 

Remarks 


The AsyncRefresh requires the OPCGroup object to have been dimensioned with events (Dim 

WithEvents xxx As OPCGroup) in order for the results of the refresh operation to be returned to the 

automation client application.  The DataChange event associated with the OPCGroup object will be 

fired (called) by the automation server with the results of the refresh operation.  

If the automation cleint application has dimensioned with events the OPCGroups Object (Dim 

WithEvents xyz as OPCGroups), then the GlobalDataChange event associated with the OPCGroups  

object will be fired (called) by the automation server with the results of the refresh operation. 

See Also 

IOPCAsyncIO::Refresh from the OPC Data Access Custom Interface Specification. 

Example 


Dim MyGroups As OPCGroups 

Dim DefaultGroupUpdateRate As Long 

Dim WithEvents OneGroup As OPCGroup 

Private Sub AsyncRefreshButton_Click() 

Dim ServerIndex As Long  

Dim Source As Long 

Dim ClientTransactionID As Long  

Dim ServerTransactionID As Long 

ClientTransactionID = 2125 

Source = OPC_DS_DEVICE 

OneGroup.AsyncRefresh Source, ClientTransactionID ServerTransactionID 

End Sub 


58 

 



OPC Data Access Automation Specification2.02 


Download 1,93 Mb.

Do'stlaringiz bilan baham:
1   ...   71   72   73   74   75   76   77   78   ...   107




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish