ADwin-Pro II
Hardware, manual Dec. 2018
139
Pro II: Digital-I/O Modules
Pro II-CNT-x Rev. E
ADwin
5.7.12 Pro II-CNT-x Rev. E
The module Pro II-CNT-x Rev. E provides 4 configurable multi-purpose
counter blocks. Each counter block contains two 32-bit counters: First an
up/down counter or four edge evaluation for connection of encoders. Second,
a PWM counter to evaluate high and low times, duty cycle, or frequency. Both
counters of a block can be operated in parallel.
The following module variants are available:
–
Pro II-CNT-T
: Counter inputs with TTL logic. The module is equipped
with a
TiCo
processor.
–
Pro II-CNT-D
: Differential counter inputs; in addition, the counter con-
tains 2 SSI decoders and a
TiCo
processor.
–
Pro II-CNT-I
: Counter inputs are optically isolated. The module is equip-
ped with a
TiCo
processor.
The counter inputs are optically isolated from the system circuit. The
event input, too, is optically isolated from the system circuit.
The input voltage range of the counter and event inputs can be set by
jumpers to 0…5V, 0…12V or 0…24V. The default setting is 0…24V.
The
TiCo
processor is freely programmable and has access to all counter func-
tions. Find more information about use and programming of the
TiCo
proces-
sor in the
TiCoBasic
manual.
If you store a
TiCoBasic
program in the
TiCo
bootloader, the program is auto-
matically loaded into the
TiCo
processor and started on power-up. Thus, the
module can run on its own and independently from the CPU module of the
ADwin-Pro II
system.
Up/down counter
The up/down counter of a block can be operated in 2 modes:
– Clock / direction (CLK and DIR signals)
A negative edge at the CLK input is the counting impulse for the 16-bit
counter. The DIR signal sets the counting direction, TTL high means a
count-up, TTL low means a count-down.
You can invert the signals at the inputs CLK and DIR via software (in-
struction
P2_Cnt_Mode
) and thus change both the triggering edge and
the
counting direction
.
You can latch the counter values program-controlled or you can influ-
ence the counter by an external CLR/LATCH signal.
Depending on the programming, a rising edge at input CLR/LATCH can
either clear the counter values (CLR) or latch the counter values
(LATCH). This function will only be effective when it is released by the
instruction
P2_Cnt_Mode
.
Using the latch function, you can determine the frequency of the mea-
surement by getting the difference of two read latch values, because this
difference defines the number of pulses between the two reading pro-
cesses.
– Four edge evaluation (A and B signals)
The four edge evaluation changes the signals (which should be 90° pha-
se-shifted) of a connected incremental encoder at the inputs A and B to
CLK and DIR signals. For this you have to program the inputs corre-
spondingly (see "
ADwin-Pro
System Description, Programming in
AD-
basic
").
Since every edge of the A and B signals generates a count impulse, the
resolution is increased by factor 4. If the encoder has a reference signal,