ADwin-Gold
Hardware Manual, Version 2.3
15
ADwin
5.1.2 Outputs
The standard instruction
DAC(
number,value)
checks each of the values
if it exceeds or falls below of the 16-bit value range (0...65,535). 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 (65,535) or minimum (0) value is
output (see also
ADbasic
manual).
5.1.3 Calculation Basis
The voltage range of the
ADwin-Gold
at the analog inputs and outputs is
between –10 V to +10 V (bipolar 10 V).
The 65,536 (2
16
) 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
– 65,535 digits correspond to the maximum positive voltage
The value for 65,536 digits, exactly 10 Volt, is just outside the measurement
range, so that you will get a maximum voltage value of 9.999695 Volt for the
16-bit conversion and a voltage value of 9.995117 Volt for the 12-bit conversion.
In the bipolar settings you will get a zero offset, called only offset in the following
text.
For the voltage range –10 V to +10 V applies:
U
OFF
= –10 V
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 measurement
range gets smaller by the corresponding gain factor k (see Technical Data).
DAC instruction
L
Allocation of digits to
voltage
Zero offset
Gain factor
+10
-10
0
32768
65536
0
[V]
[Digit]
Figure 5-3:
Zero offset in the standard setting of bipolar 10 Volt
5.1 Analog Inputs and Outputs