Lack of clarity in IOPCItemMgt::SetActiveState|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
Lack of clarity in IOPCItemMgt::SetActiveState
Avatar
Jürgen Stähler
New Member
Members
Forum Posts: 2
Member Since:
08/29/2018
sp_UserOfflineSmall Offline
1
05/27/2021 - 10:59
sp_Permalink sp_Print

Hello,

In my opinion there is a lack of clarity in the comments to the IOPCItemMgt::SetActiveState Method in the OPC Data Access Custom Interface Specification 2.05.

The comments says: …Activating items will generally result in an IAdvise callback at the next UpdateRate period.

For me it is not 100% clear what ‘Activating items’ means. Does it imply that the present state is ‘deactivated’ and only a rising edge from ‘deactivated’ to ‘activated’ state results in an IAdvise callback (what is my assumption) or has the IAdvice callback be performed independent on the present state, means every time the item is set to ‘activated’ regardless of the present state.

I’m asking since we currently trying to analyse and solve an issue with an OPC client which calls the IOPCItemMgt::SetActiveState method to activate items which are already activated but the server doesn’t update the item values via IAdvise callback. The server only calls IAdvice when it detects a state change from ‘deactivated’ to ‘activated’.

Can anybody help to clarify?

Thanks

Jürgen

Avatar
Randy Armstrong
Admin
Forum Posts: 1438
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/27/2021 - 12:54
sp_Permalink sp_Print

Servers often need to allocate resources before they can monitor the source of an item. Setting Active = FALSE tells the server that it can release those resources without deleting the item. No subsequent updates will be reported.

Setting Active = TRUE tells the server to allocate those resources and report every change.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 20
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1341
Posts: 4545