18:12, EEST
June 2, 2019
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
12:47, EEST
April 3, 2012
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.
Most Users Ever Online: 1919
Currently Online:
17 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: 736
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, ThomassnismModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1