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
Member
Members
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
Member
Members
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: 1919

Currently Online: mithun
22 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: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

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

Administrators: admin: 1