Rockwell-automation 1747-PCIS API Software - Open Controller Bedienungsanleitung Seite 83

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 174
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 82
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-23
Description:
When the scanner faults, an extended error is generated. The error
code and slot number of the most recent fault is retained and returned
by this function. The fault cause is a duplicate of the most recent
extended error.
The OC_ClearFault function clears the fault in the scanner but does
not clear the cause of the last fault.
See Appendix A for error codes.
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
BYTE status, FaultCause;
int FaultSlot;
int retcode;
OC_GetScannerStatus ( Handle, &status );
if ( status = SCANSTS_FAULT )
{
retcode = OC_GetLastFaultCause ( Handle,
&FaultCause, &FaultSlot );
}
Name: Value: Description:
SUCCESS 0 fault was cleared successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCINIT 5 scanner has not been initialized, see OC_InitScanner
Seitenansicht 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 173 174

Kommentare zu diesen Handbüchern

Keine Kommentare