Z-World Wolf BL2600 User Manual page 58

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

Advertisement

int anaIn(int channel, int gaincode);
Reads the state of an A/D converter input channel. If the access is for an A/D converter single-ended
bipolar channel and the gain code for the given channel has changed from the previous cycle, the
EEPROM will be read to get the calibration constants for the new gain value.
PARAMETER
channel
is the analog input channel number (0 to 7) corresponding to AIN0–AIN7
channel
0
1
2
3
4
5
6
7
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
RETURN VALUE
A value corresponding to the voltage or current on the analog input channel (0–2047 for 11-bit
conversions).
SEE ALSO
brdInit, anaInConfig, anaInCalib, anaInmAmps, anaInDiff, anaInVolts
54
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