Opc data Access Automation Specification



Download 1,93 Mb.
Pdf ko'rish
bet86/107
Sana03.01.2022
Hajmi1,93 Mb.
#317185
1   ...   82   83   84   85   86   87   88   89   ...   107
Bog'liq
OPC DA Auto 2.02 Specification

4.5.4.4

 

AddItems 

Description 

Creates OPCItem objects and adds them to the collection. The properties of each new OPCItem 

are determined by the current defaults in the OPCItems collection object. After an OPCItem is 

added, its properties can also be modified. 

Syntax 


AddItems (Count As Long, ItemIDs() As String, ClientHandles() As Long, ByRef  

ServerHandles() As Long, ByRef Errors() As Long, Optional RequestedDataTypes As Variant, 

Optional AccessPaths As Variant) 

 

Part Description 



Count 

The number of items to be affected 

ItemIDs 

Array of Fully Qualified ItemID’s 

ClientHandles 

Array of client item handles for the items processed 

ServerHandles 

Array of server item handles for the items processed 

Errors 

Array of Long’s indicating the success of the individual items 

operation.  

RequestedDataTypes  Optional Variant containing an integer array of Requested 

DataTypes. 

AccessPaths 

Optional Variant containing a string array of Access Path’s. 

 

See Also 



Appendix A - OPC Automation Error Handling 

Appendix D- Notes On Automation Data Types 

Example 

Dim addItemCount as long 

Dim AnOPCItemIDs() as String 

Dim AnOPCItemServerHandles as long 

Dim AnOPCItemServerErrors as long 

Dim AnOPCRequestedDataTypes as variant 

Dim AnOPCAccessPathss as variant 

For  x = 1 To AddItemCount 

 

ClientHandles(x)  



= x + 1 

 

AnOPCItemID(x) = “Register_”  &  x 



Next x 

AnOPCItemCollection.AddItems AddItemCount, AnOPCItemIDs, ClientHandles,  

AnOPCItemServerHandles, AnOPCItemServerErrors, AnOPCRequestedDataTypes, 

67 


 


OPC Data Access Automation Specification2.02 

AnOPCAccessPathss 

‘ add code to process any errors that are returned from ‘the method, individual errors are reported in 

the Errors array 

 

 


Download 1,93 Mb.

Do'stlaringiz bilan baham:
1   ...   82   83   84   85   86   87   88   89   ...   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