I'm trying to make a simple motor animation binding a string opc-ua tag to the motor "state" property. So the texts will be "running", "stopped" and "faulted". When I test it associating just a memory string tag, the object works pretty well, but using my OPC-UA tag, with the same results comming: "running", "stopped" and "faulted", the motor object doesn´t change the state.
Or don't use strings in your logic. They are computationally expensive in contrast to numbers or booleans. Only use strings in UIs, and make them translation friendly. (You never know when you'll end up with simultaneous users with different languages.)
I am trying to use integers. I have the following expression, but when I change the value of my tag, I get inconsistent results. 0 shows “stopped, 1 shows faulted, and 2 shows default.
I double checked, and the tag is set to integer.