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
BadUserAccessDenied when attempting to connect to HDA server via UA Gateway
April 19, 2021
15:17, EEST
Avatar
lieven.poelman@powerdale.com
New Member
Members
Forum Posts: 2
Member Since:
April 19, 2021
sp_UserOfflineSmall Offline

I’ve been trying to make the UA Gateway work with an OSISoft PI HDA server, but to no avail.
I’ve successfully added the server to the UA Gateway and I can see/browse the tags and nodes without any problem.
However when I try to write a value, or just via UAExpert read the value I always get the BadUserAccessDenied error. I’m not connecting via anonymous access, I am connecting via the same username/password as the HDA server is running in. If I directly connect to the Osisoft OPC HDA Server via an opc HDA tool(Matrikon’s) I can see the historical values and I can write data without any problems. With the UAExpert tool via the UA Gateway I can only read historical values and browse the tags, nothing further.

I’m at a loss here, there is no documentation available on how to solve this problem and our client is asking for a rapid solution, please provide some assistance!

April 20, 2021
12:33, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 695
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

First a note that OPC Classic is not my personal expertise, but this is a combination of my interpretations and I did also ask Unified Automation (that develops the UaGateway) about this, a better answer might arrive later, but this is what I can do for this now. Thus some questions and notes:

1. It is not possible to have a Classic OPC Server that would support both DA and HA, they are different specifications and servers by the nature of OPC Classic (that is one of the reasons why OPC UA was made). Thus, I believe that they would be separate servers added to UaGateway, if this “OSISoft PI HDA” would actually also have a DA server in addition to a HA server. IF that is the case, maybe the other tool can somehow give the assumption of a single server, but in reality it would have both as a separate connections.

2. What do you mean by “Write” here? An OPC UA Write? Because that cannot never work to a HA server, there is no concept of a “Write” as OPC UA Write in HA (only in DA). There is a IOPCHDA_SyncUpdate in HA for updating the history data, though that per Unified is an optional interface that UaGateway doesn’t support. It only support the IOPCHDA_SyncRead that is used to read the history. Did you mean IOPCHDA_SyncUpdate?

3. Could it be possible to produce a trace of UaGateway showing that attempt to read (AppTrace=Data, StackTrace=Debug). If is, send it to support@prosysopc.com and a note that I’ll probably need to share that info with Unified Automation.

April 20, 2021
13:43, EEST
Avatar
lieven.poelman@powerdale.com
New Member
Members
Forum Posts: 2
Member Since:
April 19, 2021
sp_UserOfflineSmall Offline

1. It functions as both and can support DA acccess in OPC and HDA
2. What should I use then via the prosys opc ua client? I’m using historyUpdate to write the values, but this failes
3. Where could I locate this?

April 22, 2021
13:57, EEST
Avatar
Jimmy Ni
Moderator
Members

Moderators
Forum Posts: 24
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline

Hello, concerning your questions, below is the reply:

1. Your server might support OPC DA and HDA. However, according to OPC Specifications, a server can’t support both DA and HDA at the same time. They would be considered as 2 different servers (OPC DA server + OPC HDA server) from the OPC Client’s point of view.

2. UA Gateway doesn’t support writing history to an OPC HDA server. Reading the history should definitely work with UA Gateway. OPC HDA defines a couple of interfaces where some of them are mandatory and some are optional. UA Gateway supports IOPCHDA_SyncRead but not the optional interface IOPCHDA_SyncUpdate. Uisng UA Expert or Prosys OPC UA Client/Browser makes no difference.

3. If you are able to read historical values and browse the tags via UA Gateway, then it’s functioning properly. You can ignore #3.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 111

pramanj: 86

ibrahim: 74

kapsl: 57

gjevremovic: 49

Xavier: 42

TimK: 41

fred: 41

Fransua33: 39

rocket science: 36

Member Stats:

Guest Posters: 0

Members: 1590

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1192

Posts: 5057

Newest Members:

warnerfleming, Raymond23Freex, Charles1UsadY, Robertvem, albertinaduff53, wilbertrignall, Rogerbeedo, letamunn4183992, Lizazooda, Hectorner

Moderators: Jouni Aro: 914, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 695, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 24, Teppo Uimonen: 21, Markus Johansson: 36, Niklas Nurminen: 0, Matti Siponen: 161, Lusetti: 0

Administrators: admin: 1