Hello,
I’m trying to evaluate whether a location in the field is connected or not with Connection Status diagnostic tag and then prompt an alarm if it’s disconnected.
The alarm is set to start for true.
I tried the following to configure the alarm but it’s not working:
conn = system.tag.read(“PumpingStation/Connection State.Value”)
if (conn = “Disconnected”, true, false)
If I test print this line in the script console, it returns ok the state connected or disconnected: system.tag.read(“PumpingStation/Connection State.Value”)
Any advice please?
Thanks.