Status Code of unconnected OPC UA Server Variable|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Status Code of unconnected OPC UA Server Variable
Avatar
Juergen Tossold
New Member
Members
Forum Posts: 2
Member Since:
07/10/2019
sp_UserOfflineSmall Offline
1
11/27/2019 - 02:45
sp_Permalink sp_Print

Our OPC UA Server may contain Variables that are available for Data Access from the client, but the actual data source of the variable does not exist or the connection to the data source (for example another another communication) is not defined.

To provide the OPC UA client this information we want to set the Status Code of the Variable.

The question now is which Status Code is correct or intended for this situation?

From my interpretation of the OPC UA Specification I would say BadNotConnected. Is this correct?

Avatar
Randy Armstrong
Admin
Forum Posts: 1445
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
11/27/2019 - 08:31
sp_Permalink sp_Print

Detailed description of error codes can be found here:

https://reference.opcfoundatio.....rt8/6.3.2/

Avatar
Juergen Tossold
New Member
Members
Forum Posts: 2
Member Since:
07/10/2019
sp_UserOfflineSmall Offline
3
11/28/2019 - 01:11
sp_Permalink sp_Print

Thank you I found the same reference for the Status Codes. Based on the desciption on the Status Code BadNotConnected I came to the conclusion the for the discriped situation this should be the correct Status Code but our communicaiton partner (providing the OPC UA Client) sees that differently.

Because what the desciption does not say is if the decription is in view of the server or the client. If the view is of the server I think that BadNotConnected is correct for a server variable without configured data source. But if the view is from the client BadNotConnected would meen that the value on the client is not good because no connection to the server is established.

Avatar
Randy Armstrong
Admin
Forum Posts: 1445
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
11/28/2019 - 01:41
sp_Permalink sp_Print

Yes, the scenario you describe does apply. The error code describes the problem from the perspective of the server.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 12
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1347
Posts: 4567