- Posts: 16
- Thank you received: 1
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.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Reading, Writing, Subscriptions
- How to call a method with complex type arguments
How to call a method with complex type arguments
Please Log in or Create an account to join the conversation.
We have fixed the problem - thank you for reporting it! The updated QuickOPC 2020.2 build is on our Web site.
Please download the current version from www.opclabs.com/products/quickopc/downloads and install it, verifying (on the 1st page of the setup wizard) that it reports itself as 5.58.184.1 or later, and then rebuild your project with the new assemblies and retest.
Does your license cover version 2020.2?
Best regards
Please Log in or Create an account to join the conversation.
Some servers expose the same information in two ways - an object object has variables, but at the same type, it is represented with a data type (structure) on its "root" node. The clients can then choose whether to access the variable individually, or the whole object as a structure. In case of many sub-variables, transferring the structure is more efficient. The structure value can also be read/written/subscribed to atomically - so you work with a consistent snapshot of variables at one point in time (which is sometimes required, but at other times it's not desired - such as when you want to modify just one variable and there are other actors that should be allowed to modify different variables in the same object concurrently). So, it all depends...
Best regards
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
regarding the server endpoint - that's perfect. Thank you In fact I have not expected it so quickly, please allow for some time - I need to schedule some uninterrupted time to work on this. I will edit your post to remove the precise address - I already have a copy.
Best regards
Please Log in or Create an account to join the conversation.
There is currently no mapping of UAGenericObject to custom C# types, or Live Mapping "into" the members of UAGenericObject/GenericData. These features are something that we definitely know about and considered, and I am quite happy you are interested in such advanced concepts - but the support for it is not yet available, sorry.
Please Log in or Create an account to join the conversation.
The method we were trying to call is at Objects/PLC1/OpcCommunication/OpcEffectLinear/OpcEffectLinear[1]/MoveAbsolute.
Let me know what other info you need.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It is now clear that the ArgumentException you got is a QuickOPC bug. We will fix it. Which version are you using?
But, even after the fix, you will still receive the exception - it will be the "proper" (or "better") one: "The OPC UA server has returned a null result, but this operation requires a non-null value.". This exception has to do with various pieces of information about the complex data type we need to obtain from the server - but it is not clear where precisely it fails. Resolving it would be more difficult. Ideally we would like to be able to reproduce it on our side and work on it independently, to save you (and us) from many and many round-trips between you and us and improving the diagnostics etc. It should be said that this combination (methods calls + complex data types) only received limited testing, because few were available for testing.
Is this an embedded server, or PC based? If it is embedded, is there a PC version of it? Can we get access to it (and the configuration) somehow? Or, would it be possible that you expose the server endpoint on the Internet (with firewall open to just our IP address for testing) or over VPN?
Kind regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Reading, Writing, Subscriptions
- How to call a method with complex type arguments