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
Moderator
Members

Moderators
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: 518

Currently Online:
9 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: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: 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