Opc data Access Automation Specification



Download 1,93 Mb.
Pdf ko'rish
bet98/107
Sana03.01.2022
Hajmi1,93 Mb.
#317185
1   ...   94   95   96   97   98   99   100   101   ...   107
Bog'liq
OPC DA Auto 2.02 Specification

4.6.3.14

 

EUInfo  

Description 

(Read-only) Variant that contains the Engineering Units information 

Syntax 


 EUInfo As Variant 

See Also 

OPCITEMATTRIBUTES in the OPC Data Access Custom Interface Specification 

Example 


Dim AnOPCItem as OPCItem 

Set OPCItem = GetOPCItem(SomeItemServerHandle) 

VB Syntax Example (getting the property): 

Dim CurrentValue As Variant 

Dim SomeValue As Variant 

CurrentValue = AnOPCItem.EUInfo 



4.6.4

 

OPCItem Methods 

4.6.4.1

 

Read 

Description 

Read makes a blocking call to read this item from the server. 

Read can be called with only a source (either OPCCache or OPCDevice) to refresh the item’s 

value, quality and timestamp properties. If the value, quality and timestamp must be in sync, this 

76 


 


OPC Data Access Automation Specification2.02 

method’s optional parameters return values that were acquired together. 

Syntax 

 Read (Source As Integer, Optional ByRef Value As Variant, Optional ByRef Quality As Variant, 

Optional ByRef TimeStamp As Variant) 

 

Part Description 



Source 

The ‘data source’; OPC_DS_CACHE or OPC_DS_DEVICE  

Value 

Returns the latest value read from the server 



Quality 

Returns the latest value read from the server 

TimeStamp 

Returns the latest timestamp read from the server. 

 

Example 


Private Sub ReadButton_Click() 

Dim AnOPCItem as OPCItem 

Set OPCItem = GetOPCItem(SomeItemServerHandle) 

Dim Source As Integer 

Dim Value As Variant  

Dim Quality As Variant  

Dim TimeStamp As Variant 

Source = OPC_DS_DEVICE 

AnOPCItem.Read Source, ServerHandles, Value, Quality, TimeStamp 

 ‘ process the values 

TextBox.Text = Value 

End Sub 


 


Download 1,93 Mb.

Do'stlaringiz bilan baham:
1   ...   94   95   96   97   98   99   100   101   ...   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