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

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
Koon Seng Chong
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: 1564
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: 510
Currently Online:
Guest(s) 39
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855