The analog inputs for the EVM32 I/O brick have a 12-bit A/D converter. The voltage range is +/-10VDC. The 12 bit resolution gives it a count range of +2047 to -2048 counts. If you are using the full +/-10 Volts, then 1V=205 counts. You can adjust the voltage range with the ANIRNG command. Below is a table that describes the voltage range options and how the counts/volt are adjusted:
ANIRNG Setting | Voltage Range | Counts/Volt |
---|---|---|
1 | 0 to +5VDC | 819 |
2 | -5 to +5VDC | 410 |
3 | 0 to +10VDC | 410 |
4 | -10 to +10VDC | 205 |
When using the 6K Communications Server(COM6SVR.NET) via Ethernet, you can read the analog input voltage with the AnalogInput(channel) function. This will return a value in counts. You should use the table above to convert the counts into volts.
0 Comments