Archived data is wrong even when the analysis evaluated output and preview results are correct.

I have a tag acting as a flag whose values can be '1' or '2' scheduled every 1 minute. But sometimes this tag doesn't archive the correct value.

 

These are the tag settings:


Tag settings.png
 

For example, unless certain conditions are met, the value should always be 1, but sometimes it gets stuck at '2' even when evaluating and in "Preview Results" the output is '1'.

 


Analysis.png

Preview results.png
 

I tried recalculating a few hours and then it gets the correct values for a moment, but at the next trigger it changes again to '2' even when the conditions of the analysis are clearly NOT met. It doesn't makes sense, it shouldn't be a '2'. I thought maybe the snapshot value is not refreshing but just after recalculating the snapshot value changes to '1', and then it's '2' again after a minute. Where this '2' is coming from? It could be a wrong exception/compression settings?

 

Snapshot value just after recalculating:


Snapshot.png
 

A minute after recalculating:


Snapshot_after.png
 

Archived data for that tag after recalculating.


Archived data.png
 

Maybe you can help me understand this behavior.

 

Thank you.

 

 

Parents
  • Try setting the exception deviation to 0.

    Also, do the 1 and 2 mean anything? If so, consider creating a tag with the point type "Digital" instead. Then when you assign the tag a digital state set, you can refer to the values by their meaning instead of by the underlying numbers. If there is no 0 in your data, use some arbitrary value as the state name for 0 when you create the digital state set.

Reply
  • Try setting the exception deviation to 0.

    Also, do the 1 and 2 mean anything? If so, consider creating a tag with the point type "Digital" instead. Then when you assign the tag a digital state set, you can refer to the values by their meaning instead of by the underlying numbers. If there is no 0 in your data, use some arbitrary value as the state name for 0 when you create the digital state set.

Children
No Data