Prosoft-technology MVI56E-LDM Bedienungsanleitung Seite 196

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 195
CIP API Functions ControlLogix Platform "C" Programmable
Developer's Manual Linux Application Development Module
Page 190 of 264 ProSoft Technology, Inc.
March 12, 2014
OCXcip_ErrorString
Syntax
int OCXcip_ErrorString (int errorcode,
char * buf);
Parameters
errcode
Error code returned from an API function
buf
Pointer to user buffer to receive message
Description
OCXcip_ErrorString returns a text error message associated with the error code
errcode. The Null-terminated error message is copied into the buffer specified by
buf. The buffer should be a minimum of 80 characters in length.
Return Value
OCX_SUCCESS
Message returned in buff
OCX_ERR_BADPARAM
Unknown error code
Example
char buf[80];
int rc;
.
.
//SOme OCX API is called
rc=OCXcip_.....(.....);
if (rc !=OCX_SUCCESS)
{
// Print error message
OCXcip_ErrorString (rc, buf };
printf ("Error: %s", buf);
}
Seitenansicht 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare