Prosoft-technology MVI56E-LDM Bedienungsanleitung Seite 184

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 183
CIP API Functions ControlLogix Platform "C" Programmable
Developer's Manual Linux Application Development Module
Page 178 of 264 ProSoft Technology, Inc.
March 12, 2014
OCXcip_GetUserLED
Syntax
int OCXcip_GetUserLED (OCXHANDLE apihandle, int * ledstate);
Parameters
apihandle
handle returned by previous call to OCXcip_Open
ledstate
Pointer to a variable to receive user LED state
Description
OCXcip_GetUserLED allows an application to read the current state of the user
LED.
apiHandle must be a valid handle returned from OCXcip_Open or
OCXcip_ClientOpen.
ledstate must be a pointer to an integer variable. On successful return, the
variable will be set to:
OCX_LED_STATE_RED,
OCX_LED_STATE_GREEN, or
OCX_LED_STATE_OFF
Return Value
OCX_SUCCESS
The LED state was returned successfully
OCX_ERR_NOACCESS
apihandle does not have access
Example
OCXHANDLE apihandle;
int ledstate;
/* Read user LED state */
OCXcip_GetUserLED (Handle, &ledstate);
Seitenansicht 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare