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: 1026
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: 1919

Currently Online:
8 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: 730

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1