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
Documentation on write
November 10, 2016
11:18, EET
Avatar
MartinAnd
Member
Members
Forum Posts: 6
Member Since:
November 10, 2016
sp_UserOfflineSmall Offline

Hi!

Just starting up with OPC UA Java and wondering if you can point me in the right direction on where to read more about writing values to a server.

More specifically I am interested in knowing how the internal handling works.

For example, from the client tutorial:
“As a response, you get a succeed status – false indicates that the server will complete the write operation asynchronously, instead of writing the value immediately (to the device).”

Are subsequent write-requests guaranteed to be written in order to the server? Can I get a response when the write is actually done?

//BR Martin

November 10, 2016
11:59, EET
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello Martin,

Thank you for a good question. Normally, the write service does not return until it writes the values or determines that the value cannot be written. So, the normal case is that the client side write method will return true or throw an exception in case of failure.

The OPC UA specification takes into account many possible application scenarios. In certain cases, the server will successfully write to an intermediate system, and will not know if the data source was updated properly. In these cases, the server should report a success code that indicates that the write was not verified. This is the status code Good_CompletesAsynchronously. In the client side SDK write method, the return value false means that server responded with Good_CompletesAsynchronously.

One question was that: “Can I get a response when the write is actually done?”. According to my understanding, if the server returns Good_CompletesAsynchronously, you don’t have any way to know more information about that specific write request status. One option would be to read the value to make sure the value has changed.

Other question was that “Are subsequent write-requests guaranteed to be written in order to the server?”
If the server responds with status code Good_CompletesAsynchronously, then it’s basically up to the intermediate system to make sure that the value is written correctly. So, it’s application specific how this external system works. If you have some server application that returns these status codes, then you should study the server documentation to see what the status code means in that specific system.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
21 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: 737

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1