18:49, EET
January 8, 2016
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?
9:12, EET
April 17, 2013
11:56, EET
January 8, 2016
12:57, EET
April 17, 2013
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
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, dalenegettingerModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1