Add CommStatReset.SRC
This commit is contained in:
parent
57790d44a9
commit
04fc18203a
23
CommStatReset.SRC
Normal file
23
CommStatReset.SRC
Normal file
@ -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 }
|
Loading…
Reference in New Issue
Block a user