Digital and analog i/o functions, Analog input attributes, Float analoginputgetvoltage(long channel) – Rockwell Automation 2098-IPD-xxx Ultra5000 C Programming using the Motion Library User Manual
Page 87: Digital and analog i/o functions -47, Analog input attributes -47, Float analoginputgetvoltage(long channel); -47

Publication 2098-PM001E-EN-P — July 2002
Referencing the Motion Library
2-47
Digital and Analog I/O
Functions
Digital and Analog I/O functions control discrete I/O. The following
table presents the function names for each function in this category
along with a brief description. More detailed descriptions of the
functions are contained on the pages following the table.
float AnalogInputGetVoltage(long channel);
Returns the value of the analog input specified by the channel
argument. Return value is in volts.
Valid channel arguments are:
• 1 = Auxiliary analog input channel 1
• 2 = Auxiliary analog input channel 2
Use these functions:
To:
Read voltage from a
specified analog input
channel.
Set the state of a
specified analog output.
Return the state of the
specified digital input.
Determine the state of a
specified digital output.
• OutputSetAllOff
• OutputSetAllOn
• OutputToggle
Set the state of all
digital outputs.
• OutputGetAll
• OutputGetState
Return the state of the
specified digital output.