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: 853
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: 853
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: 267

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 103

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 38

Rainer Versteeg: 32

Thomas Reuther: 31

Member Stats:

Guest Posters: 0

Members: 1118

Moderators: 14

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1034

Posts: 4352

Newest Members:

aldayr, Python techie, emanuel45q, Patrick, sammycontrols, hellema, linoy, subranna, ray, richN9177

Moderators: Jouni Aro: 853, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 559, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 21, Markus Johansson: 24, Matti Siponen: 64, Lusetti: 0

Administrators: admin: 1