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
Significance of Attribute ID
June 9, 2019
18:12, EEST
Avatar
Rakshan
Member
Members
Forum Posts: 30
Member Since:
June 2, 2019
sp_UserOfflineSmall Offline

Hi there,

Just starting off with OOP and OPCUA.
I have a server application [ Root->Object->Crane->BridgeDriveController–>Speed( NodeID field says ns=2, i = 1020)]

If i need to access the value of Speed on my application, what should i put in place of AttributeID in the below syntax?
DataValue value = client.readAttribute(nodeId, AttributeId);

–eg:DataValue value = client.readAttribute(1020, AttributeId);??

Please guide me

June 10, 2019
12:47, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Generally speaking, the forum is for technical support related to the SDK, not exactly for learning OPC UA (or programming) basics, that you will need to do on your own, or attend a workshop etc.

The SDK tutorials, samples + javadocs do cover some parts, for example, this is explained in the client tutorial (PDF) section 9 “Read Values”. There it is explained as:

The Attribute to read is defined by
the attributeId. Valid IDs are defined in the Attributes class. Note that different Node types (or
NodeClasses according to the OPC UA terminology) support different Attributes. For example, the
Attributes.Value attribute is only supported by the Variableand VariableTypeNodes.

Our partners documentation (for c++ SDK, but it explains the basic concepts) could be useful: http://documentation.unified-a…..bjectModel

Also it might be easier to start by using the https://www.prosysopc.com/products/opc-ua-simulation-server/ + https://www.prosysopc.com/products/opc-ua-client/ + https://www.unified-automation.com/products/development-tools/uaexpert.html as they are generic servers and clients with UI.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
14 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: 729

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431

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

Administrators: admin: 1