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
Unknown references in CodeSys SPS
May 17, 2016
17:52, EEST
Avatar
DanielEichler
New Member
Members
Forum Posts: 1
Member Since:
May 17, 2016
sp_UserOfflineSmall Offline

Hello,

we have a CodeSys RTE v3.5.8 with activated OPC-UA-Server.
Connecting via UAExpert works fine so far and I can browse nodes and values.

When trying to use the Prosys OPC-UA-Java-SDK to read some SPS value, I get the following error:

[2016-05-17 11:58:00,008+0000] [WARN] [vert.x-worker-thread-0] [AddressSpace] – Cannot set the type corresponding to the typeDefinition (ns=3;i=62) of node 4:AVTemp (ns=4;s=|var|CODESYS Control RTE .Application.HMI_Logger.AVTemp) com.prosysopc.ua.client.AddressSpaceException: Cannot determine NodeClass for NodeId: ns=3;i=62 because the value is not good: DataValue(value=(null), statusCode=Bad_NodeIdUnknown (0x80340000) “The node id refers to a node that does not exist in the server address space.”, sourceTimestamp=null, sourcePicoseconds=0, serverTimestamp=05/17/16 11:57:59.9700000 GMT, serverPicoseconds=0)
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)
at com.prosysopc.ua.client.AddressSpace.getType(Unknown Source)
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)

As it turns out, Codesys is publishing nodes with non-existant node type refences (Reference: HasTypeDefinition points to “ns=3;i=62” which does not exist on the server).
It seems UAExpert has no immediate problem with this, as long as one does not try to follow the refernece. In contrast, The SDK seems to allways follow all references, which results in an error/abort state.

So my question would be how I can proceed on this issue: I am in contact with codesys to see if it is a bug on their side. I would also like to know if there is a possibility to ship arround this issue in the SDK as a workaround. (Like an “only check attributes and not references”-mode)

Thank You

May 18, 2016
17:57, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The SDK logs this as a warning, but it still returns the node object; TypeDefinition is just left unset for the node.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
10 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

TimK: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

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