Jäger ADwin-Gold-USB User manual

ADwin-Gold-
USB / -ENET
Manual
ADwin-Gold USB / ENET, manual version 3.8, October 2005

ADwin-Gold USB / ENET, manual version 3.8, October 2005
Jäger Computergesteuerte
Messtechnik GmbH
Rheinstraße 2-4
D-64653 Lorsch
Germany
For any questions, please don’t hesitate to contact us:
Hotline: +49 6251 96320
Fax: +49 6251 5 68 19
E-Mail: [email protected]
Internet www.ADwin.de

ADwin-Gold USB / ENET, manual version 3.8, October 2005 III
ADwin
Table of contents
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IV
1 Information about this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 System description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
2.1 ADwin system concept. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 The ADwin-Gold System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 Operating Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Initialization of the Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
5.1 Analog Inputs and Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5.2 Digital Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.3 Time-Critical Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6 Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.2 Calibrating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7 DA Add-On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
8 CO1 Counter Add-On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
8.3 Operating Mode Impulse/Event Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8.4 Operating Mode Impulse Width and Period Width Measurement . . . . . . . . . . . . . . 29
9 CAN add-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
9.1 SSI Decoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9.2 CAN Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
9.3 RSxxx Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
10 ADwin-Gold-Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
11 Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
12 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Annex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
A.1 Technical Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
A.2 Hardware Addresses - General Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-5
A.3 Hardware revisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7
A.4 Table of figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-8
A.5 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-9

Typographical Conventions ADwin
IV ADwin-Gold USB / ENET, manual version 3.8, October 2005
Typographical Conventions
"Warning" stands for information, which indicate damages of hardware or soft-
ware, test setup or injury to persons caused by incorrect handling.
You find a "note" next to
– information, which have absolutely to be considered in order to guaran-
tee an operation without any errors
– advice for efficient operation
"Information" refers to further information in this documentation or to other
sources such as manuals, data sheets, literature, etc.
<C:\ADwin\ …> File names and paths are placed in angle brackets and characterized in the
font Courier New.
Program text Program instructions and user inputs are characterized by the font Courier
New.
Var_1 ADbasic source code elements such as INSTRUCTIONS, variables, com-
ments and other text are characterized by the font Courier New and are
printed in color (see also the editor of the ADbasic development environment).
Bits in data (here: 16 bit) are referred to as follows:
BitNo. 151413…0100
Bit value 215 214 213 …21=2 20=1
Synonym MSB - - - - LSB

ADwin-Gold USB / ENET, manual version 3.8, October 2005 1
Information about this Manual
ADwin
1 Information about this Manual
This manual contains complex information about the operation of the ADwin-
Gold system. Additional information are available in
– the manual "ADwin Driver Installation", which describes all interface
installations for the ADwin systems.
With this manual you begin your installation!
– the description of the configuration program ADconfig, with which you ini-
tialize the communication from the corresponding interface to your
ADwin-Gold system.
– the manual ADbasic, which contains all instructions for the compiler
ADbasic and which explains the functional layout of the ADwin system.
– the manual for the description of the installation and the instructions of all
current development environments.
Please note:
To have your ADwin systems work properly, keep strictly to the information
given in this documentation and in other mentioned manuals.
Qualified personnelProgramming, start-up and operation, as well as the modification of program
parameters must be performed only by appropriately qualified personnel.
Qualified personnel are persons who, due to their education, experience
and training as well as their knowledge of applicable technical stan-
dards, guidelines, accident prevention regulations and operating condi-
tions, have been authorized by a quality assurance representative at the
site to perform the necessary acivities, while recognizing and avoiding
any possible dangers.
(Definition of qualified personnel as per VDE 105 and ICE 364).
Availability of the
documents
This product documentation and all documents referred to, have always to be
available and to be observed. For damages caused by disregarding the infor-
mation in this documentation or in all other additional documentations, no lia-
bility is assumed by the company Jäger Computergesteuerte Messtechnik
GmbH, Lorsch, Germany.
Legal instructionsThis documentation, including all pictures is protected by copyright. Reproduc-
tion, translation as well as electronical and photographical archiving and mod-
ification require a written permission by the company Jäger
Computergesteuerte Messtechnik GmbH, Lorsch, Germany.
OEM products are mentioned without referring to possible patent rights, whose
existence is not to be excluded.
Subject to change.
Hotline address: see inner side of cover page.

System description ADwin
2ADwin-Gold USB / ENET, manual version 3.8, October 2005
2 System description
2.1 ADwin system concept
ADwin systems guarantee fast and accurate operation of measurement data
acquisition and automation tasks under real-time conditions. This offers an
ideal basis for applications such as:
– very fast digital closed-loop control systems
– very fast open-loop control systems
– data acquisition with very fast online analysis of the measurement data
– monitoring of complex trigger conditions and many more
ADwin systems are optimized for processes which need very short process
cycle times of one millisecond upto some microseconds.
System features The ADwin system is equipped with analog and digital inputs and outputs, a
fast processor (32-bit floating point signal processor) and local memory. The
processor is responsible for the whole real-time processing in the system. The
applications are running independent of the PC and its workload.
Processor The processor of the ADwin system processes each measurement value at
once.
In one cycle you can acquire the status of the inputs, process the status by the-
help of any mathematical functions, and react to the results, even at very fast
process cycle times of some microseconds. This results in a perfect and logical
work sharing: The PC runs a program for visualizing of data, for input and oper-
ation of the processes, togeher with access to networks and data bases, while
the processor of the ADwin system executes all tasks which require real-time
in parallel.
Real-time operating
system
The operating system for the DSP of the ADwin system has been optimized
to reach the fastest response times possible. It manages parallel processes in
a multitasking manner. Low priority processes are managed by time slicing.
Requested high priority processes interrupt all low priority processes and are
instantaneously and completely executed (preemtive multitasking). High prior-
ity processes are executed as time-controlled or event-controlled processes
(external trigger).
Timing The built-in timer is responsible for the precise calling of high priority pro-
cesses. It has a resolution of 25 nanoseconds. The ADwin systems are char-
acterized by an extremely short response time of only 300 nanoseconds during
the change from a low to a high priority process. A continously running com-
munication process enables a continous data exchange between the ADwin
system and the PC even during applications in process. The communication
has no influence on the real-time capability of the ADwin system, neverthe-
less, it is possible to exchange data at any time.
ADbasic The real-time development tool ADbasic gives the opportunity to create time-
critical programs for ADwin systems very easily and quickly. ADbasic is an
integrated development environment under Windows with possibilities for
online debugging. The habitual, easy-to-learn BASIC instruction syntax has
been extended by many more functions, in order to get direct access to inputs
and outputs as well as by functions for process control and communication with
the PC.

ADwin-Gold USB / ENET, manual version 3.8, October 2005 3
System description
ADwin
Communication between ADwin system and PC
InterfacesThe ADwin system is connected to the PC via an USB or Ethernet interface.
After power-up the ADwin system is booted from the PC via this interface.
Afterwards the ADwin operating system is waiting for instructions from the PC
which it will process.
Instruction processingThere are two kinds of instructions: On the one hand instructions, which trans-
fer data from the PC to the ADwin system, for instance "load process", "start
process" or "set parameter", on the other hand instructions which wait for a
response from the ADwin system, for instance "read variables" or "read data
sets". Both kinds of instructions are processed immediately by the ADwin sys-
tem, which means immediate and full range responds. The ADwin system
never sends data to the PC without request! The data transfer to the PC is
always a response to an instruction coming from the PC. Thus, embedding the
ADwin system into various programming languages and standard software
packages for measurements is easily made, because they have only to be able
to call functions and process the return value.
Software interfacesUnder Windows 95/98/NT/ME/2000/XP you can use a DLL and an ActiveX
interface. On this basis the following drivers for development environments
are available:
.NET, Visual Basic, Visual-C, C/C++, Delphi, VBA (Excel, Access, Word),
TestPoint, LabVIEW / LabWINDOWS, Agilent VEE (HP-VEE), InTouch, DIA-
dem, MATLAB.
The easy, instruction-oriented communication with the ADwin system enables
several Windows programs to access the same ADwin system in coordination
at the same time. This is of course a great advantage when programs are devel-
oped and installed.
Fig. 1 – Concept of the ADwin systems

System description ADwin
4ADwin-Gold USB / ENET, manual version 3.8, October 2005
2.2 The ADwin-Gold System
Processor and memory The ADwin-Gold system is equipped with the digital 32 bit signal processor
T9 (SHARC ADSP 21062) from Analog Devices with floating point and integer
processing. It is responsible for the complete measurement data acquisition,
online processing, and signal output, and makes it possible to process instan-
taneously sample rates of up to several 100 kHz.
The on-chip memory with 256 kB has a very short access time of 25 ns and
is large enough to hold the complete ADwin operating system, the ADbasic
processes and all variables.
In order to get maximum access times, all inputs and outputs are memory-
mapped in the external memory section of the DSP. For buffering larger quan-
tities of data the DSP uses an external memory of 16 MB (DRAM; optional
64 MB).
Analog inputs The system has 16 analog inputs with BNC plugs (alternatively: DSub con-
nectors), which are divided into two groups each being connected to one mul-
tiplexer. These two outputs are optionally converted by a 14-bit or 16-bit ana-
log-to-digital converter (ADC), (see Fig. 2 "Block diagram of the ADwin-Gold).
With the 14-bit ADCs it is possible to sample very fast, with the 16-bit ADCs
highly accurately.
Fig. 2 – Block diagram of the ADwin-Gold
Analog outputs The standard version of the ADwin-Gold system is equipped with 2analog
outputs (optional 8) with an output voltage range of -10V … +10V and a 16-
bit resolution. You can synchronize the output of the voltage of all DACs per
software.
Digital inputs and outputs 32 digital inputs or outputs are available on two 25-pin D-Sub connectors.
They can be programmed in groups of 8 as inputs or outputs. The inputs or out-
puts are TTL-compatible.
Trigger input (EVENT) The ADwin-Gold has a trigger input (EVENT, see also chapter 5.2 "Digital
Inputs and Outputs"). Processes can be triggered by a signal and are com-
pletely processed afterwards. (see ADbasic manual, chapter "Structure of the
ADbasic Program").
All analog data inputs and outputs of the system are differential.
The connection between ADwin-Gold system and computer is made via the
USB or Ethernet interface (depending on the version you have purchased).
8 Bit
8 Bit
A/CLK, B/DIR, CLR/LATCH four 32 bit counter
16bit / 5µs
16bit / 5µs
14bit / 0,5µs
14bit / 0,5µs
A
D
A
D
A
D
A
D
MUX
MUX
IN 1
IN 3
IN 5
IN 7
IN 9
IN 11
IN 13
IN 15
IN 2
IN 4
IN 6
IN 8
IN 10
IN 12
IN 14
IN 16
D
A
SHARC
™
ADSP 2106x
from Analog Devices
with 16 or 64 MB
external DRAM
D
A
16bit
16bit
OUT 1
OUT 2
32 digital I/Os,
programmable
as in- or output
8
I/O
8
I/O
8
I/O
8
I/O
CONN. 1
(DIGITAL IN)
CONN. 2
(DIGITAL OUT)
EVENT
PGA
G = 1, 2, 4, 8
+
-
PGA
G = 1, 2, 4, 8
+
-
D
A
16bit
OUT 8
. . . . .
. . . . .
OP
+
-
OP
+
-
OP
+
-
. . . . .
8 Bit
8 Bit
CONN. 3
(CNTR IN,
differential)
to PC
USB-/
ENET-
controller
Note: shaded components are optional.

ADwin-Gold USB / ENET, manual version 3.8, October 2005 5
System description
ADwin
Standard deliveryThe standard delivery items for the ADwin-Gold system:
–theADwin-Gold system with USB or Ethernet interface,
– a USB cable or a cross-over Ethernet cable from the PC to the Gold
device (length about 1.8m).
– the power adapter: a three-pin power supply cable, which prevents the
possibility of mismatch, at a slot metal sheet with socket connector,
– the power supply cable from the power adapter to the system,
–theADwin CDROM,
– the manual "Driver Installation",
– this hardware manual.
Options2.2.1 Options (no upgrades possible)
The following options are available:
–Gold-D: All inputs and outputs have DSub-connectors, including the
analoge inputs (instead of BNC plugs).
–Gold-DA: 6 additional analog outputs (differential) with a 16-bit DAC
each.
–Gold-CO1: counter option with four 32 bit counters, which can optionally
be used for period width measurement, as impulse counters or as
up/down counters with clock/direction or four edge evaluation for
quadrature encoders.
–Gold-CAN: 4 decoders for use with incremental encoders with SSI inter-
face, 2 CAN interfaces (both either high speed or low speed) and 2
RSxxx interfaces (RS232, RS485). This option is available in combina-
tion with the option Gold-D only.
–GOLD-MEM-64: external memory with 64MB instead of 16MB and
512kB internal CPU memory instead of 256kB.
–Gold-Boot: Flash-EPROM boot loader for stand-alone operation without
PC (only in combination with the Gold-ENET).
If not excluded above, all additional options can be combined with each other.
Accessories2.2.2 Accessories
–ADbasic, real-time development tool for all ADwin systems
–ADwin-Gold-pow: external power supply (necessary for notebook oper-
ation)
–Gold-Mount: kit for installation of the ADwin-Gold system on a DIN rail.
– Single cable-connector for a self-made external power supply cable.

Operating Environment ADwin
6ADwin-Gold USB / ENET, manual version 3.8, October 2005
3 Operating Environment
The ADwin-Gold electronic is installed in a closed aluminum enclosure and it
is only allowed to operate it in this enclosure. With the necessary accessories
the system can be operated in 19-inch-enclosures or as a mobile system (e.g.
in cars). See also chapter 2.2.2 "Accessories").
Earth protection The ADwin-Gold device must be earth-protected, in order to
– build a ground reference point for the electronic
– conduct interferences to earth.
Connect the GND plug, which is internally connected with the ground refer-
ence point and the aluminum enclosure, via a short low-impedance solid-type
cable to the central earth connection point of your device.
Galvanic connection The power supply cable is the galvanic connection between the computer and
the ADwin-Gold.
The version with USB interface has a galvanic connection to the computer or
where appropriate also via the power supply.
The data lines at the version with Ethernet interface are optically isolated, but
the ground potentials are connected, because the shielding of the Ethernet
connector (RJ-45) is connected to GND.
Excluding transient
currents
Transient currents, which are conducted via the aluminum enclosure or the
shielding, have an influence on the measurement signal.
Please, make sure that the shielding is not reduced, for instance by taking
measures for bleeding off interferences, such as connecting the shielding to
the enclosure just before entering it. The more frequently you earth the shield-
ing on its way to the machine the better the shielding will be.
Use cables with shielding on both ends for signal lines. Here too, you should
reduce the bleeding off of interferences via the ADwin-Gold aluminum enclo-
sure by using screen clips.
BNC cables The shielding of BNC cables is normally used as differential ground and looses
therefore the shielding effect. So BNC cables are influenced by interferences
when differential measurements are executed. For signal and data transfer
outside of an enclosure it is necessary to use twisted pair data transfer cables,
whose channels are shielded, too.
Protection low voltage The ADwin-Gold is externally operated with a protection low voltage of 10V
to 35V; internally it is operated with a voltage of +5V and ±15V against GND.
It is not life-threatening. For operation with an external power supply, the
instructions of the manufacturer applies.
Ambient temperature The ADwin-Gold is designed for operation in dry rooms with a room temper-
ature of +5°C … +50°C and a relative humidity of 0 … 80% (no condensation,
see Annex).
Chassis temperature The temperature of the chassis (surface) must not exceed +60°C, even under
extreme operating conditions – e.g. in an enclosure or if the system is exposed
to the sun for a longer period of time. You risk damages at the device or not-
defined data (values) are output which can cause damages at your measure-
ment device under unfavorable circumstances.

ADwin-Gold USB / ENET, manual version 3.8, October 2005 7
Initialization of the Hardware
ADwin
4 Initialization of the Hardware
If you start initializing do not connect any cables to the ADwin-Gold before
you have executed the following steps:
– Carry out completely the installation of the drivers and the power supply
at the computer or notebook (see manual: "ADwin Driver Installation").
– connect the ADwin-Gold only with the computer or notebook (s.b.).
– Read chapter 5 "Inputs and Outputs" in this manual.
– Begin now with the connection of the inputs and outputs.
Please take into account that there is a galvanic isolation between the ADwin-
Gold system and the computer via power supply cable, USB and Ethernet lines
(see chapter 3, section "Galvanic connection").
Providing the power
supply
Please pay attention that reliable power source is supplied.
This concerns the computer (standard delivery). Otherwise also the external
power supply, if operated in a car, the battery voltage.
Power supplyThe power supply connection of the ADwin-Gold with 12V (see Annex, Tech-
nical Data) is made via the built-in connector, at left next to the power switch or
above the GND plug (see Fig. 4). Connect the 3-pin subminiature connector
there. For the pin assignment see the following picture:
Fig. 3 – Power supply connector (male)
For using the system with an external power supply unit you need the submin-
iature connector described above. The connector is provided by the following
manufacturer under the article number 712 299-0406-00-03 (Series 712):
Franz Binder GmbH + Co. elektrische Bauelemente KG
Rötelstrasse 27
74172 Neckarsulm,
Phone: ++49-7132 / 325-0
www.binder-connector.de
.Hypertext.message URL http://www.binder-connector.de;
When using the system with a notebook, power has to be supplied by a sepa-
rate power supply, (see chapter 2.2.2 on page 5). Please pay attention to the
fact that it is sufficiently dimensioned.
If using current-limiting power supplies, please pay attention to the fact, that
after power-up the current demand can be a multiple of the idle current. More
detailed information can be found in the Technical Data (Annex).
In case of a power failure all data which have not been saved are lost. Not-
defined data (values) can under unfavorable circumstances cause damages to
other equipment.
ConnectionIf you have completed the installation of the ADwin drivers and the configura-
tions in the ADbasic menu "Options\Compiler", then connect the USB or
Ethernet data transfer cables and the power supply cable. Then start the com-
puter.
Power-upIn order to avoid switching off the system inadvertently, the switch is equipped
with a blocking device. Pull the switch a little bit, then pull it into the direction
"Power". Now the device is switched on and the LED lights up in red.
+10...35VPE
GND
1
2
3

Initialization of the Hardware ADwin
8ADwin-Gold USB / ENET, manual version 3.8, October 2005
Booting Start ADbasic and boot the ADwin system by clicking on the "Boot button" .
The display in the status line: "ADwin is booted" shows that the operating
system has been loaded appropriately and that via ADbasic the ADwin sys-
tem has been connected. At the same time the flashing of the LED (green col-
ored now) at the ADwin-Gold shows that it is ready for operation.
Programs with ADbasic Programming the ADwin systems is described more detailed in the ADbasic
manual.
Start with the programming examples in the ADbasic Tutorial.

ADwin-Gold USB / ENET, manual version 3.8, October 2005 9
Inputs and Outputs
ADwin
5 Inputs and Outputs
ConnectorsAll inputs and outputs may only be operated according to the specifications
given (see Annex A.1 Technical Data). In case of doubt, ask the manufacturer
of the device, to which you want to connect the ADwin-Gold system.
Open-ended inputs can cause errors - above all in an environment where inter-
ferences may occur. For your safety, set the inputs which you do not use to a
specified level (for instance GND) and also connect them as close to the con-
nector as possible. Don't connect open ended cables to the inputs; open ended
cables may cause spikes at the inputs.
An exception is the event input, which has already an internal pull-up resistance
(10 kΩ).
Standard instructionsFor fast and easy programming there are standard instructions available in the
compiler ADbasic, which enable a user to easily measure or output data (see
also ADbasic manual). Use other instructions only if extremely time-critical or
special tasks require to do so. (See also ADbasic manual).
More detailed information about the analog as well as the digital inputs and out-
puts can be found in the following chapters.
The pin assignment of CONN. 1 and CONN. 2 (Gold-D: DIO00-15 and
DIO16-31) is illustrated on page 14.
Fig. 4 – Schematic of ADwin-Gold (USB version)
CONN. 1 (DIGITAL IN)
CONN. 2 (DIGITAL OUT) POWER
GND
CONN. 3
CONN. 4
ADwin-
GOLD
(CNTR IN, diff.)
(OUT 5...8)
IN 1 IN 3 IN 5 IN 7 IN 9 IN 11 IN 13 IN 15 OUT 1 OUT 3
IN 2 IN 4 IN 6 IN 8 IN 10 IN 12 IN 14 IN 16 OUT 2 OUT 4
USB
analog
inputs
analog
outputs
power
supply
USB
connector
GND/PE
connector
digital
inputs/outputs
additional
inputs/outputs

Inputs and Outputs ADwin
10 ADwin-Gold USB / ENET, manual version 3.8, October 2005
5.1 Analog Inputs and Outputs
In order to operate the system without any interferences, isolated BNC con-
nectors are necessary. Otherwise there will be the danger of damages caused
by ESD or short circuits at the inputs. This will be the case when using not iso-
lated BNC T-pieces.
The ADwin-Gold device has to be connected to earth, in order to execute
measurement tasks without any interferences. Connect the GND plug via a
low-impedance solid-type cable with the central earth connection point of your
device.
The power supply from the power adapter at the computer also connects the
earth of the ADwin-Gold system with the earth of the computer. If you do not
operate the PC and the ADwin-Gold system in the same place, you should not
use the power supplied by the PC but an external power supply unit which is
earth-free, in order to avoid influences by different ground reference potentials.
In addition to the description of the inputs and outputs you will find notes below
for the conversion of digits into voltage values and for the input settings of the
analog inputs.
The pin assignment of the analog channels for ADwin-Gold-D is shown in
Fig. 6.
Fig. 5 – Schematic of ADwin-Gold-D (ENET version)
GND
PC
ADwin-
Gold
ANALOG OUT
ANALOG IN
CO POWER IN
DIO 00-15 (IN)
DIO 16-31 (OUT)
CAN 1.1
CAN 1.2
CAN 2
COM1
COM2
CO1 CO2 CO3 CO4
POWER
analog
inputs/outputs
power-
supply
ENET
connector
GND/PE
connector
digital
inputs/outputs
additional
inputs/outputs

ADwin-Gold USB / ENET, manual version 3.8, October 2005 11
Inputs and Outputs
ADwin
Fig. 6 – Pin assignment of analog channels with Gold-D option
5.1.1 Analog Inputs
MultiplexerThe system has 16 analog inputs IN1 … IN16. The inputs with odd numbers (1,
3, … 15) are allocated to multiplexer 1, those with even numbers (2, 4, … 16)
to multiplexer 2. The output of each multiplexer is connected to both a 14 bit-
ADC and a 16 bit-ADC (see also Block diagram of the ADwin-Gold, page 4).
DifferentialThe analog inputs are differential. For each of the measurement channels there
is a positive and a negative input, between them the voltage difference is mea-
sured (but not free of potential). Both, the positive and negative input have to
be connected.
The inputs are equipped with male BNC-plugs, which are arranged in 2 rows;
the Gold-D option has the inputs connected to the DSub-connector ANALOG
IN. At the BNC-plugs, the positive input is the inner conductor, the negative
input is the outer conductor.
Please note, that the inputs do need a mass connection between the system’s
GND-plug and the signal source. This is in addition to the connections to the
positive and negative input.
Fig. 7 – Input circuitry of an analog input
16-bit and 14-bit
measurements
You can convert the signals at the multiplexer outputs optionally with a 14-bit or
a 16-bit analog-to-digital-converter (ADC), (see Fig. 2 "Block diagram of the
ADwin-Gold"). You are measuring with
– the 14-bit ADC very fast (max. 0.5µs, resolution 1.221mV)
– the 16-bit ADC very accurately (max. 5µs, resolution 305µV).
ADC instructionThe instructions ADC() for the 16-bit ADC and ADC12() for the 14-bit ADC
execute a complete measurement with one of the ADCs on the analog input.
The ADC instructions consider for instance the settling of the multiplexer and
assure perfect measurements (see also ADbasic manual).
12345678910111213141516171819
202122232425262728293031323334353637
IN 1 (+)
IN 2 (+)
IN 3 (+)
IN 4 (+)
IN 5 (+)
IN 6 (+)
IN 7 (+)
IN 8 (+)
IN 9 (+)
IN 10 (+)
IN 11 (+)
IN 12 (+)
IN 13 (+)
IN 14 (+)
IN 15 (+)
IN 16 (+)
DGND
IN 1 (-)
IN 2 (-)
IN 3 (-)
IN 4 (-)
IN 5 (-)
IN 6 (-)
IN 7 (-)
IN 8 (-)
IN 9 (-)
IN 10 (-)
IN 11 (-)
IN 12 (-)
IN 13 (-)
IN 14 (-)
IN 15 (-)
IN 16 (-)
ANALOG IN
(female)
RESERVED
RESERVED
12345678910111213141516171819
202122232425262728293031323334353637
ANALOG OUT
(male)
OUT 1
OUT 2
DGND
GND 1
GND 2
RESERVED
RESERVED
BNC-
jack
IN x
330k
330k
InAmp
+
-
to
ADC
MUX
PGA
G = 1, 2, 4, 8
+
-
GND

Inputs and Outputs ADwin
12 ADwin-Gold USB / ENET, manual version 3.8, October 2005
Please pay attention to a low internal resistance of the power supply unit (of the
input signals), because it may have influence on the measuring accuracy. If
this is not possible:
– Depending on the output resistance a linear error is caused.
You can compensate this by multiplying the measurement value with a
corresponding factor and get a sort of recalibration.
– From approx. 3kΩupwards the multiplexer settling time extends.
The waiting time defined in the standard instructions ADC and ADC12 is
then too short, so that imprecise values are recalled. In this case please
use the instructions described in chapter 5.3.1.
5.1.2 Analog Outputs
The system has 2 analog outputs (OUT1, OUT2) with BNC-plugs; with Gold-D
option the outputs are located on the DSub connector ANALOG OUT (see
Fig. 6). A digital-to-analog converter (DAC) is allocated to each of the outputs.
DAC instruction The standard instruction DAC (number, value) checks each of the values if
it exceeds or falls below of the 16-bit value range (0...65535). If the value is in
the 16-bit value range, the indicated value is output on the output number. If
it is not in the value range the maximum or minimum values are output, (see
also ADbasic manual).
5.1.3 Calculation Basis
Voltage range The voltage range of the ADwin-Gold at the analog inputs and outputs is
between –10 V to +10 V (bipolar 10 V).
Allocation of digits to
voltage
The 65536 digits are allocated to the corresponding voltage ranges of the
ADCs and DACs insofar that
– 0 (zero) digits correspond to the maximum negative voltage and
– 65535 digits correspond to the maximum positive voltage
The value for 65536 digits, exactly 10 Volt, is just outside the measurement
range, so that you will get a maximum voltage value of 9.999695V for the 16-
bit conversion and a voltage value of 9.998779V for the 14-bit conversion.
Fig. 8 – Zero offset in the standard setting of bipolar 10 Volt
+10
-10
0 32768 65536
0
[V]
[Digit]

ADwin-Gold USB / ENET, manual version 3.8, October 2005 13
Inputs and Outputs
ADwin
Zero offset UOFF
In the bipolar setting you will get a zero offset, also called offset UOFF in the fol-
lowing text.
For the voltage range of −10V … +10V applies:
UOFF = −10V
Gain factor kv
The ADwin-Gold has a programmable gain (PGA), with which you can amplify
the input voltage by the factors 1, 2, 4, and 8. At the same time the measure-
ment range gets smaller by the corresponding gain factor k (see Annex "Tech-
nical Data").
Please note that upon applications with kV>1 the interference signals are
amplified respectively.
Quantization level ULSB
The quantization level (ULSB) is the smallest digitally displayable voltage differ-
ence and is equivalent to the voltage of the least significant bit (LSB). It is dif-
ferent for the two ADCs:
– 16-bit ADC: ULSB = 20V / 216 = 305.175µV
– 14-bit ADC: ULSB = 20V / 214 = 1220.7µV
The measured 16-bit value of the ADC is returned in the lower word of the reg-
ister. A DAC value, which is to be output, has to be available there.
Fig. 9 – Storage of the ADC/DAC bits in the memory
In order to compare the measurement values of the 14-bit ADC with the values
of the 16-bit ADC, the converted value is written left-aligned into the lower word
of the register at the 14-bit ADC. Therefore the lower 2 bits are always 0 (zero).
The 16384 digits of the 14-bit ADC are mapped to the 65536 digits of the 16-
bit ADC. Thus 4 digits of the 16-bit ADC are equivalent to one digit of the 14-
bit ADC.
Therefore the following equations can be used for both ADC types:
Conversion Digit
'
Voltage
DACFor a DAC:
ADCFor an ADC (14-bit and 16-bit):
Bit No. 31…16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
32-bit-
memory
0 16-bit value of the 16-bit ADC / DAC in the lower word
0 14-bit value of the 14-bit ADC in the lower word 0 0
UOUT Digits ULSB UOFF
+⋅=
Digits
UOUT UOFF
–
ULSB
---------------------------------------------
=
Digits
kvUIN
⋅UOFF
–
ULSB
----------------------------------------------------
=
UIN
Digits ULSB UOFF
+⋅
kv
---------------------------------------------------
=

Inputs and Outputs ADwin
14 ADwin-Gold USB / ENET, manual version 3.8, October 2005
Tolerance Ranges
Slight variations regarding the calculated values may be within the tolerance
range of the individual component. Two kinds of variations are possible (in
LSB), which are indicated in this hardware manual:
INL – The integral non-linearity (INL) defines the maximum deviation from the
ideal straight line over the whole input voltage range.
DNL – The differential non-linearity (DNL) defines the maximum deviation from
the ideal quantization level.
5.2 Digital Inputs and Outputs
Digital inputs/outputs On two 25-pin D-SUB sockets (DIO 00…DIO 31) there are 32 digital inputs or
outputs. They are programmable in groups of 8 as inputs or outputs.
The digital inputs are TTL-compatible and not protected against over voltage.
Do not use pins marked as "reserved". They are planned for changes and
expansions and can cause damages to your system if you do not pay attention
to this fact.
Trigger input (EVENT) The ADwin-Gold is equipped with an external trigger input (EVENT). With this
trigger input processes are triggered by an external signal (trigger) with rising
edge and can completely and immediately be processed, (see also ADbasic
manual, chapter: "Program Structure").
Power-up configuration After power-up of the device, all connections are configured as inputs.
CONF_DIO(12) The instruction CONF_DIO(12) configures DIO 15:00 as digital inputs and
DIO 31:16 as digital outputs (see Fig. 10).
Only in this configuration will you be able to totally access the inputs and out-
puts with the instructions
DIGIN, DIGIN_WORD, DIGOUT_WORD, SET_DIGOUT, CLEAR_DIGOUT.
About programming under other configurations the following chapter will give
you more detailed information: chapter 5.3 "Time-Critical Tasks" (see also
ADbasic manual and tutorial).
Fig. 10 – Pin assignment with the configuration CONF_DIO(12)
5.3 Time-Critical Tasks
For extremely time-critical tasks you can use instructions with which you have
direct access to the control and data registers of the ADC and DAC (see
ADbasic manual). These registers can be found in the memory address area
of the ADSP (memory mapped). These instructions also allow to optimize the
program structure (s.b.).
Inputs / DIGIN Outputs / DIGOUT
CONN. 1
(male)
13121110987654321
252423222120191817161514
DIGIN-00
DIGIN-02
DIGIN-04
DIGIN-06
DIGIN-08
DIGIN-10
DIGIN-12
DIGIN-14
EVENT
GND
DIGIN-01
DIGIN-03
DIGIN-05
DIGIN-07
DIGIN-09
DIGIN-11
DIGIN-13
DIGIN-15
GND
R
ESERVED RESERVED
CONN. 2
12345678910111213
141516171819202122232425
GND
+5V (output, max. 0.1A)
DIGOUT-14
DIGOUT-12
DIGOUT-10
DIGOUT-08
DIGOUT-06
DIGOUT-04
DIGOUT-02
DIGOUT-00
GND
DIGOUT-15
DIGOUT-13
DIGOUT-11
DIGOUT-09
DIGOUT-07
DIGOUT-05
DIGOUT-03
DIGOUT-01
R
ESERVED RESERVED

ADwin-Gold USB / ENET, manual version 3.8, October 2005 15
Inputs and Outputs
ADwin
Contrary to the standard instructions ADC(), ADC12() and DAC() the instruc-
tions for direct access do not have any test routines. Before you use them we
recommend to learn more about time sequences, program structures and func-
tions sequences in an ADC.
5.3.1 Analog Inputs and Outputs
ADC() and ADC12()The standard instructions ADC() and ADC12() consist of a sequence of sev-
eral instructions (see below). They need a certain time for execution. The exe-
cution time is mostly determined by the settling time of the multiplexer and the
conversion time.
SET_MUX()
… 'wait for settling of the
'multiplexer
START_CONV()
WAIT_EOC() 'wait for end of conversion
READ_ADC() 'or READ_ADC12() at ADC12()
Program structureYou can use (or extend) the waiting times caused by the standard instructions
for other purposes. If you apply these instructions skillfully you may be able to
execute faster measurements.
It is important to set the START_CONV() instruction in a sufficient time-delay
from the SET_MUX() instruction, in order to consider the multiplexer settling
time (see also ADbasic manual, Instruction Reference).
Use the waiting times for instance for arithmetic operations and save CPU time:
– Settling time of the multiplexer: At a maximum voltage jump of 20 Volt it
is 6.5 µs (max.) for the 16-bit ADC and 2.5 µs for the 14-bit ADC.
– Conversion time of the ADC: Its is 0.5 µs for the 14-bit ADC and 5 µs for
the 16-bit ADC.
Direct Register Access
ADCA measurement can be executed very fast, when you directly access the con-
trol and data registers of the ADC.
DACIf you have made sure that at the analog outputs the values are within the range
limits, you can write very quickly into one or more DAC registers with direct
access to the hardware registers, and you can synchronously start the output,
(see ADbasic manual).
The hardware addresses for the direct access to the control and data registers
are described on the following pages.

Inputs and Outputs ADwin
16 ADwin-Gold USB / ENET, manual version 3.8, October 2005
Address
[HEX] Function Bit Commentary
31:16 15:10 9876543210
20400000
Set MUX 1: channels 1, 3, 5, …, 15 - - - - - - - - - n n n ""nnn"" binary = 0...7 decimal,
selected ch. = nnn +
Set MUX 2: channels 2, 4, 6, …, 16 - - - - - - n n n - - - ""nnn"" binary = 0...7 decimal,
selected ch. = 2(nnn + 1
Gain PGA 1 - - - - g g - - - - - - ""gg"" binary = 0...3 decimal,
selected gain = 2gg
Gain PGA 2 - - g g - - - - - - - -
20400010
Start conversion: ADC 1 (16-bit) - - - - - - - - - 1 - s
s = 0 : start conversion
s = 1 : no effect
Start conversion: ADC 2 (16-bit) - - - - - - - - - 1 s -
Start conversion: ADC 1 (14-bit) - - - - - - - - s 1 - -
Start conversion: ADC 2 (14-bit) - - - - - - - s - 1 - -
20400020
EOC status: ADC 1 (16-bit) - - - - - - - - - - - e
e = 0 : end of conversion
e = 1 : conversion is running
EOC status: ADC 2 (16-bit) - - - - - - - - - - e -
EOC status: ADC 1 (14-bit) - - - - - - - - e - - -
EOC status: ADC 2 (14-bit) - - - - - - - e - - - -
20400030 Read out register: ADC 1 (16-bit) - x xxxxxxxxxx
x : result of conversion
20400040 Read out register: ADC 2 (16-bit) - x xxxxxxxxxx
20400130 Read out register: ADC 1 (14-bit) - x x x x x x x x x 0 0
20400140 Read out register: ADC 2 (14-bit) - x x x x x x x x x 0 0
20400100 Read out register and start conversion:
ADC 1 (16-bit) - x xxxxxxxxxx
20400110 Read out register and start conversion:
ADC 2 (16-bit) - x xxxxxxxxxx
20400120 Read out register and start conversion:
ADC 1 (14-bit) - x xxxxxxxxxx
204001D0 Read out register and start conversion:
ADC 2 (14-bit) - x xxxxxxxxxx
Fig. 11 – Hardware addresses of the control and data registers for the ADCs
Address
[HEX] Function Bit Commentary
31:16 15:10 9 8 7 6 5 4 3 2 1 0
20400010 Start conversion: All DACs synchronously - - - - - - - 1 1 s 1 1 s = 0 : start conversion
s = 1 : no effect
20400050 Write only to the register: DAC 1 - x x x x x x x x x x x
x : digital value to be converted
20400060 Write only to the register: DAC 2 - x x x x x x x x x x x
20400070 Write only to the register: DAC 3 (Gold-DA) - x x x x x x x x x x x
20400080 Write only to the register: DAC 4 (Gold-DA) - x x x x x x x x x x x
20400090 Write only to the register: DAC 5 (Gold-DA) - x x x x x x x x x x x
204000A0 Write only to the register: DAC 6 (Gold-DA) - x x x x x x x x x x x
20400190 Write only to the register: DAC 7 (Gold-DA) - x x x x x x x x x x x
204001A0 Write only to the register: DAC 8 (Gold-DA) - x x x x x x x x x x x
20400200 Write to the register and start conversion
immediately: DAC 1 - x x x x x x x x x x x
x : digital value to be converted
20400210 Write to the register and start conversion
immediately: DAC 2 - x x x x x x x x x x x
20400220 Write to the register and start conversion
immediately: DAC 3 (Gold-DA)- x x x x x x x x x x x
20400230 Write to the register and start conversion
immediately: DAC 4 (Gold-DA)- x x x x x x x x x x x
20400240 Write to the register and start conversion
immediately: DAC 5 (Gold-DA)- x x x x x x x x x x x
20400250 Write to the register and start conversion
immediately: DAC 6 (Gold-DA)- x x x x x x x x x x x
20400260 Write to the register and start conversion
immediately: DAC 7 (Gold-DA)- x x x x x x x x x x x
20400270 Write to the register and start conversion
immediately: DAC 8 (Gold-DA)- x x x x x x x x x x x
Fig. 12 – Hardware addresses of the control and data register for the DACs
Other manuals for ADwin-Gold-USB
1
This manual suits for next models
1
Table of contents
Other Jäger Control System manuals
Popular Control System manuals by other brands

Liberty Pumps
Liberty Pumps OilTector OTC-115 Operation and maintenance manual

Eneo
Eneo KBD-BVR-100 Installation and operating instructions

Raven
Raven SCS 4600 Operator's manual

Siemens
Siemens SIMATIC PCS 7 Function manual

Crosswater
Crosswater Solo Installation and maintenance guide

SYR
SYR BA-Filling-Combi 6628 Instructions for use and installation