diff --git a/db/channels.db b/db/channels.db index 2a63f54..5675e57 100644 --- a/db/channels.db +++ b/db/channels.db @@ -30,6 +30,13 @@ # field(SCAN, "1 second") # } +record(bo, "$(P):$(NAME):C$(CHANNEL)") +{ + field(DESC, "Clear the current channel count") + field(DTYP, "stream") + field(OUT, "@$(PROTO) clearChannel($(P):$(NAME):, $(CHANNEL)) $(ASYN_PORT)") +} + ################################################################################ # Read all monitors values diff --git a/db/counterbox.proto b/db/counterbox.proto index fda8ec0..c51c5e5 100644 --- a/db/counterbox.proto +++ b/db/counterbox.proto @@ -112,6 +112,18 @@ readRateMonitor{ @mismatch{in "%(\$1MsgTxt)s";} } +clearTimer{ + out "CT"; + in; + @mismatch{in "%(\$1MsgTxt)s";} +} + +clearChannel{ + out "CC \$2"; + in; + @mismatch{in "%(\$1MsgTxt)s";} +} + ################################################################################ # Read Values From Monitors diff --git a/db/counterbox_common.db b/db/counterbox_common.db index 21e9cea..729ca1d 100644 --- a/db/counterbox_common.db +++ b/db/counterbox_common.db @@ -181,6 +181,13 @@ record(longin,"$(P):$(NAME):THRESHOLD-MONITOR_RBV") field(SCAN, "1 second") } +record(bo, "$(P):$(NAME):CT") +{ + field(DESC, "Clear the timer") + field(DTYP, "stream") + field(OUT, "@$(PROTO) clearTimer($(P):$(NAME):) $(ASYN_PORT)") +} + ################################################################################ # Read all monitors values