22:51, EEST
May 12, 2018
Hi.
I’m a student doing a project, and it consists of simulating a opc-ua server to add additional info about tasks that can’t be registered with the opc-ua machines (such as CNCs), such as manual tasks.
I’ve grabbed the client and server console samples, but it’s been dificult to understand how can I send an “event” or to simply add a new node and write a value on it.
The big objective is:
The client is supposed to write on a database with the data that the server just posted.
Example: I’m a worker, and ordered the server to add a task like “Cleaning the mould”, with a ParameterName “Cleaning” and a ParameterValue “STARTED”. The client is supposed to read that data from the server, interpret that parameterValue and write on a relational database.
Is this project doable, and in 1 month? Can someone give me some ideas about where to start?
Thank you for your attention,
Flávio Gameiro
17:07, EEST
April 17, 2013
Hi,
Thank you for the exaplanation. The proposed project doesn’t sound extensively complicated so you should accomplish fairly much in 1 month of working.
As a start, please see the MyNodeManager class, a sample customized node manager. Here, the createAddressSpace() method creates a node named MyLevel. Then, in the simulate() method, new values are provided for the MyLevel node and depending on the new value, alarms are activated or inactivated. The activateAlarm in turn triggers events.
There’s also method MyNodeManager.sendEvent() which is called from the SampleConsoleServer directly.
This should provide you some background for your own implementation.
P.s. The MyNodeManager example doesn’t utilize automatic code generation features of the Prosys OPC UA Java SDK, so it’s kind of a more manual way of doing things. Later on, when you have a smaller system working and you want to expand the information modeling to more complex models, you should look into modeling tools such as UaModeler and the Code Generator supplied together with the Prosys OPC UA Java SDK.
Most Users Ever Online: 1919
Currently Online:
11 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: 737
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerleyModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1