Rockwell-automation 2098-IPD-xxx Ultra5000 C Programming using the Mot Instrukcja Użytkownika Strona 87

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 114
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 86
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.
Przeglądanie stron 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 113 114

Komentarze do niniejszej Instrukcji

Brak uwag