Opc data Access Automation Specification



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

4.5.4.5

 

Remove  

Description 

 Removes an OPCItem  

Syntax 


 Remove (Count As Long, ServerHandles() As Long, ByRef Errors() As Long) 

Part Description 

Count 

The number of items to be removed 



ServerHandles 

Array of server item handles for the items processed 

Errors 

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

operation.  

Example 


AnOPCItemCollection.Remove  AnOPCItemServerHandles, AnOPCItemServerErrors 

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

the Errors array 

4.5.4.6

 

Validate  

Description 

Determines if one or more OPCItems could be successfully created via the Add method (but does 

not add them). 

Syntax 

Validate (Count As Long, ItemIDs() As String, 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 

Errors 

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

operation.  

RequestedDataTypes  Variant containing an integer array of Requested DataTypes. 

AccessPaths 

Variant containing a string array of Access Path’s. 

 

See Also 



Appendix A - OPC Automation Error Handling 

Appendix D- Notes On Automation Data Types 

68 

 



OPC Data Access Automation Specification2.02 

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.Validate AddItemCount, AnOPCItemIDs, AnOPCItemServerErrors, 

AnOPCRequestedDataTypes, 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   ...   83   84   85   86   87   88   89   90   ...   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