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
Browse variables of a server
June 19, 2014
13:03, EEST
Avatar
Roberto
New Member
Members
Forum Posts: 2
Member Since:
June 19, 2014
sp_UserOfflineSmall Offline

Hello,
I need to write a program that retrieves the list of the variables from an OPC server.
Is it possible to browse the variables in the server? Can you give me an hint?

Thanks,
Roberto

June 19, 2014
13:17, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

With normal browse, you can only search the variables hierarchically.

to get all variables, you could only use the Query method, but I am afraid there are not many servers that would support it.

So in practice, you need to browse the address space hierarchically and try to locate the variables. Just be aware that there may be loops in theory, i.e. you may get back to a node that you have already browsed.

June 19, 2014
16:59, EEST
Avatar
Roberto
New Member
Members
Forum Posts: 2
Member Since:
June 19, 2014
sp_UserOfflineSmall Offline

Thank you for your quick answer!

July 3, 2014
10:36, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I just realised that this question was about OPC DA and not OPC UA. In OPC DA, you can indeed read the list of tags from the server. You just need to define in the client that you want to browse the address space in list mode. Simply like this:

PsOPCServer1.Connect;
PsOPCServer1.AddressSpace.Mode := amFlat;
ListBox1.Items.Assign(PsOPCServer1.AddressSpace);

The answer I gave above is valid for OPC UA only, but that’s not available with Prosys Sentrol. Sorry about the confusion.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
9 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: 680

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6260

Newest Members:

sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule

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