Z-World Wolf BL2600 User Manual page 56

C-programmable single-board computer with ethernet
Table of Contents

Advertisement

int anaInCalib(int channel, int opmode,
int gaincode, int value1, float volts1,
int value2, float volts2);
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
channel
0
1
2
3
4
5
6
7
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)
Gain Code
0
1
2
3
4
5
6
7
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.
52
Single-Ended
+AIN0
+AIN1
+AIN2
+AIN3
+AIN4
+AIN5
+AIN6
+AIN7
Macro
Single-Ended
Unipolar
0–20 V
GAIN_X1
0–10 V
GAIN_X2
0–5 V
GAIN_X4
0–4 V
GAIN_X5
0–2.5 V
GAIN_X8
0–2 V
GAIN_X10
0–1.25 V
GAIN_X16
0–1 V
GAIN_X20
Differential
+AIN0 -AIN1
+AIN2 -AIN3
+AIN4 -AIN5
+AIN6 -AIN7
Voltage Range
Single-Ended
Bipolar
±10 V
±5 V
±2.5 V
±2 V
±1.25 V
±1 V
4–20 mA
+AIN0
+AIN1
+AIN2
+AIN3
Differential
Bipolar
± 20 V
± 10 V
± 5 V
± 4 V
± 2.5 V
± 2 V
± 1.25 V
± 1 V
Wolf (BL2600)

Advertisement

Table of Contents
loading

Related Products for Z-World Wolf BL2600

Table of Contents