Oc_getscannerstatus -33 – Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual
Page 87

OC_GetScannerStatus
Library of Routines
6–33
Publication 1747-6.5.3 June 1998
OC_GetScannerStatus
OC_GetScannerStatus reads the current status of the scanner.
Syntax:
int
OC_GetScannerStatus(HANDLE handle, BYTE *scansts);
Parameters:
Description:
If OC_GetScannerStatus returns
SUCCESS
,
scansts
has one of these values:
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Parameter:
Description:
handle
Must be a valid handle returned from OC_OpenScanner
scansts
Status of the scanner
This value:
Has this
hex value:
Means the:
SCANSTS_BPIC
4
POST backplane IC test failed; scanner is halted
SCANSTS_CRC
2
software CRC checksum failed
SCANSTS_DPR
5
POST dual port RAM test failed; scanner is halted
SCANSTS_FAULT
13
scanner faulted; scanner is in Scan mode
SCANSTS_IDLE
11
scanner initialized; scanner is in Idle mode
SCANSTS_INIT
10
POST passed; waiting for OC_InitScanner from host
SCANSTS_INT
8
POST interrupt test failed; scanner is halted
SCANSTS_POST
1
power-on self test (POST) is in progress
SCANSTS_RAM
3
POST RAM test failed; scanner is halted
SCANSTS_SCAN
20
scanner initialized; scanner in Scan mode
SCANSTS_THERM
6
POST thermometer test failed; scanner is halted
SCANASTS_TIMER
7
POST timer test failed; scanner is halted
SCANSTS_WDOG
12
scanner watchdog timeout; scanner is halted
Name:
Value:
Description:
SUCCESS
0
scanner status was read successfully
ERR_OCACCESS
2
handle
does not have access to scanner
ERR_OCEXTERR
11
scanner extended error message (
scansts
is returned)