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: 518
Currently Online:
15 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
TimK: 41
Member Stats:
Guest Posters: 0
Members: 681
Moderators: 16
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1467
Posts: 6261
Newest Members:
graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.comModerators: 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