Question:
How can I reset a Counter Tag?
Solution:
To do so, you must first make sure the tag’s ResetCounterWhenEnable is set as True. Then, add a script to disable and then re-enable the tag.
The example below was made with a button’s Click method:
Sub btResetCounter_Click()
Application.GetObject(“Data.CounterTag1”).Enabled = False
Application.GetObject(“Data.CounterTag1”).Enabled = True
End Sub
Application.GetObject(“Data.CounterTag1”).Enabled = False
Application.GetObject(“Data.CounterTag1”).Enabled = True
End Sub