OPC Server DA dll - Retrieve tags value in bulk | Classic OPC: DA, A&E, HDA, XML-DA, etc. | Forum

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
OPC Server DA dll - Retrieve tags value in bulk
Avatar
koonseng.chong@mescada.com
New Member
Members
Forum Posts: 1
Member Since:
09/10/2019
sp_UserOfflineSmall Offline
1
09/10/2019 - 09:51
sp_Permalink sp_Print

Hi,

I'm using OPCSiemensDAAutomation dll with C# .NET to retrieve tag's value from OPC Server. I managed to retrieve the values using QueryAvailableProperties() and GetItemProperties(), but the objective is to retrieve 500k tags value per request.

I have tested with 100 tags and the code finished it in 45 seconds, with multi threading resulted in a small improvement of 30 seconds for 100 tags. It'll requires more than 4 hours to achieve the targeted tags volume with current speed. Is there any way that I can retrieve the tags value in bulk with better performance? Thanks.

Avatar
Randy Armstrong
Admin
Forum Posts: 270
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/12/2019 - 01:36
sp_Permalink sp_Print

GetItemProperties is a metadata method in COM DA and it can be very slow.

The only way to access data efficiently is to use the Read or set up a a Subscription.

Some servers provide ItemIDs for Properties which allows you to use the Read method.

Forum Timezone: America/Phoenix
Most Users Ever Online: 143
Currently Online: myrupmartin@hotmail.com
17
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Newest Members:
mhmedfayiz93@gmail.com
Forum Stats:
Groups: 2
Forums: 9
Topics: 565
Posts: 1611

 

Member Stats:
Guest Posters: 1
Members: 98700
Moderators: 10
Admins: 3
Administrators: michael.bryant@opcfoundation.org, thomas.burke@opcfoundation.org, Randy Armstrong
Moderators: matthias.damm@ascolab.com, s.hoppe@beckhoff.com, paul.hunkar@dsinteroperability.com, jouni.aro@prosys.fi, tim.fortin@honeywell.com, Jim.Luth@Schneider-Electric.com, Karl-Heinz Deiretsbacher, stefan.hoppe@opcfoundation.org, alexander.allmendinger@opcfoundation.org, Karl Deiretsbacher