12:31, EET
January 16, 2020
I am getting following error when i try to write a value on a node..
com.prosysopc.ua.DataTypeConversionException: Cannot convert hi to class com.prosysopc.ua.stack.builtintypes.NodeId: For input string: “hi”
I am sharing the steps which i followed for writing to node.–
*** Connected to: opc.tcp://G4RCBWT2E.logon.ds.ge.com:52520/OPCUA/SampleConsoleServer
*** Current Node: Root: FolderType (ID: i=84)
——————————————————-
– Enter x to close client
——————————————————-
– Enter 0 to start discovery –
– Enter 1 to connect to server –
– Enter 2 to disconnect from server –
– Enter 3 to browse the server address space –
– Enter 4 to read values –
– Enter 5 to write values –
.
.
.
——————————————————-
5
Select the node attribute.
1 – NodeId
2 – NodeClass
3 – BrowseName
4 – DisplayName
5 – Description
6 – WriteMask
7 – UserWriteMask
8 – IsAbstract
9 – Symmetric
10 – InverseName
11 – ContainsNoLoops
12 – EventNotifier
13 – Value
14 – DataType
15 – ValueRank
16 – ArrayDimensions
17 – AccessLevel
18 – UserAccessLevel
19 – MinimumSamplingInterval
20 – Historizing
21 – Executable
1
attribute: NodeId
Writing to node i=84 – Root
Enter the value to write: hi
com.prosysopc.ua.DataTypeConversionException: Cannot convert hi to class com.prosysopc.ua.stack.builtintypes.NodeId: For input string: “hi”
15:46, EET
April 3, 2012
Hi,
Generally I would recommend using the grapchical tools to learn OPC UA to understand the basic concepts, i.e. https://www.prosysopc.com/products/opc-ua-browser/, https://www.prosysopc.com/products/opc-ua-simulation-server/, https://www.unified-automation.com/products/development-tools/uaexpert.html, https://www.unified-automation.com/downloads/opc-ua-servers.html .
With the SampleConsoleClient, you will need to first navigate to the node for which you want to write by using the option ‘3’ to Browse to the desired node, and only after then use the ‘5’ option for writing, i.e. the options are relative to the “Current Node” displayed above the menu. Additionally for writing to the Value Attribute, you will need to use the ’13’ option (i.e. the 13 – Value; after ‘5’) to actually to try to Write to it (since any Attribute could in theory be written in OPC UA).
Also the writing capability of that sample is rather limited, it will only work on basic types.
8:50, EET
January 16, 2020
10:41, EET
April 3, 2012
As far as I’m aware there isn’t exactly a video tutorial like you would like (could be maybe a good idea for the future). Usually people read the user manuals of the applications and that is mostly enough. Or well usually they just install them, run them and usually figure out things quickly from what is shown (or at least that is one of the design goals we have, but probably are not yet there). However our applications have a user manual pdf that can be opened from the Help menu when it is running.
Our partner’s Unified Automation’s UaExpert might have a bit better doc if you are just starting out: https://documentation.unified-automation.com/uaexpert/1.5.1/html/index.html
There are some videos on the internet about OPC UA, but I’m not sure they are on the level of detail you would like:
– What is OPC? UA in a Minute,
– Getting Started with OPC UA, Pyry Grönholm, Prosys OPC, (this is a more general overview)
– Getting Started with OPC UA – End Users Products, 2018 by Jouni Aro,
– The Tech-Intro videos by Uwe Steinkrauss, you should see them from here: https://www.youtube.com/user/TheOPCFoundation/featured
– You can try to Google more
P.S.
To clarify, in general the SDK support is limited to solving technical issues, i.e. bugs. Java knowledge is assumed. Assumed is also some OPC UA knowledge, even though we usually answer them anyway as some parts are hard. However the point of the SDK is that you can develop applications relatively easy, but it still does require some knowledge.
We do organize workshops from time-to-time (e.g. next is https://www.prosysopc.com/events/opc-ua-workshop-2020-spring-finland/) and offer services (https://www.prosysopc.com/services/).
P.S.2.
Personally I would recommend reading the raw specification at some point, https://opcfoundation.org/developer-tools/specifications-unified-architecture (does require making an account, but it is free). Stating from part 1 and then 3,4, possibly 5.
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