Prosoft-technology MVI56E-LDM Bedienungsanleitung Seite 79

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 78
ControlLogix Platform "C" Programmable CIP API Functions
Linux Application Development Module Developer's Manual
ProSoft Technology, Inc. Page 73 of 264
March 12, 2014
5.1 CIP API Initialization Functions
OCXcip_Open
Syntax
int OCXcip_Open(OXCHANDLE *apihandle);
Parameters
apiHandle
pointer to variable of type OCXHANDLE
Description
OCXcip_Open acquires access to the CIP API and sets apiHandle to a unique ID
that the application uses in subsequent functions. This function must be called
before any of the other CIP API functions can be used.
IMPORTANT: Once the API has been opened, OCXcip_Close should always be
called before exiting the application.
Return Value
OCX_SUCCESS
API was opened successfully
OCX_ERR_REOPEN
API is already open
OCX_ERR_NODEVICE
backplane driver could not be accessed
Note: OCX_ERR_NODEVICE will be returned if the backplane device driver is not
loaded.
Example
OCXHANDLE apiHandle;
if (OCXcip_Open(&apiHandle)!= OCX_SUCCESS)
{
printf ("Open failed!\n");
}
else
{
printf ("Open succeeded\n");
}
See Also
OCXcip_Close
Seitenansicht 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare