Rockwell-automation 1747-PCIS API Software - Open Controller Instrukcja Użytkownika Strona 77

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 174
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 76
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-17
OC_GetBatteryStatus
OC_GetBatteryStatus gets the current state of the battery of the
scanner.
Syntax:
int OC_GetBatteryStatus(HANDLE handle, BYTE
*batstate);
Parameters:
Description:
The battery provides backup power for the host retentive data (dual
port RAM).
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
BYTE batt_sts;
int retcode;
retcode = OC_GetBatteryStatus( Handle, &batt_sts );
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
batstate If
batstate is:
BATTERY_GOOD battery voltage is good
BATTERY_LOW battery voltage has dropped below a reliable level
Name: Value: Description:
SUCCESS 0 battery state was read successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCINIT 5 scanner has not been initialized, see OC_InitScanner
Przeglądanie stron 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 173 174

Komentarze do niniejszej Instrukcji

Brak uwag