I have tags with pump status values (string): RUNNING or STOP
Is it possible to use this values in totalyzer expression below, or how to convert string tag value to number in expression?
You can write a boolean expression that compares it to the string value.
For example if I want an Expression that is True (1) when the tag TestString has a value of "Hello" and False (0) in all other situations the following equation works:
'TestString' = "Hello"
So your equation should work with something like:
'PUMP102B.RUN' = "RUNNING"
'PUMP102B.RUN' = "STOP"
depending on the particular logic you want.
Thanks, I didn't know that it can be solved in this way.
Retrieving data ...