Replies: 1 comment 5 replies
-
|
I would guess that UaExpert is reading/parsing the DataType dictionary XML document... Does your server have an entry like this (with some other namespace/name than BACnet)?
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I want to call a method but have problems getting the InputArguments encoding from the server.
Situation
The method is GenerateFileForRead. If I open the "Call" method dialogue window in UaExpert, I can see the argment is of type
ProductionDatasetReadOptionsTypeand has two fields, Storage (an Enum) and Name (String):The Attributes of the InputArguments reference DataType ns=4;i=3007.
Node ns=4;i=3007 is indeed
ProductionDatasetReadOptionsType. But it has no DataTypeDefinition, nor anything else that hints at fields Storage and Name or its DataTypes. Its encoding are defaults.Goal/Problem
I want to call the method. For that I need to encode the input argument, but it is missing its DataTypeDefinition. I'm trying to repeat the trick of discussion #1703 and define my own DataType with the DataTypeDefinition and StructureFields that I expect, but I still need an encoding for that, and seemingly no way to get it. The referenced Default Binary and Default XML for
ProductionDatasetReadOptionsTypehavenullencodings.But that makes me wonder:
Question
When displaying the "Call" method dialogue, UaExpert somehow knows how to resolve the input argument into its fields Storage and Name, and even correctly resolve the Storage Enum. I should be able to replicate that by following references through the OPC UA structure, and find the encoding. But I cannot figure out how; even igonring the encoding,
ProductionDatasetReadOptionsTypedoes not appear to contain or reference this structure (the fields, their types, ...) at all. What am I missing?Beta Was this translation helpful? Give feedback.
All reactions