OpcUa_any Server Url Change During Runtime

Hi,
I am using OpcUa_any Device on our B&R PLC as a Client, we have established connection to a Siemens Sinumerik server which works perfectly. I know we can change our PLCs IP address during runtime easily, but is there any way how to change ServerEndpointUrl on OpcUa_any device (configuration) during runtime? Ideally on visualization, I know this is possible using OpcUaC library, but since our application is simple, I’d rather avoid coding it.
I’m happy to provide more details if needed.
Thank you!

Hi, as far as I know this is not possible. You can use hostname in ServerEndpointURL, otherwise solution would be ASOPCUAc library, as you already know. You can use this wrapper to make your live easier EasyUaClnt a simplicity wrapper library based on AsOpcUac

2 Likes

Using hostname might actually help solve having to configure this on site, but if there will be a requirement of having this configuration option in the future, I will definitely make use of the EasyUaClnt library, thank you!

1 Like