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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 174
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 97
Publication 1747-UM002A-US-P - June 2000
6-38 Library of Routines
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
int led_state;
int retcode;
retcode = OC_GetUserLEDState( Handle, 1, &led_state );
OC_GetVersionInfo
OC_GetVersionInfo retrieves the current version of the API library,
1746 I/O PCI Interface hardware, and scanner firmware.
Syntax:
int OC_GetVersionInfo(HANDLE handle, OCVERSIONINFO
*verinfo);
Parameters:
Description:
The scanner must be initialized before this function returns valid
version information.
The
OCVERSIONINFO structure is defined as:
typedef struct tagOCVERSIONINFO
{
WORD APISeries;/* API series */
WORD APIRevision;/* API revision */
WORD ScannerFirmwareSeries;/* Scanner firmware
series */
WORD ScannerFirmwareRevision;/* Scanner firmware
revision */
WORD OCHardwareSeries;/* Hardware series */
Name: Value: Description:
SUCCESS 0 LED was read successfully
ERR_OCACCESS 2
handle does not have access to scanner
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
verinfo Returns the current version of the API library, 1746 I/O PCI Interface
hardware, and scanner firmware
Przeglądanie stron 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 173 174

Komentarze do niniejszej Instrukcji

Brak uwag