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
Starting with OPC-UA server (send and receive data/events)
May 13, 2018
22:51, EEST
Avatar
Flavio Gameiro
New Member
Members
Forum Posts: 2
Member Since:
May 12, 2018
sp_UserOfflineSmall Offline

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

May 14, 2018
17:07, EEST
Avatar
Heikki Tahvanainen
Moderator
Members

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

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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick

Moderators: Jouni Aro: 1009, 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