Hello,
I’m not aware of any function or library which can change this setting during runtime.
The only idea I have is to change it using MpIO or AsIomMan and change (or rewrite) the hardware configuration “during runtime”. I write “during runtime” because for changing the configuration a reboot will be needed.
The OpcUa_any device is quite a basic device. If you need certain flexibility then you would need to implement the client via the AsOpcUac libray in a task. For client development you could also check out this library => EasyUaClnt a simplicity wrapper library based on AsOpcUac
BR Fabian