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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 174
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 93
Publication 1747-UM002A-US-P - June 2000
6-34 Library of Routines
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
STSFILE stsfile;
int retcode;
retcode = OC_GetStatusFile( Handle, &stsfile );
OC_GetSwitchPosition
OC_GetSwitchPosition reads the current position of the three-position
front-panel switch from the scanner.
Syntax:
int OC_GetSwitchPosition(HANDLE handle, BYTE
*swpos);
Parameters:
Description:
The switch position has no effect on the scanner. The application can
use this switch for any purpose.
The scanner must be initialized before you can monitor the switch
position.
Name: Value: Description:
SUCCESS 0 system status file 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
swpos If
swpos is:
SWITCH_TOP switch is in the top position
SWITCH_MIDDLE switch is in the middle position
SWITCH_BOTTOM switch is in the bottom position
Przeglądanie stron 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 173 174

Komentarze do niniejszej Instrukcji

Brak uwag