Reading OPC tag from another gateway without subscribing tag

Hi,

I am trying to use the system.opc.readValue function to read a tag value from an OPC server that is in a different gateway than the designer project gateway.

The tag browser can read the value with no issues, but when I use the opc.readvalue function with the same itempath/opcserver format I get a null value with this status:
[Bad_NodeIdUnknown] The node id refers to a node that does not exist in the server address space

Is there a way to read the OPC tag value from a different gateway without subscribing the tag into the tag browser?

Thanks in advance!

I’m guessing there’s a syntax problem involved. I do that all the time and it works. You don’t have to subscribe, opc.readValue is all you need for a one time read operation.