Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Synchronization state of data in subscription in live mapping

  • miron
  • Topic Author
  • Visitor
  • Visitor
17 Feb 2015 09:26 #2798 by miron
Thank you for your answer. No its clear and
I am sure about cohesion of QuickOPC API :-).

Please Log in or Create an account to join the conversation.

More
16 Feb 2015 19:43 #2789 by support
Answer to Question 1: Yes, because the Live Mapping is built on top of the procedural model. Note, however, that there is an implied difference: In procedural model, there is "one" event notification (ItemChanged) for the change in the item's state, and it carries all necessary information with it (error information, OR the value/timestamp/quality). In Live Mapping, you usually map the individual pieces of the incoming data - such as the Value, or the Timestamp, or Quality. Now, in case of error, there is actually no value, no timestamp, and no quality, in the notification. There is nothing reasonable that can be stored into these members through Live Mapping. Therefore, in case of error (such as OPC server down or inaccessible), there will be NO UPDATE to members mapped as Value, Timestamp, or Quality, even though the notification HAS arrived. What you need to do, if you want to be informed about the error state, is to map a separate member with a mapping kind such as Exception, ErrorMessage, or the like.

Answer to Question 2: Yes - as described in Question 1.

Answer to Question 3, both a) and b): There is no "refresh" like this in OPC Data Access, therefore you cannot precisely do it "as the question is asked". But you can easily issue a Read instead.

Please Log in or Create an account to join the conversation.

  • miron
  • Topic Author
  • Visitor
  • Visitor
16 Feb 2015 15:28 #2784 by miron
I would like ask about how it works synchronization state of subscription in live binding.

Case A

I document "Concepts" I could read information about subscription for EasyDAClient API:

"
First of all, you always receive at least one ItemChanged event notification after you make a
subscription; this notification either contains the initial data for the item, or an indication that
data is not currently available. This behavior allows your application to rely on the component to
provide at least some information for each subscribed item.

Secondly, the ItemChanged event is generated every time the component loses connection to the
item, and when it reestablishes the connection. This way, your application is informed about any
problems related to the item, and can process them accordingly if needed.

You will also receive the ItemChanged notification if the quality of the item changes (not just its
actual data value).
"



Question 1: It is work also for subscription in live mapping?

Case B:
In live mapping we have method Subscribe which could on / off subscription.

Question 2: After switch on is there synchronize data?


Case C
Forcing refreshing state.

Question 3: How I could force refreshing state (sending once again values)
a) EasyDAClieny?
b) Opce live mapping?



Thank you!

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.046 seconds