4.23. UNIT’S TAIP REFERENCE
Counters’ commands
Value Meaning
C
Sets the counter type to
Counter
with a threshold value
defined as
DDDDD
. The value for this type of counter can
only be changed with the
increment
(
I
or
value
(
V
) com-
mand.
T
Set and start a
Timer
counter with a threshold value
defined as
DDDDD
, time increment 1 or
EEEEE
seconds.
D
Set and start a
Distance
counter with a threshold value
defined as
DDDDD
, distance increment 1 or
EEEEE
meters.
S
Counter update is suspended.
R
Resume a suspended counter. The time or distance in-
crements occurring while the counter were suspended are
not added upon resume.
I
Only for
Counters-type
counters: Increment the counter’s
value by 1 or
DDDDD
.
V
When using the
S
qualifier: Set the counter’s value to
DDDDD
.
Use the
Q
qualifier to get the actual counter’s value.
U
Undefine counter: The counter’s definitions is deleted and
the associated counter signal
CAA
is reset.
Examples
Set counter
03
on
Timer
mode. When the counter’s value reaches 5
Example 1
minutes the
C03
signal should get true. The counter shall not recycle
its value when reaching the 5 minutes or else we will end up with a
periodic
C03
signal:
To do this we define a timer with threshold value set to 300 sec-
onds with no delta value:
>
SGC03TC00300
<
Notice the
Recycle Flag
set to
C
so the counter does not resets when
reaching the threshold. Now 5 minutes after entering this command
we will have the
C03
signal transitioning from false to true.
Use a timer to generate a periodic counter signal having a period
Example 2
of 27 minutes:
To do this we define a timer that recycles whenever the count value
reaches the threshold. To show the use of the delta parameter we are
not going to count seconds but minutes:
>
SGC07TR0002700060
<
132