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: 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
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 365
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: 78

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 89

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 841

Moderators: 11

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 860

Posts: 3632

Newest Members:

augusthanks, jackbryan, jansmithsmth, uiuida, johnjorge, Ramraj, dimad, aku, Rakshan, claradsouza

Moderators: Jouni Aro: 824, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 365, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 14

Administrators: admin: 0