I have a UDT instance called T103 (basically I have them from T101 to T120) and under UDT members are as follows: T103 -ID -Name -Status
I tried this approch, reading T103.value in tagPath and later used tagPath=system.util.jsonDecode(str(tagPath)). However when I print this, I get blank dictionary. hence tagPath.keys() doesnât work either. Am I doing something wrong here?
Also tried eval() instead of jsonDecode its the same {} output. Thanks in advance
This thread is specifically about reading structured values over OPC from the built-in Siemens server. I canât tell from the information youâve provided if thatâs what youâre trying to do or if you should be starting a new topic with more details.
I came across this thread while considering the same question but on v8.1.35. though I'd add some v8.1 relevant detail.
One oddity I observed is that you can use {ABC} style parameter references in a "value changed" script on a member tag in a UDT instance but that appears to resolve the the value of the parameter the last time the UDT instance was restarted, not its current value.
I rediscovered this bug/behavior today in v8.1.35. Cross-posting here as it has some relevance. It seems Ignition attempts parameter resolution even on commented lines and will fail silently if there is something in curly brackets that is not a valid parameter.