From 04fc18203a47eeddfe4e6aa7a94b7f6700a5a91d Mon Sep 17 00:00:00 2001 From: Michael Van Ryn Date: Thu, 22 Feb 2024 10:33:23 -0700 Subject: [PATCH] Add CommStatReset.SRC --- CommStatReset.SRC | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CommStatReset.SRC diff --git a/CommStatReset.SRC b/CommStatReset.SRC new file mode 100644 index 0000000..bc456c0 --- /dev/null +++ b/CommStatReset.SRC @@ -0,0 +1,23 @@ +{========================= ResetCommStats =========================} +{ This module is used to force the Comm Stats of the Parent Tag } +{ This should be nexted under a driver tag and triggered } +{==================================================================} +( + PointObj { object value of trigger to monitor }; + ScriptObj { Script Object }; +) + +[ + Value { Value of Trigger Tag }; +] + +Reset [ + { Do this anytime the value is true } + If PointObj\Value == 1; + [ + PointObj\Value = 0; + PointObj\Counts = 0; + PointObj\ErrorCounts = 0; + ScriptObj\Value = concat(Date(Today(),4)," - ", Time(seconds(), "2")); + ] +]{ End of Module } \ No newline at end of file