- Posts: 2
- Thank you received: 0
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.
IOPCSyncIO.Read when trying to read a value from a OPC server
- brian.p.pearson@gmail.com
-
Topic Author
- Offline
- Junior Member
-
Thanks for your help and I understand that this forum is meant to help improve the code provided by the OPC Foundation but it is very difficult for developers like myself who cannot afford to become full members and then get access to the documentation and example code that would help develop our skills in the use of the OPC DA .Net libraries.
I now have managed to get an application working using the groups and subscription but I would like to do a lot more as I am sure I am just scratching the surface of the capabilities of the libraries. Any further guidance would be appreciated.
Best regards,
Brian
Please Log in or Create an account to join the conversation.
This is a forum for development related to OPC Labs QuickOPC components. So, from our point of view, the answer to "where I am going wrong" is "The wrong thing is trying to use the OPC Foundation library and not QuickOPC, especially if you have already tried QuickOPC and it works".
Kidding aside, things are actually more complicated than you may think. I cannot tell with 100% certainty just from your code what the issue is, but I have an educated guess. The problem is that in OPC Data Access 1.0x and OPC Data Access 2.0x, you always need to create a so-called OPCGroup, then Add items to it, and only then you can Read them. Then, the newest OPC Data Access 3.0x specification has added an IOPCItemIO interface that allows to do the Read directly the way you do. Few servers implement this newest specification, and even then this interface is optional I think (it is also quite inefficient for repeated reads, anyway). So, in order to resolve your issue with OPC Foundation libraries, I suggest you look into how to create OPCGroup first and add items to it.
QuickOPC hides these complexities from you. The OPC-DA handling code in it is reaching 15 years of maturity, and our experience with OPC will be soon 20 years, and that goes with active involvement *within* OPC Foundation, attending Interoperability Workshops, undergoing compliance certification, etc. While it is certainly possible to put together a small working piece of code with just the interface definitions or OPC Foundation libraries, you will never be able to get close to what a commercial component (not just QuickOPC) provides.
Best regards
ZZ
Please Log in or Create an account to join the conversation.
- brian.p.pearson@gmail.com
-
Topic Author
- Offline
- Junior Member
-
- Posts: 2
- Thank you received: 0
The code below has been taken from my client development and I have documented as best I can.
Thanks for any assistance
Brian Pearson
Please Log in or Create an account to join the conversation.
