Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
ExtensionOject Definition
October 24, 2022
16:51, EEST
Avatar
Matthias.Schwarzl@grupoantolin.com
Bamberg / Germany
Member
Members
Forum Posts: 3
Member Since:
October 24, 2022
sp_UserOfflineSmall Offline

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.

October 25, 2022
10:39, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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.

November 15, 2022
14:33, EET
Avatar
Matthias.Schwarzl@grupoantolin.com
Bamberg / Germany
Member
Members
Forum Posts: 3
Member Since:
October 24, 2022
sp_UserOfflineSmall Offline

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.

November 15, 2022
17:28, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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)’.

November 18, 2022
10:29, EET
Avatar
Matthias.Schwarzl@grupoantolin.com
Bamberg / Germany
Member
Members
Forum Posts: 3
Member Since:
October 24, 2022
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1