Please consider registering

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
Forum Posts: 10
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
Bjarne Boström
Forum Posts: 491
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: 267

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 93

pramanj: 86

ibrahim: 69

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

Thomas Reuther: 26

Member Stats:

Guest Posters: 0

Members: 990

Moderators: 13

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 945

Posts: 3987

Newest Members:

jerrodharness1, chandrahollis, kandimilano0008, deonbracewell, swati kulha, muoipoupinel64, lannybroadway, 12315544121666, Joel Mariadasan, alfonsobarringto

Moderators: Jouni Aro: 837, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 491, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 18, Markus Johansson: 11, Matti Siponen: 8

Administrators: admin: 0