16:17, EEST
January 8, 2016
14:48, EEST
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: 1919
Currently Online:
61 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: 734
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1523
Posts: 6449
Newest Members:
christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16, edgardo3518Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1