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: 1026
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: 1026
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:
18 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1