Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 1029
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: 1029
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: 1919
Currently Online: Manfred Hausmann
Guest(s) 40
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 733
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1