System write to readonly node|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
System write to readonly node
Avatar
John Cockrell
Member
Members
Forum Posts: 10
Member Since:
12/16/2020
sp_UserOfflineSmall Offline
1
03/04/2025 - 01:57
sp_Permalink sp_Print sp_EditHistory

Hi

I have many nodes that are read-only for opc ua clients. I want the server to be able to update all of these nodes in a function it has for receiving updates from a machines firmware. There is not an opcua client for these updates. Is there a correct way for system to write to read-only nodes? Any of the below?

1) set it to writable, call baseVariableState.WriteAttribute, then set to readonly again

2) set with baseVariableState.Value = X and do UpdateChangeMasks and ClearChangeMasks

3) create a new context and add a role, specify that that role can write to nodes in our model xml?

4) something else

What is the best/correct way for the server to update its nodes without a client connection, and are there any problems to be aware of? Any C# examples?

Thanks for any help
John

Avatar
Randy Armstrong
Admin
Forum Posts: 1600
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
03/07/2025 - 00:27
sp_Permalink sp_Print

The Server has complete control over what is writable.

A Server would publish what attributes are potentially writeable with the WriteMask attribute.

The UserWriteMask would indicate that the attributes are not writeable for non-admin users.

You can then use Roles to assign admin rights to Sessions (i.e. ConfigureAdmin).

How you update your nodes without a client active is up to the server implementer.

There are no guidelines.

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