Namespace of OPC UA variables

Servus, I’m facing some issue on defining the namespace of OPC UA variables on AXC F 2152. I have been using an OPC UA client written in C# to subscribe some variables on program in AXC F 2152, and it worked for weeks. However, we ran into some problem with the firmware 2020.3, so I downgraded the firmware to 2019.9 and unfortunately, the namespace of all variables has switched from “ns=4” to “ns=5”. I am fully aware that the namespace is set automatically by the server built inside of the controller, and it’s understandable that some operations can cause the change of namespace. However, this can lead into some troubles in some situations. If it possible, I would like to know if there is a way to set the namespace of OPC UA address manually, or make it fixed for all variables? I really hope you can send me some reading materials about the mechanism of namespace setting of UPC UA server. Thanks in advance. best regards, Shijin

Hi Shijin, this is a normal behavior and the Server is allowed to change and/or add the namespaces. I’ve found a very interesting article from Unified Automation, which makes the procedure more clear. In fact must the client update/sync his namespaces before a new session is established with the namespace table of the server to prevent such a situation.

The server itself is not allowed to change anything during the session to keep the connection stable.

So I strongly recommend to contact the vendor of the OPC UA Client, maybe it is possible to activate at least the sync. Take care Frank

Hello Frank, I must say we find this a bit strange. We had the same error with an Atvise project. PLC was previsously showing namespace 4, which was configured for all atvise objects. Next thing the PLC is showing namespace 5 and all mirroring was not working anymore.

We had to update all objects to namespace 5 inside Atvise to get it working again. See for yourself the configuration of a mirroring in Atvise. Changing parameters doesn’t feel reliable/industrial. I understand that it’s not a bug but should be avoïded as it seems not all clients can cope with this.. Capture.PNG Kind regards, Adrien