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

Advertising
background image

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.

Analog Input Attributes

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:

Analog Input Attributes

• AnalogInputGetVoltage

Read voltage from a
specified analog input
channel.

Analog Output Attributes

• AnalogOutputSetVoltage

Set the state of a
specified analog output.

Digital Input Status

• InputGetAll
• InputGetState

Return the state of the
specified digital input.

Digital Output Attributes

• OutputSetState

Determine the state of a
specified digital output.

Digital Output Services

• OutputSetAllOff
• OutputSetAllOn
• OutputToggle

Set the state of all
digital outputs.

Digital Output Status

• OutputGetAll
• OutputGetState

Return the state of the
specified digital output.

Advertising