Is there an easy way to get the OPC-UA tags configuration. I want to dynamically create my tags by browsing OPC-UA and I want to be able to get the dataypes for each type.
Also what is the best and fasted way to browse ALL tags on an OPC-US server ?
I don’t remember the intricacies of why, some backwards compatibility gaff or serialization thing, but this is only available when called from gateway scope, which the user manual does manage to mention.
A number of those datatypes are classes that only exist in gateway scope because the OPC UA stack is not loaded into clients, so the results can’t be serialized and sent to a client either.
Excuse my ignorence, but how I can test a code that can only be accessible on gateway. I can’t test it in the scripting console and I thinks that no gateway console exist.
Write it in a tag change script and print results to console or log them with the system.util.getLogger function.
Or just jump to what you’ll probably do in production - write a message handler that you can invoke from client side by using system.util.sendMessage or .sendRequest.
Either way you don’t get all the interactivity of the console but there’s just no way around that when you are writing code that can only run in the gateway.