I want to be able to write to a boolean tag (an OPC tag) when the result of a boolean expression tag is true. How should I do that? I have a hard time understanding this. I went through different threads
This is my expression tag:
if ({[~]model.value}=1177, 1,:
0
)
I tried to use the solution suggested here:
if you only want to write to the tag on a true value:
if newValue.getValue():
system.tag.writeBlocking(['[default]led.value'],[newValue.getValue()])
It did not work.
Note that:
I may have some instances that I have multiple true values in a row, so it is not going to be "true, false, true, false" instead the result of the expression tag is more of a "true, true, true, false" . not sure if I should use client tag change.