Counters
Cnt_Get_Status
ADwin
114
ADwin-Gold II
, Manual February 2013
Cnt_Get_Status
Cnt_Get_Status
returns the counter status register of one counter.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
ret_val
=
Cnt_Get_Status
(
counter_no
)
Parameters
Notes
A line error (Lx) can only be detected at differential inputs! For TTL-in-
puts these bits are always 0.
The status register is automatically reset by reading.
See also
,
,
,
,
,
Valid for
Gold II-CNT
Example
- / -
T11 TiCo
c o u n t e r _
no
Counter number: 1…4.
LONG
ret_val
Contents of status register: Hints for potential
error sources.
Meaning of bits 0…4 see table.
LONG
Bit No.
31…5
4
3
2
1
0
Signal
–
C
L
N
B
A
- :don't care (signal status is not defined, mask out with
01Fh
)
A: Signal A (static)
B: Signal B (static)
N: CLR-/LATCH input (static)
L: Line error (cable not connected or the line is broken)
C: Correlation error (signals A and B are identical, i.e. they are not
phase-shifted by approx. 90°)