Specifications
30
Curtis 1310 Manual, Rev. B
Analog inputs
Get_ADC(1)
This function retrieves the present input value of the selected ADC (Analog to Digi
-
tal Converter) channel. Although there are only 4 dedicated analog inputs (called
Wiper 1–4), the 1310 actually monitors 12 channels of analog values. Many of these
analog signals are internal to the 1310 hardware but can nevertheless be used in
VCL. It is not necessary to use the Get_ADC() function, as the ADC channels are
constantly monitored and automatically placed in the corresponding ADC#_Output
variable, but when programming you may wish to use this function to ensure that
the most recent value is read or simply for clarity in the program. Note that all ADC
channels are read as 10 bit and therefore have a range of 0 to 1023:
Data Values
ADC#_Output Variable that is automatically updated with the value of
the ADC channel.
Parameters None.
ADC# Identifies which ADC channel is to be read (ADC1 – ADC16).
ADC1 Common Pot High
ADC2 Pot 1 wiper input
ADC3 Pot 2 wiper input
ADC4 Pot 3 wiper input
ADC5 Pot 4 wiper input
ADC6 Common Pot Low
ADC7 Pwr_Up Input (~ 9.5 counts/volt)
ADC8, 9, 10 not connected
ADC11 +5V output current monitor
ADC12 +5V and +12V combined current (~ 4.21 counts/mA)
ADC13 B+/KSI input (~ 9.5 counts/volt)
*
ADC14 not connected
ADC15 PWM1 drive current (~ 310 counts/amp)
ADC16 PWM2 drive current (~ 310 counts/amp)
*
We recommend using the variable KSI_Filtered instead
of ADC_13 since it is factory calibrated for 100 counts/volt).
ADC13 is uncalibrated.
Returns
0 – 1023 The value of the ADC channel.
Error Codes Bad_ID ADC channel is out of range (>16).
Examples User1=Get_ADC(ADC11)
;put the current reading of +5V into User1
5 — VCL
☞










