Jäger ADwin-Gold II User manual

ADwin-Gold II
Manual
ADwin-Gold II , Manual February 2013

ADwin-Gold II , Manual February 2013
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 II , Manual February 2013 III
ADwin
Table of contents
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VI
1 Information about this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
2 System description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
2.1 ADwin system concept. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
2.2 The ADwin-Gold II System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
3 Operating Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
4 Initialization of the Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
5 Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
5.1 Analog Inputs and Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
5.2 Digital Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
5.3 Watchdog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
5.4 LS Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
5.5 Time-Critical Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
6 DA Add-On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
7 CNT Add-On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
7.1 Counter Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
7.2 Counter Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
7.3 Using Event Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
7.4 Using PWM Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
7.5 SSI decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
7.6 PWM outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
8 CAN add-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
8.1 CAN Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
8.2 RSxxx Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
9 Profibus Add-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
10 DeviceNet Add-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
11 EtherCAT Add-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
12 Storage-16 Add-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
13 ADwin-Gold II-Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
14 Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
15 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
15.1 System functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51
15.2 Analog Inputs and Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
15.3 Digital Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
15.4 Counters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
15.5 SSI interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129
15.6 PWM Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .136

ADwin
IV ADwin-Gold II , Manual February 2013
15.7 CAN interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145
15.8 RSxxx interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160
15.9 Profibus interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173
15.10 DeviceNet interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177
15.11 EtherCAT interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182
15.12 Real-time clock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186
15.13 Storage media (ADbasic). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189
15.14 Storage media (TiCoBasic) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .196
Annex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
A.1 Technical Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
A.2 Hardware Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
A.3 Hardware revisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
A.4 RoHS Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
A.5 Baud rates for CAN bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7
A.6 Table of figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-10
A.7 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-11

ADwin-Gold II , Manual February 2013 V
ADwin

Typographical Conventions ADwin
VI ADwin-Gold II , Manual February 2013
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 text Program commands and user inputs are characterized by the font Courier
New.
Var_1 Source code elements such as commands, variables, comments and other
text are characterized by the font Courier New and are printed in color.
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 II , Manual February 2013 1
Information about this Manual
ADwin
1 Information about this Manual
This manual contains complex information about the operation of the ADwin-Gold II
system. Additional information are available in
– the manual "ADwin Installation", which describes all interface installations for
the ADwin systems.
Begin the installation with this manual!
– the description of the configuration program ADconfig, with which you initialize
the communication from the corresponding interface to your ADwin device.
– the manual ADbasic, which explains basic instructions for the compiler ADbasic
and the functional layout of the ADwin system.
– the manual TiCoBasic, which explains basic instructions for the compiler TiCo-
Basic and the functional layout of the TiCo processor.
– themanualsforallcurrentdevelopmentenvironmentscontainingthedescription
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-up andoperation, aswell asthemodificationof programparameters
must be performed only by appropriately qualified personnel.
Qualified personnelarepersonswho, duetotheir education,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 II , Manual February 2013
2 System description
2.1 ADwin system concept
ADwin systems guarantee fast and accurate operation of measurement data acquisi-
tionand automationtasksunderreal-time conditions.Thisoffersanideal basisforappli-
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 milliseconds down to less than one microsecond.
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-timeprocessingin thesystem.The applicationsrun 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 3.3 nanoseconds. The ADwin systems are characterized by an
extremely short response time of only 100 nanoseconds during the change from a low
to a high priority process. A continously running communication process enables a con-
tinous 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 BASICinstruction syntax hasbeen extendedbymany 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 II , Manual February 2013 3
ADwin system concept
ADwin
Communication between ADwin system and PC
InterfacesThe ADwin system is connected to the PC via an Ethernet interface. After power-up
the ADwin system is booted from the PC via this interface. Afterwards the ADwin oper-
ating 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 "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 software pack-
ages for measurements is held simple, because they have only to be able to call func-
tions 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 enables sev-
eral Windows programs to access the 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

The ADwin-Gold II System ADwin
4ADwin-Gold II , Manual February 2013
2.2 The ADwin-Gold II System
Processor and memory The ADwin-Gold II system is equipped with the digital 32 bit signal processor T11 (DSP
TS101S TigerSharc) 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 instantaneously sample rates of up to
several 100 Kilohertz.
The on-chip memory with 3 ×256KiB has a very short access time 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 256 MiB (DRAM).
Add-on processor TiCo ADwin-Gold II provides an independent, freely programmable add-on processor, the
TiCo processor (Timing Controller). The TiCo processor can access all inputs and out-
puts and therefore perform special tasks as conversion, communication protocol (SPI),
signal generator, loop control etc. According to the task the TiCo processor canhelpthe
processor T11 by pre-processing data, or it may perform an independent task.
The TiCo processor is optimized for fast response time and exact timing. The processor
works with 50MHz clock speed, a memory of von 28KiB in PM and DM and it processes
integer values of 32 bit length only (data type LONG).
Programming of the TiCo processors with TiCoBasic and other details are described in
the manual TiCoBasic.
2 processors in parallel TiCo processor and T11 use a separatebus each to access all inputs, outputs and inter-
faces and thus can work independently from each other. The Block diagram ADwin-
Gold II shows the available inputs and outputs. As an example, the T11 can output val-
ues to the DAC while the TiCo processor controls the counter inputs.
A simultaneous access of TiCo processor and T11 to the same peripherals is not pos-
sible.
In the following cases several inputs/outputs share a single connection to each the T11
bus and the TiCo bus:
– DAC outputs OUT1…OUT8
– CAN1, CAN2, COM1, COM2

ADwin-Gold II , Manual February 2013 5
The ADwin-Gold II System
ADwin
Fig. 2 – Block diagram ADwin-Gold II
Analog inputsThe system has 2×8 analog inputs with BNC plugs (alternatively: DSub connectors),
which are divided into two groups each being connected to one multiplexer. The input
signals are converted by a 18-bit analog-to-digital converter (ADC), see Fig. 2 "Block
diagram ADwin-Gold II".
Analog outputsThe standard version of ADwin-Gold II is equipped with 2 analog outputs (optional 4 or
8) with an output voltage range of -10V … +10V and 16-bit resolution. You can syn-
chronize the output of the voltage of all DACs per software.
Digital inputs and outputs32 digital inputs or outputs are available on D-Sub connectors. They can be pro-
grammed in groups of 8 as inputs or outputs. The inputs or outputs are TTL-compatible.
Trigger input (EVENT)ADwin-Gold II has a trigger input (EVENT, see also chapter 5.2 "Digital Inputs and Out-
puts"). Processes can be triggered by a signal and are completely processed after-
wards. (see ADbasic manual, chapter "Structure of the ADbasic Program").
WatchdogThe operation of ADwin-Gold II can be controlled with a watchdog counter. If a pro-
grammed signal is missing unexpectedly, the watchdog creates a reset signal for the
T11 and/or TiCo processor. The reset signal can also be output on a pin as TTL level.
24 Volt signalsUsing the two LS bus interfaces up to 30 LS bus modules can be addressed. The LS
bus module HSM-24V provides 32 digital channels for 24 Volt signals.
T11-Bus
&
TiCo-Bus
ENET
T11 (TS 101)
TigerSHARC™
@ 300 MHz
256 KiByte PM,
256 KiByte DM,
256 KiByte EM,
256 MiByte DX
TiCo
@ 50 MHz,
28 KiByte PM,
28 KiByte DM
EVENT
DIO 00-15DIO 16-31
CAN(-LS) 1
CAN(-LS) 2
COM 1
(RS-232/-485)
COM 2
(RS-232/-485)
LS1
LS2
PWM
CAN1
CAN2
COM1
COM2
PROFI
Bus
18 bit, 2µs
AD
IN 1
IN 3
IN 5
IN 7
IN 9
IN 11
IN 13
IN 15
PGA
G= 1,2,4,8
+
-
MUX DA
DA
16 bit
16 bit
OUT 1
OUT 4
DA
16 bit
OUT 8
. . .
. . .
OP
+
-
OP
+
-
OP
+
-
. . .
DA
16 bit
OUT 2
OP
+
-
. . .
. . .
. . .
18 bit, 2µs
AD
IN 2
IN 4
IN 6
IN 8
IN 10
IN 12
IN 14
IN 16
PGA
G= 1,2,4,8
+
-
MUX
CO1, ..., CO4 (32 bit U/D counter)
CLK/DIR
A/B
PWM
SSI 1, ..., SSI 4 (SSI decoder)
CLK/
DATA
PROFI DP-V1
LS-Bus 1
LS-Bus 2
PWM1, ..., PWM6
DIO 00-31
DIO 00-07
DIO 08-15
DIO 16-23
DIO 24-31

The ADwin-Gold II System ADwin
6ADwin-Gold II , Manual February 2013
Connection to the PC The connection between ADwin-Gold II system and PC is made via Ethernet interface.
This way, there is direct access to processes and global variables of the T11 processor.
Please note, that only the T11 processor has direct access to the TiCo processor; a
direct access from the PC is not available.
Standard delivery The standard delivery items for the ADwin-Gold II system:
– the ADwin-Gold II system with Ethernet interface,
– 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 possibil-
ity 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 manual.
2.2.1 Options (no upgrades possible)
The following options are available:
–GoldII-DA4/-DA8(page 19):Add-onto4or8analog outputs(differential).Each
output is equipped with a 16-bit DAC.
–Gold II-CNT (page 20): 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. 4 decoders for
use with incremental encoders with SSI interface. 6 PWM outputs.
–Gold II-CAN (page 30): 2 CAN interfaces (both either high speed or low speed)
and 2 RSxxx interfaces (RS232, RS485).
–Gold II-Profibus (page 38): Profibus interface. Excludes options DeviceNet and
EtherCAT.
–Gold II-DeviceNet (page 41): DeviceNet interface. Excludes options Profibus
and EtherCAT.
–Gold II-EtherCAT (page 43): EtherCAT interface.Excludes optionsProfibusand
DeviceNet.
–GoldII-Storage-16(page47): Memorycard with 16GiBmemory aswellas abat-
tery buffered real-time clock.
–Gold II-Boot (page 48): Flash-EPROM boot loader for stand-alone operation
without PC.
All additional options can be combined with each other. As an exception, the options
Profibus, DeviceNet and EtherCAT cannot be combined.
2.2.2 Accessories
–ADbasic, real-time development tool for all ADwin systems.
–TiCoBasic, real-time development tool for TiCo processors.
–Gold II-Pow: external power supply (necessary for notebook operation).
–Gold II-Pow-DIN: external power supply for on a DIN rail.
– Gold II-Mount: kit for installation of ADwin-Gold II on a DIN rail.
– Single cable-connector for a self-made external power supply cable.

ADwin-Gold II , Manual February 2013 7
Operating Environment
ADwin
3 Operating Environment
The ADwin-Gold II 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 protectionThe ADwin-Gold II device must be earth-protected, in order to
– build a ground reference point for the electronic
– conduct interferences to earth.
Connect the GND plug via a short low-impedance solid-type cable to the central earth
connection point of your device.
Galvanic connectionA galvanic connection combines links the ground potential of an ADwin-Gold II (and
thus of your device) with an external ground potential. A voltage difference between
ground potentials interfers with operation and can cause considerable damage. Avoid
galvanic connection or at least minimize voltage difference.
The following components establish a galvanic connection:
If the power supply unit Gold II-Pow really establishes a galvanic connection, you can
only find out by a measurement.
Excluding transient currentsTransient 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 the
bleeding off of interferences via the ADwin-Gold II aluminum enclosure by using screen
clips.
BNC cablesThe 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 voltageThe ADwin-Gold II 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 temperatureThe ADwin-Gold II 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 temperatureThe 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.
Component Connection to
Power supply via power adapter in the PC Ground potential of the PC
Some versions of the power supply unit
Gold II-Pow Power grid supplying Gold II-Pow
Shielding of the Ethernet cable Ground potential of the device on the
opposite of the Ethernet cable

Initialization of the Hardware ADwin
8ADwin-Gold II , Manual February 2013
4 Initialization of the Hardware
If you start initializing do not connect any cables to the ADwin-Gold II 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 II 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 II
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 supply The power supply connection of the ADwin-Gold II 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. 3). Connect the 3-pin subminiature connector there. For the pin
assignment see the following picture:
Fig. 3 – Power supply connector (male)
Forusing thesystemwithan externalpowersupply unityou need thesubminiaturecon-
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 6). 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 infor-
mation 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.
Connection If 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-up In 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 for a moment and then in green.
+10...35VPE
GND
1
2
3

ADwin-Gold II , Manual February 2013 9
Initialization of the Hardware
ADwin
BootingStart ADbasic and boot the ADwin system by clicking on the boot button .
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 ADbasicProgramming the ADwin systems is described more detailed in the ADbasic manual.
Instructions for access to ADwin-Gold II I/Os are described in chapter 15 on page 50.
Start with the programming examples in the ADbasic Tutorial.

Inputs and Outputs ADwin
10 ADwin-Gold II , Manual February 2013
5 Inputs and Outputs
Connectors All 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 ADwin-Gold II.
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.
ADwin-Gold II provides several pins with a voltage of +5V. The maximum current of
100mA applies to all pins together.
The inputs and outputs of the ADwin-Gold II basic version is described on the following
pages:
– 16 analog inputs via 2 multiplexers (page 11)
– 2 analog outputs (page 13)
– 32 digital inputs/outputs (page 15)
– watchdog output (page 16)
– 2 LS bus interfaces (page 15); up to 30 LS bus modules can be addressed. The
LS bus module HSM-24V provides 32 digital channels for 24 Volt signals.
Fig. 4 – Schematic of ADwin-Gold II
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
OUT 1 OUT 3 OUT 5 OUT 7
OUT 2 OUT 4 OUT 6 OUT 8
ANALOG OUTANALOG IN (1...8) ANALOG IN (9...16)
ENET
GND
POWER
ADwin-Gold II
DIO 00-15
DIO 16-31
LS 1
LS 2
COM1
COM2
CAN 1
CAN 2
CO1 & CO2 (TTL)
CO3 & CO4 (TTL)
PWM1-6 (TTL)
CO POWER IN
CO1
CO2
CO3
CO4
analog inputs analog
outputs
GND/PE con-
nector power
supply Ethernet
connector CAN
interface counter / SSI inputs
PWM outputs
digital
channels
RSxxx
interface
LS bus
interface

ADwin-Gold II , Manual February 2013 11
Analog Inputs and Outputs
ADwin
5.1 Analog Inputs and Outputs
In order to operate the system’s BNC plugs without any interferences, isolated BNC
connectors 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 isolated BNC
T-pieces.
The ADwin-Gold II device has to be connected to earth, in order to execute measure-
ment 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 II system with the earth of the computer. If you do not operate the PC
andthe ADwin-GoldII systeminthe sameplace, youshould notusethe powersupplied
by the PC but an external power supply unit which is earth-free, in order to avoid influ-
ences 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.
Forfast andeasyprogrammingthere arestandardinstructionsavailablein thestandard
instructions compiler ADbasic, which enable a user to easily measure or output data
(see ADC or DAC, page 60). Use other instructions only if extremely time-critical or spe-
cial tasks require to do so. (See also ADbasic manual).
5.1.1 Analog Inputs
2 MultiplexersThe 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 ADwin-Gold II", page 5).
DifferentialTheanaloginputs aredifferential.For eachof themeasurement channelsthere isapos-
itive 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.
The inputs are equipped with male BNC-plugs, which are arranged in 2 rows; below, the
inputs are connected to the DSub-connector ANALOG IN. At the BNC-plugs, the posi-
tive input is the inner conductor, the negative input is the outer conductor.
Fig. 5 – Pin assignment of analog inputs (DSub)
Please note, that the inputs do need a mass connection between the system’s GND-
plugand thesignal source.This isinadditionto theconnections tothe positiveandneg-
ative input.
Fig. 6 – Input circuitry of an analog input
ANALOG IN 1…8 ANALOG IN 9…16
12345678910111213
141516171819202122232425
AIn 1 (+)
AIn 2 (+)
AIn 3 (+)
AIn 4 (+)
AIn 5 (+)
AIn 6 (+)
AIn 7 (+)
AIn 8 (+)
AGND
AGND
AIn 1 (-)
AIn 2 (-)
AIn 3 (-)
AIn 4 (-)
AIn 5 (-)
AIn 6 (-)
AIn 7 (-)
AIn 8 (-)
+5V (<100mA)
AGND
RESERVED RESERVED
12345678910111213
141516171819202122232425
AIn 9 (+)
AIn 10(+)
AIn 11(+)
AIn 12(+)
AIn 13(+)
AIn 14(+)
AIn 15(+)
AIn 16(+)
AGND
AGND
AIn 9 (-)
AIn 10 (-)
AIn 11 (-)
AIn 12 (-)
AIn 13 (-)
AIn 14 (-)
AIn 15 (-)
AIn 16 (-)
+5V (<100mA)
AGND
RESERVED RESERVED
BNC-
jack
IN x
330k
330k
InAmp
+
-
to
ADC
MUX
PGA
G = 1, 2, 4, 8
+
-
GND

Analog Inputs and Outputs ADwin
12 ADwin-Gold II , Manual February 2013
18-bit measurements Signalsat the multiplexeroutputsareconvertedwith a18-bitanalog-to-digital-converter
(ADC),see Fig. 2"Block diagramADwin-Gold II".The 18-bitADC worksfast (max.2µs)
and very accurately (resolution 76µV).
There are two methods to convert measurement values, which are used alternatively:
– single conversion: The conversion is started at a defined time and the value is
returned after the appropriate delay. The value can have a resolution of 16 bit or
18 bit.
– continuousconversion:Asequentialcontrolcontinuouslyconverts16 bitvalues.
You can read the current value without waiting, but the exact time of conversion
is unknown.
Single conversion The instruction ADC executes a complete measurement with one of the ADCs on the
analog input (see page 63) and returns a 16 bit value. The instruction considers for
instance the settling of the multiplexer and assures perfect measurements.
Measurementvalueswith 18 bitresolution are available withthe instruction ADC24 (see
page 65); the values are returned with 24 bit format (see page 14).
Both instructions run with the 18-bit ADC, only return values have different resolution.
Continuous conversion
with sequential control ADwin-Gold II provides a sequential control for each ADC, which can consecutively
read measurement values of several or all input channels of an ADC. Thus, the proces-
sor can be discharged a lot and only has to read completely converted values from the
sequential control’sbuffer.The sequentialcontrolswork independentlyfrom eachother.
Programming Instructions to program analog inputs are described starting from page 63. The instruc-
tions are defined in the include file <ADwinGoldII.inc> and are described in the
online help, too.
Please pay attention to a low output resistance of the signal source (of the input sig-
nals), because it may have influence on the measuring accuracy. If this is not possible:
– Depending on the output resistance a linear error is caused (about 1 digit per
10Ω).
You can compensate this by multiplying the measurement value with a corre-
sponding factor and get a sort of re-calibration.
– From approx. 3kΩupwards the multiplexer settling time extends.
Thewaiting timedefined in thestandardinstruction ADC is thentooshort,so that
imprecise values are recalled. In this case please use the instructionsdescribed
in chapter 5.5.
Function Instructions
do a complete measurement ADC, ADC24
Do a measurement in steps
(see chapter 5.5)SET_MUX1, SET_MUX2
Start_Conv, Wait_EOC
READ_ADC
initialize and start sequential control SEQ_MODE
SEQ_SELECT
SEQ_SET_DELAY
SEQ_SET_GAIN
SEQ_START
Read data from sequential control SEQ_READ
SEQ_STATUS

ADwin-Gold II , Manual February 2013 13
Analog Inputs and Outputs
ADwin
5.1.2 Analog Outputs
Thesystem has2analog outputs (OUT1,OUT2) with BNC-plugs;below theoutputsare
located on the DSub connector ANALOG OUT (see Fig. 7). A digital-to-analog con-
verter (DAC) is allocated to each of the outputs.
Fig. 7 – Pin assignment of analog outputs (DSub)
Additional outputs see chapter 6 "DA Add-On".
ProgrammingInstructions to program analog outputs are described starting from page 60. The
instructions are defined in the include file <ADwinGoldII.inc> and are described in
the online help, too.
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.
5.1.3 Calculation Basis
Voltage rangeThe voltage range of the ADwin-Gold II 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 a 16-bit conversion.
ANALOG OUT
12345678910111213
141516171819202122232425
AOut 1 (+)
AOut 2 (+)
AOut 3 (+)
AOut 4 (+)
AOut 5 (+)
AOut 6 (+)
AOut 7 (+)
AOut 8 (+)
+5V (<100mA)
AGND
AGND
AOut 1 (-)
AOut 2 (-)
AOut 3 (-)
AOut 4 (-)
AOut 5 (-)
AOut 6 (-)
AOut 7 (-)
AOut 8 (-)
AGND
RESERVED RESERVED
Function Instructions
do a complete output of a value DAC
Do an output in steps Write_DAC
Start_DAC
=
ˆ

Analog Inputs and Outputs ADwin
14 ADwin-Gold II , Manual February 2013
Fig. 8 – Zero offset in the standard setting of bipolar 10 Volts
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
Gain factor kvADwin-Gold II has a programmable gain (PGA), which can amplify the input voltage by
the factors 1, 2, 4, or 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).
The measured value of the 18-bit ADC can be returned with 16 bit or with 24 bit format.
The DAC processes values with 16 bit:
– 16-bitformat:Themeasurementvalueisgiveninthelowerword,theupperword
is zero.
ULSB = 20V / 216 = 305.175µV
The same applies for a DAC value.
– 24-bit format: The 24-bit value holds the measurement value in the bits 6…23,
the measurement value being shifted by 6 bits to the left, the bits 0…5 are
always zero.
ULSB = 20V / 224 = 1.192µV
Fig. 9 – Storage of the ADC/DAC bits in the memory
Conversion Digit to Voltage
DAC For a DAC:
+10
-10
0 32768 65536
0
[V]
[Digit]
Bit no. 31…24 23…16 15…6 05…00
content 0 18-bit measurement value in bits 6…23 0
0 0 16-bit measurement value in bits 0…15
UOUT Digits ULSB UOFF
+⋅=
Digits UOUT UOFF
–
ULSB
---------------------------------------------
=
Table of contents
Other Jäger Data Logger manuals