We hoped to use a structured type as an argument for method calls. We created a variable of that type to read and write for testing. We can browse and read the variable. We can use the OPC UA Complex Data writing example in the documentation to write one of the primitive data members in the variable after first reading it. But, we have been unable two find a way to write the variable as a single write. That would be necessary if using a complex type as a method call argument.
The PLC is Beckhoff with the Beckhoff OPC Server. The simple type is shown below.
We've tried several ways to construct an acceptable complex type variable to write with no success. It seems that we are unable to make the library aware of the type of the complex object being written Our common error message has been some form of this:
Browsing the nodes in the code, from Connectivity Explorer or UAExpert all seem to identify the type easily. We see 2 different nomenclatures for the type depending on the method for browsing it as:
We have tried some different code snippets to construct an object instance to be written with the code below as the latest, but in no case can we seem to be able to properly specify the type of the object being written based on the exceptions we are seeing. For Full Name of the data type, we have tried all of the above and many more.
Can you see any fundamental error in understanding we may have in using the library?
Thank you. We tried to include a few details that might show our missteps.
The PLC is Beckhoff with the Beckhoff OPC Server. The simple type is shown below.
We've tried several ways to construct an acceptable complex type variable to write with no success. It seems that we are unable to make the library aware of the type of the complex object being written Our common error message has been some form of this:
Browsing the nodes in the code, from Connectivity Explorer or UAExpert all seem to identify the type easily. We see 2 different nomenclatures for the type depending on the method for browsing it as:
We have tried some different code snippets to construct an object instance to be written with the code below as the latest, but in no case can we seem to be able to properly specify the type of the object being written based on the exceptions we are seeing. For Full Name of the data type, we have tried all of the above and many more.
Can you see any fundamental error in understanding we may have in using the library?
Thank you. We tried to include a few details that might show our missteps.