16:51, EEST
October 24, 2022
Dear Sir or Madame of PROSYSOPC support,
we bought the PROSYS SDK for Delphi.
Accessing of Node_id with simple data types is running perfectly.
I’m using the Client Version 7.5.0.
For accessing variant / customized data structures – I do have some difficulties.
I’m communicating with a device capable OPC with some dynamic structures
of datatyp ‘array of extentionObject’. chapter 8.1.1 shows an example of accessing data,
but without usage of ReadValues. For validating access to the desired structure
I’m using UAExpert and your UASampleClient.dproj (example projects) application. Both can’t resolve the structure.
Do I need the Node.xml definition of the structure ? Where is this xml defintion published to OPC SDK?
It is possible to define structure wihtin application (Read Values)?
What will be the best way of solution?
The Reply of BuitInType call is ‘0’ (predefined bitExtensionObject of SDK is 22).
Thanks for your Support.
Best regards,
Matthias.
10:39, EEST
December 21, 2011
I am not sure if I follow completely, but this is how it should work.
The server should expose the custom structure type via the address space so that the client applications can pick the definition from there. If this works, you should be able to see the values with Prosys OPC UA Browser and UaExpert.
If you can’t see the values with them in the correct form, the server is not exposing the types properly and there’s not much to do.
If you can see them, then you can use the DynamicStructure as described in the Tutorial. if you are reading a value of one scalar or array variable, you can use ReadValue. If you want to read several variables, you can use ReadValues.
BuiltinType=0 means that the value is Null.
14:33, EET
October 24, 2022
Hello Jouni,
within UaExpert, after Software Update 1.2 to 1.6, it is possible to monitor the customer data structure.
but inside PROSYS SDK i got the error message :
Failed to read Value of Node i=84 {RootFolder}. StatusCode=Bad_AttributeIdInvalid (0x80350000 – The attribute is not supported for the specified Node.
I read some posts inside of your forum, but I can’t access/read the structure (Array of ExtensionObject).
Please give me further support! (May be a litte hint could solve my issue).
Thanks a lot.
17:28, EET
December 21, 2011
RootFolder is an Object and therefore does not have any Value.
So, maybe you are trying to read the wrong node? or what are you doing when you get the exception?
The SDK enables you to use DynamicStructure for decoding custom structures. You can try ‘UaClient.getTypeDictionary().decode(extensionObject)’.
10:29, EET
October 24, 2022
Yes it was true – I seleted wrong NodeID.
I cannot use GetTypeDictionary, but I know the nodeId of type defintion for the
customer dynamic structure.
In this moment i got the message :
StatusCode=Bad_DecodingError (0x80070000 – Decoding halted because of invalid data in the stream.)
How can i get the customer definition for the decoding of the structure?
getTypeDictionary().getStructureSpecification (may be like this).
Thanks.
Most Users Ever Online: 1919
Currently Online:
17 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 727
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1525
Posts: 6456
Newest Members:
ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowallModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1028, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1