Instruction manual

Table Of Contents
PC215E Page 76
6.6.4.8 Read Timer's current Count Value - TCgetCount
Latches and reads a timer/counter's 16-bit count value, using the read-back command.
i = TCgetCount (h, chip, chan, count)
where
h Integer. Board handle as issued by the
registerBoard function.
chip Integer. Address offset of the timer/counter
chip. One of the following pre-defined constants
may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan Integer. Timer/counter channel number within
the chip (0, 1 or 2).
count Pointer to Long. Pointer to a variable, declared
as a long integer, into which the count value
result will be placed.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
TCsetClock
TCsetGate
TCsetMode
TCsetCount
See Also TCgetUpCount