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
MethodNode Use Cases
March 28, 2016
16:17, EEST
Avatar
aSaunders925
Member
Members
Forum Posts: 8
Member Since:
January 8, 2016
sp_UserOfflineSmall Offline

I’m looking for some “real-world” use cases for an OpcUaServer use of a MethodNode. Are they typically invoked by a client user?

March 29, 2016
14:48, EEST
Avatar
Heikki Tahvanainen
Moderator
Members

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

Hello,

You can think of the method concept as basically the same as method in object-oriented programming. Methods must belong to an Object (or ObjectType) and methods can only be invoked on Objects (or ObjectTypes) referencing the Method with a HasComponent Reference.

A method in OPC UA is called by a client and returns a result. Each method specifies the input arguments a client shall use and the output arguments a client shall expect as a result. The client uses the call service to invoke the method and the response of this service call contains the result of the method. Possible examples of methods could be a method to open a valve or to start a motor, as well as more complex tasks like calculating some simulation results based on provided input values. In general, using a method makes sense when a set of arguments is used as input or output or both or a special action should be triggered in a defined way in the server.

In Prosys OPC UA Java SDK, SampleConsoleServer contains an example method MyMethod. The MyMethod can be called in the context of MyDevice object. The MyDevice is available by browsing Objects/MyObjects/MyDevice. For discussion on how to handle methods in Prosys OPC UA Java SDK, see chapter 7 “Method Manager” of the Server Tutorial.

March 30, 2016
13:33, EEST
Avatar
aSaunders925
Member
Members
Forum Posts: 8
Member Since:
January 8, 2016
sp_UserOfflineSmall Offline

Thanks for the reply, but I was looking for specific examples to help determine if a user/human is typically directly involved in the invocation of the method and the consumption of the results or if there are use cases for client “control-logic” to do the same.

March 30, 2016
14:49, EEST
Avatar
Heikki Tahvanainen
Moderator
Members

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

Oh ok,

I think I misunderstood the first question. According to our understanding, typically some kind of “control-logic” would call the OPC UA methods.

However, there’s no specific examples published that we know of, so this answer may not have much benefit for you.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
19 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

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

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