52
Wolf (BL2600)
Calibrates the response of a given A/D converter channel as a linear function using the two conversion
points provided. Gain and offset constants are calculated and placed into global table
_adcInCalib
.
PARAMETERS
channel
is the analog input channel number (0 to 7) corresponding to AIN0–AIN7
opmode
is the mode of operation for the specified channel. Use one of the following macros to set the
mode for the channel being configured.
0 = Single-Ended unipolar (0–20 V)
1 = Single-Ended bipolar (±10 V)
2 = Differential bipolar (±20 V)
3 = 4–20 mA
gaincode
is the gain code of 0 to 7 (use a gain code of 4 for 4–20 mA operation)
value1
is the first A/D converter value (0–4095).
volts1
is the voltage corresponding to the first A/D converter value.
value2
is the second A/D converter value (0–4095).
volts2
is the voltage corresponding to the second A/D converter value.
int anaInCalib(int channel, int opmode,
int gaincode, int value1, float volts1,
int value2, float volts2);
channel
Single-Ended
Differential
4–20 mA
0
+AIN0
+AIN0 -AIN1
+AIN0
1
+AIN1
—
+AIN1
2
+AIN2
+AIN2 -AIN3
+AIN2
3
+AIN3
—
+AIN3
4
+AIN4
+AIN4 -AIN5
5
+AIN5
—
6
+AIN6
+AIN6 -AIN7
7
+AIN7
—
Gain Code
Macro
Voltage Range
Single-Ended
Unipolar
Single-Ended
Bipolar
Differential
Bipolar
0
GAIN_X1
0–20 V
±10 V
± 20 V
1
GAIN_X2
0–10 V
±5 V
± 10 V
2
GAIN_X4
0–5 V
±2.5 V
± 5 V
3
GAIN_X5
0–4 V
±2 V
± 4 V
4
GAIN_X8
0–2.5 V
±1.25 V
± 2.5 V
5
GAIN_X10
0–2 V
±1 V
± 2 V
6
GAIN_X16
0–1.25 V
—
± 1.25 V
7
GAIN_X20
0–1 V
—
± 1 V
Содержание Wolf BL2600
Страница 1: ...Wolf BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142 040731 B ...
Страница 36: ...32 Wolf BL2600 ...
Страница 66: ...62 Wolf BL2600 ...
Страница 100: ...96 Wolf BL2600 ...
Страница 104: ...100 Wolf BL2600 ...
Страница 106: ......