Software - Jäger ADwin-Gold-USB Manual

Hide thumbs Also See for ADwin-Gold-USB:
Table of Contents

Advertisement

ADwin
On the option Gold-D you can – via the connector CO Power in – supply a volt-
age, which is then available at the connectors CO1...CO4, e. g. for external
Inkrementalgeber.
Please note: All minus inputs V1
common line; the minus inputs V2
Fig. 18 – Pin assignment counter voltage supply (Gold-D)

8.2 Software

The functions necessary for accessing the counters can be found in the include
file:
Therefore programming has to start with the include file, so that you can use the
instructions in the following table. The instructions are described in the ADba-
sic manual.
Instruction
Function
CNT_CLEAR() *
Clear counter
Disable or enable counter
CNT_ENABLE()
(please note the already running counters)
Read out status register (# = counter no. 1...4)
CNT_GETSTATUS(#)
Set CLR/LATCH input to CLR or LATCH mode
CNT_INPUTMODE()
CNT_LATCH() *
Latch counter values into Latch A
Use external clock input or internal reference clock
CNT_MODE()
Set clock inputs to differential or single-ended (as pairs)
CNT_SE_DIFF()
In combination with CNT_MODE():
CNT_SET()
Set counter mode or length of the internal reference clock
Read out counter values and transfer them to Latch A (# = counter no.
CNT_READ(#)
1...4)
Read out Latch A (triggered by positive edge), (# = counter no. 1...4)
CNT_READLATCH(#)
CNT_READFLATCH(#) Read out Latch B (triggered by negative edge), (# = counter no. 1...4)
* These functions are reset after they have been executed. All other functions are reset by opposing functions.
Fig. 19 – Instructions of the Gold-CO1 counter add-on
With the instructions in the table matrix you are always effecting all counters
(except CNT_READ...). Therefore pay attention to the fact which bits you are set-
ting or deleting. You will be able to effect every counter individually or all
together.
Please configure the counters according to the following order:
1. Disable specified counter (CNT_ENABLE)
2. Set operating mode (CNT_MODE, CNT_SET, CNT_INPUTMODE,
CNT_SE_DIFF)
3. Clear counter (CNT_CLEAR)
4. Enable counter (CNT_ENABLE)
ADwin-Gold USB / ENET, manual version 3.8, October 2005
(-) are galvanically connected to GND via a
in
(-) have such a common connection, too.
in
8
7
6
5
4
3
2
1
15
14
13
12
11
10
9
CO POWER IN
(female)
<ADWGCNT.INC>
CO1 Counter Add-On
Sequence of instructions
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adwin-gold-enet

Table of Contents