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
MaxAge parameter
April 23, 2018
17:26, EEST
Avatar
Mike.Stair
Member
Members
Forum Posts: 12
Member Since:
January 12, 2018
sp_UserOfflineSmall Offline

Hi everyone!

I have some questions about the maxAge parameter used by the Uaclient.Read () method

I read in the javaDoc that: “If the Server does not have a value that is within the maximum age, it will be read to new value from the data source.”
– How do you manage the maxAge parameter of the Uaclient.Read () method on the server side? do I have to use IoManagerListener?
– The minTimestamp parameter in the IOManagerlistener.OnReadValue () method refers to the maxAge?

Another point: “If maxAge is set to 0, the server is attempted to read from the data source if maxAge is set to MAX_CACHE_AGE, the server will try to get a cached value. “
– Cache value refers to cacheVariable?

Regards,
Mike

April 26, 2018
17:02, EEST
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

The server side SDK does not do automated handling of maxAge parameter. It’s an application level issue to decide how the value is read. In other words, you can react to the maxAge parameter in the IoManagerListener but you don’t have to react if you don’t want to.

The minTimestamp parameter is basically the same thing as maxAge but just in a more convenient format. The server side SDK calculates this value based on the maxAge parameter supplied by the client.

The cacheVariable is a specific class in Prosys OPC UA Java SDK. The mentioned part of specification means cache as an abstract concept which the server application can implement. The purpose of the maxAge parameter is that the client application can give a hint to the server application if it’s important that the value is recent.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

ibrahim: 75

rocket science: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 709

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1465

Posts: 6252

Newest Members:

christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18l

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 982, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 319, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1