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
UnitId
January 21, 2016
18:49, EET
Avatar
aSaunders925
Member
Members
Forum Posts: 8
Member Since:
January 8, 2016
sp_UserOfflineSmall Offline

I’m evaluating using the OpcUaJavaSDK and I have a question about UnitId usage. I need to map the engineering units (EUInformation) returned from a Opc UA server to the way engineering units are defined in our system. I was planning on using the UnitId value as a key to do the mapping, but it doesn’t appear that I can count on this, as the Quickstart/DataAccessServe r has UnitId = 0 for all engineering unit (EUInformation) served up..
Suggestions?

January 22, 2016
9:12, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello,

According to specification part 8, the unitId should be -1 if the unitId is not available. Is there some sensible value in the namespaceUri field? I suppose that many sampleservers don’t yet offer realistic engineeringUnits or unitId information.

Br,
Heikki Tahvanainen

January 22, 2016
11:56, EET
Avatar
aSaunders925
Member
Members
Forum Posts: 8
Member Since:
January 8, 2016
sp_UserOfflineSmall Offline

(EUInformation) EUInformation: EUInformation
NamespaceUri=http://opcfoundation.org/Quickstarts/DataAccess
UnitId=0
DisplayName=liters/sec

I’m using the sample server application from the opcfoundation.org web site.

January 22, 2016
12:57, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

If UnitId=0 consistently means liters/sec, then it’s easy to map this particular engineering unit based on that information. However, if I understood correctly then the actual problem is that the Quickstart/DataAccessServer uses UnitId=0 regardless of EUInformation. In that case of course you cannot use the UnitId information. Pages 15 and 16 from OPC UA Specification part 8 version 1.03 cover how UnitIds should be used.

If you want to map the engineering units of the Quickstart/DataAccessServer to engineering units defined in your system then you might use the information in DisplayName and Description fields of the EUInformation structure. The downside of this approach is that this mapping does not work with other OPC UA servers which might have different DisplayNames and Descriptions.

Br,
Heikki

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
9 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: 683

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