Jäger ADwin-Gold-USB User manual

ADwin-Gold-
USB / -ENET
Manual
ADwin-Gold USB / ENET, manual version 4.3, January 2012

ADwin-Gold USB / ENET, manual version 4.3, January 2012
For any questions, please don’t hesitate to contact us:
Hotline: +49 6251 96320
Fax: +49 6251 56819
E-Mail: info@ADwin.de
Internet www.ADwin.de
Jäger Com-
putergesteuerte
Messtechnik GmbH
Rheinstraße 2-4
D-64653 Lorsch
Germany

ADwin-Gold USB / ENET, manual version 4.3, January 2012 III
ADwin
Table of contents
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .V
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
5.3 Time-Critical Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
6 Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
6.1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
6.2 Calibrating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
7 DA Add-On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
8 CO1 Counter Add-On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
8.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
8.2 Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
8.3 Operating Mode Impulse/Event Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
8.4 Operating Mode Impulse Width and Period Width Measurement . . . . . . . . . . . . . .27
9 CAN add-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
9.1 SSI Decoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
9.2 CAN Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
9.3 RSxxx Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
10 ADwin-Gold-Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
11 Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
12 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
12.1 Analog Inputs and Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
12.2 Digital Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56
12.3 Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65
12.4 CAN interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
12.5 RSxxx interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98
12.6 SSI interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
Annex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
A.1 Technical Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
A.2 Hardware Addresses - General Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-5
A.3 Hardware revisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7

ADwin
IV ADwin-Gold USB / ENET, manual version 4.3, January 2012
A.4 RoHS Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7
A.5 Baudrates for the CAN bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-8
A.6 Table of figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-11
A.7 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-12

ADwin-Gold USB / ENET, manual version 4.3, January 2012 V
Typographical Conventions
ADwin
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 absolutely have to be considered in order to guaran-
tee an error free operation.
– 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 textProgram commands and user inputs are characterized by the font Courier
New.
Var_1ADbasic source code elements such as commands, variables, comments 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

Typographical Conventions ADwin
VI ADwin-Gold USB / ENET, manual version 4.3, January 2012

ADwin-Gold USB / ENET, manual version 4.3, January 2012 1
Information about this Manual
ADwin
1 Information about this Manual
This manual contains complex information about the operation of the ADwin-Gold sys-
tem. Additional information are available in
– themanual"ADwinInstallation",whichdescribes allinterfaceinstallationsfor the
ADwin systems.
With this manual you begin your installation!
– the description of the configuration program ADconfig, with which you initialize
thecommunication fromthe corresponding interface toyour ADwin-Gold system.
– the manual ADbasic, which explains basic instructions for the compiler ADbasic
and the functional layout of the ADwin system.
– the manuals for all current development environments containing the description
of installation and instructions.
Please note:
For ADwin systems to function correctly, adhere strictly to the information provided in
this documentation and in other mentioned manuals.
Qualified personnelProgramming, start-upand operation, as well asthe modificationof program parameters
must be performed only by appropriately qualified personnel.
Qualified personnelare persons who,due to theireducation, experience andtrai-
ning as well as their knowledge of applicable technical standards, guidelines, ac-
cident prevention regulations and operating conditions, 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 strictly observed. For damages caused by disregarding the information in this
documentation or in all other additional documentations, no liability is assumed by the
company Jäger Computergesteuerte Messtechnik GmbH, Lorsch, Germany.
Legal informationThis documentation, including all pictures is protected by copyright. Reproduction,
translation as well as electronical and photographical archiving and modification require
a written permission by the company Jäger Computergesteuerte Messtechnik GmbH,
Lorsch, Germany.
OEM products are mentioned without referring to possible patent rights, the existence
of which, may not be excluded.
Subject to change.
Hotline address: see inner side of cover page.

System description ADwin
2ADwin-Gold USB / ENET, manual version 4.3, January 2012
2 System description
2.1 ADwin system concept
ADwin systems guarantee fast and accurate operation of measurement data acquisi-
tionand automationtasksunder real-timeconditions.This offersanidealbasis forappli-
cations 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 down to some microseconds.
System features The ADwin system is equipped with analog and digital inputs and outputs, a fast pro-
cessor (32-bit floating point signal processor) and local memory. The processor is
responsibleforthewhole real-time processing inthe system. Theapplicationsrun inde-
pendent 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 with 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
executes a program for visualizing of data, for input and operation of the processes,
togeher with access to networks and data bases, while the processor of the ADwin sys-
tem executes all tasks which require real-time processing concurrently.
Real-time operating system The operating system for the DSP of the ADwin system has been optimized to achieve
the fastest response times possible. It manages parallel processes in a multitasking
environment. Low priority processes are managed by time slicing. Specified high prior-
ity processes interrupt all low priority processes and are immediately and completely
executed (preemptive multitasking). High priority processes are executed as time-con-
trolled or event-controlled processes (external trigger).
Timing The built-in timer is responsible for the precise scheduling of high priority processes. It
has a resolution of 25 nanoseconds (3,3ns since processor T11). The ADwin systems
are characterized by an extremely short response time of only 300 nanoseconds during
the change from a low to a high priority process. A continously running communication
process enables a continous data exchange between the ADwin system and the PC
even while applications are active. The communication has no influence on the real-
time capability of the ADwin system, even so, 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 devel-
opment environment under Windows with possibilities of online debugging. The famil-
iar,easy-to-learn BASIC instructionsyntaxhasbeen extendedby many morefunctions,
in order to allow 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 4.3, January 2012 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 transfer 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 system, which means immediate and complete
responses. 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 soft-
ware packages for measurements is held simple, because they have only to be able to
call functions and process the return value.
Software interfacesUnder Windows 95/98/NT/ME/2000/XP/Vista you can use a DLL and an ActiveX inter-
face. 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, DIAdem, DASYLab,
SciLab, MATLAB.
Versions for Linux, Mac OS and Java are available, too.
The simple, instruction-oriented communication with the ADwin system enablesseveral
Windows programs to accessthe same ADwin system in coordination at the same time.
This is of course a great advantage when programs are being developed and installed.
Fig. 1 – Concept of the ADwin systems

System description ADwin
4ADwin-Gold USB / ENET, manual version 4.3, January 2012
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
responsiblefor thecompletemeasurement data acquisition,online processing, and sig-
nal output, and makes it possible to process instantaneously sample rates of up to sev-
eral 100 kHz.
The on-chip memory with 256 KiB 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 quantities of data the DSP
uses an external memory of 16 MiB (DRAM; optional 64 MiB).
Analog inputs The system has 16 analog inputs with BNC plugs (alternatively: DSub connectors),
which are divided into two groups each being connected to one multiplexer. These two
outputs are optionally converted by a 14-bit or 16-bit analog-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 2 analog 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 outputs are TTL-com-
patible.
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 completely processed after-
wards. (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
AD
AD
AD
AD
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
DA
SHARC
™
ADSP 2106x
from Analog Devices
with 16 or 64 MB
external DRAM
DA
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
+
-
DA
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 4.3, January 2012 5
System description
ADwin
Standard deliveryThe standard delivery items for the ADwin-Gold system:
– the ADwin-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).
– thepower adapter:a three-pinpower supplycable,which preventsthepossibility
of mismatch, at a slot metal sheet with socket connector,
– the power supply cable from the power adapter to the system,
– the ADwin CDROM,
– the manual "Driver Installation",
– this hardware manual.
2.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 interface, 2
CAN interfaces (both either high speed or low speed) and 2 RSxxx interfaces
(RS232, RS485). This option is available in combination with the option Gold-D
only.
–GOLD-MEM-64: external memory with 64MiB instead of 16MiB and 512KiB
internal CPU memory instead of 256KiB.
–Gold-Boot:Flash-EPROMbootloaderforstand-aloneoperationwithoutPC(only
in combination with the Gold-ENET).
If not excluded above, all additional options can be combined with each other.
2.2.2 Accessories
–ADbasic, real-time development tool for all ADwin systems
–ADwin-Gold-pow: external power supply (necessary for notebook operation)
–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 4.3, January 2012
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 reference 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 from the power adapter 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 shielding 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
thebleedingoff ofinterferences via the ADwin-Gold aluminum enclosure by usingcable
shield ground clamps.
BNC cables The shielding of BNC cables is normally used as differential ground and looses there-
fore the shielding effect. So BNC cables are influenced by interferences when differen-
tial 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-threat-
ening. 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 temperature 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 measurement device under unfavorable cir-
cumstances.

ADwin-Gold USB / ENET, manual version 4.3, January 2012 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 connection 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 supplyPlease pay attention that reliable power source is supplied.
This concerns the computer (standard delivery). Otherwise also the external power sup-
ply, if operated in a car, the battery voltage.
Power supplyThe power supply connection of the ADwin-Gold with 12V (see Annex, Technical 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 subminiature con-
nector described above. The connector is provided by the following manufacturer under
the article number 712299-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
When using the system with a notebook, power has to be supplied by a separate power
supply, (see chapter 2.2.2 on page 5). Please pay attention to the fact that it is suffi-
ciently 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 datawhich have notbeensaved 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 configurations in the
ADbasic menu "Options\Compiler", then connect the USB or Ethernet data transfer
cables and the power supply cable. Then start the computer.
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.
BootingStart ADbasic and boot the ADwin system by clicking on the boot button .
+10...35VPE
GND
1
2
3

Initialization of the Hardware ADwin
8ADwin-Gold USB / ENET, manual version 4.3, January 2012
The flashing LED (green colored now) and the display in the status line: "ADwin is
booted" show that the operating system has been loaded and ADbasic can connect
the ADwin system. (If not, please check the connectors first).
Programs with ADbasic Programming the ADwin systems is described more detailed in the ADbasic manual.
Instructions for access to ADwin-Gold I/Os are described in chapter 12 on page 43.
Start with the programming examples in the ADbasic Tutorial.

ADwin-Gold USB / ENET, manual version 4.3, January 2012 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 interferences
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 connector as possible. Don't con-
nect 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Ω).
The inputs and outputs of the ADwin-Gold II basic version is decscribed on the following
pages:
– 16 analog inputs via 2 multiplexers (page 10)
– 2 analog outputs (page 11)
– 32 digital inputs/outputs (page 15)
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 4.3, January 2012
5.1 Analog Inputs and Outputs
In order to operate the system without any interferences, isolated BNC connectors are
necessary. Otherwise there will be the danger of damages caused by ESD or short cir-
cuits at the inputs. This will be the case when using not isolated 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
thePC butan external powersupplyunit which isearth-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.
Standard instructions For fast and easy programming there are standard instructions available in the compiler
ADbasic, which enable a user to easily measure or output data; see ADC (page 46) and
DAC (page 45). Use other instructions only if extremely time-critical or special tasks
require to do so.
5.1.1 Analog Inputs
Multiplexer The 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).
Differential The analog inputs are differential. For each of the measurement channels there is a
positive and a negative input, between them the voltage difference is measured (but not
free of potential). Both, the positive and negative input have to be connected.
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 4.3, January 2012 11
Inputs and Outputs
ADwin
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.
Fig. 6 – Pin assignment of analog channels with Gold-D option
Pleasenote,that theinputsdoneeda massconnectionbetweenthesystem’sGND-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 page 46).
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 possi-
ble:
– Depending on the output resistance a linear error is caused.
You can compensate this by multiplying the measurement value with a corre-
sponding 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 instruc-
tions described in chapter 5.3.1.
5.1.2 Analog Outputs
Thesystem has2 analog outputs(OUT1,OUT2) withBNC-plugs; withGold-D option the
outputs are located on the DSub connector ANALOG OUT (see Fig. 6). A digital-to-ana-
log converter (DAC) is allocated to each of the outputs.
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 (+)
RESERVED
RESERVED
DGND
IN 1(-)
IN 2(-)
IN 3(-)
IN 4(-)
IN 5(-)
IN 6(-)
IN 7(-)
IN 8(-)
IN 9(-)
IN10(-)
IN11(-)
IN12(-)
IN13(-)
IN14(-)
IN15(-)
IN16(-)
RESERVED
RESERVED
ANALOG IN
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 4.3, January 2012
Additional outputs see chapter 7 "DA Add-On".
DAC instruction The standard instruction DAC(number,value)(see page 45) checks each of the val-
ues 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.
5.1.3 Calculation Basis
Voltage range The voltage range of the ADwin-Gold at the analog inputs and outputs is between –10V
to +10V (bipolar 10V).
Allocation of digits to
voltage The 65536 (216) 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
Zero offset UOFF In the bipolar setting you will get a zero offset, also called offset UOFF in the following
text.
For the voltage range of −10V … +10V applies:
UOFF = −10V
12345678910111213141516171819
202122232425262728293031323334353637
OUT 1
OUT 2
DGND
GND 1
GND 2
ANALOG OUT
RESERVED
RESERVED
+10
-10
0 32768 65536
0
[V]
[Digit]

ADwin-Gold USB / ENET, manual version 4.3, January 2012 13
Inputs and Outputs
ADwin
Gain factor kv
ADwin-Gold has a programmable gain (PGA), with which you can amplify the input volt-
age by the factors 1, 2, 4, and 8. At the same time the measurement range gets smaller
by the corresponding gain factor kv(see Annex "Technical 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 difference and
is equivalent to the voltage of the least significant bit (LSB). It is different 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 register. 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 to Voltage
DACFor a DAC:
ADCFor an ADC (14-bit and 16-bit):
Tolerance Ranges
Slightvariationsregarding thecalculated values maybewithin thetolerance rangeofthe
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– Thedifferentialnon-linearity(DNL)defines themaximum deviationfromtheideal
quantization level.
5.2 Digital Inputs and Outputs
Digital inputs/outputsOn 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.
After power-up of the device, all 4 groups are configured as inputs.
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 4.3, January 2012
Fig. 10 – Pin assignment digital IOs
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: "Pro-
gram Structure").
Programming Instructions to program analog inputs are described starting from page 504. The
instructions are defined in the include file <ADwinGoldII.inc> and are described in
the online help, too.
CONF_DIO(12)The instruction CONF_DIO(12)configures DIO 15:00 as digital inputs and DIO 31:16
as digital outputs.
Only in this configuration will you be able to totally access the inputs and outputs with
the above instructions. About programming under other configurations the following
chapter will give you more detailed information: chapter 5.3 "Time-Critical Tasks" (see
also tutorial).
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 ADbasicmanual).
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.).
Contrary to the standard instructions ADC(), ADC12() and DAC() the instructions for
direct access do not have any test routines. Before you use them we recommend to
learn more about time sequences, program structures and functions 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 several
instructions (see below). They need a certain time for execution. The execution time is
mostly determined by the settling time of the multiplexer and the conversion time.
DIO-00…DIO-15 DIO-16…DIO-31
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
RESERVED RESERVED
DIO 00-15
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
RESERVED RESERVED
DIO 16-31
Function Instructions
Configure Conf_DIO
Read input values Digin, Digin_Word
Set output values Digout_Word, Digout_Word
Clear_Digout
Other manuals for ADwin-Gold-USB
1
This manual suits for next models
1
Table of contents
Other Jäger Data Logger manuals