System.opc.readValue/writeValue functionality question

I am trying to run a script using the OPC class within Ignition. When trying to read a value for the OPC item path I get 'Bad(Bad_NodeIdUnknown....). Then I added this OPC item path to a OPC tag within Ignition. Once I do that, I can run the script and get good data as shown in the picture attached. Is this expected behavior, and if so does a way exist to do this in the script without having to create the dummy tag?

path = 'ns=2;s=LAB_ROC.98.1:24'
server = 'ACM_04UA'

val = system.opc.readValue(server, path)
print(val)

No, not really expected. Seems like possibly a bug or lame implementation in the server you are connected to.

1 Like

Autosol is working on a different bug fix for us in regards to OPC-UA. I can touch base to see if this might be related.