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
Member
Members
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
Member
Members
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: 1919

Currently Online:
36 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

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

Administrators: admin: 1