16:17, EEST
January 8, 2016
14:48, EEST
Moderators
April 17, 2013
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.
13:33, EEST
January 8, 2016
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.comModerators: 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