Rockwell Automation 1747-PCIS API Software - Open Controller User Manual
Page 150

Publication 1747-UM002A-US-P - June 2000
C-2 Header File
#define ERR_OCSLOT 12
/* slot number is invalid */
#define ERR_OCFAULT 13
/* request denied because scanner faulted */
#define ERR_OCSCANCFG 14
/* Scanner IO Configuration not downloaded */
#define ERR_OCNOFORCES 15
/* no forces installed, cannot enable forces */
#define ERR_OCOVERRUN 16
/* DII, I/O Int, or ErrReport message overrun */
#define ERR_OCOUTOFMEM 17
/* memory allocate failed */
#define ERR_OCUNKNOWN 18
/* unknown module type */
#define ERR_OCFILERROR 19 /* error occured while reading/writing disk file */
#define ERR_OCNOTSUPP 20 /* function not supported on this platform */
/* ***** Extended Error Codes ***** */
/* These values are returned in the ErrorCode member of the OCEXTERR */
/* structure that is returned from the OC_GetExtendedError() function. */
/* */
#define EERR_OCINVALIDDIR 0x01
/* Downloaded directory file is invalid */
#define EERR_OCINTSWERR 0x08
/* Internal scanner software error */
#define EERR_OCCFGCORRUPT 0x12
/* Downloaded configuration is corrupted */
#define EERR_OCEXPPWRFAIL 0x21
/* Power fail on expansion rack detected */
#define EERR_OCINVALIDDII 0x2E
/* Invalid DII input slot */
#define EERR_OCWDTIMEOUT 0x40
/* Host Watchdog Timeout occurred */
#define EERR_OCMODACCESS 0x50
/* Data error while accessing module */
#define EERR_OCPINTSTUCK 0x51
/* Stuck PINT error */
#define EERR_OCMODMISSING 0x52
/* Module is missing */
#define EERR_OCMODINNOSLOT 0x53
/* Module detected in unused slot */
#define EERR_OCMODMISMATCH 0x54
/* Module type does not match downloaded configuration */
#define EERR_OCIOMISMATCH 0x55
/* Module I/O mix does not match downloaded configuration */
#define EERR_OCRACKMISMATCH 0x56
/* Rack type does not match downloaded configuration */
#define EERR_OCSPIOLOCKTOUT 0x57
/* Specialty I/O module lock memory command timeout */
#define EERR_OCSPIOFAULT 0x58
/* Specialty I/O module fault */
#define EERR_OCSPIOCMDTOUT 0x59
/* Specialty I/O module command timeout */
#define EERR_OCMODINT 0x5A
/* Module interrupt problem */
#define EERR_OCGFILE 0x5B
/* G file configuration error */
#define EERR_OCMFILE 0x5C
/* M0/M1 file configuration error */
#define EERR_OCINVALIDINT 0x5D
/* Unsupported interrupt service requested by module */
#define EERR_OCIODRIVER 0x5E
/* I/O driver error */
#define EERR_OCMODULEMIN 0x60
/* 0x60-0x8F - Module specific errors - see module doc */
#define EERR_OCMODULEMAX 0x8F
/* 0x60-0x8F - Module specific errors - see module doc */
#define EERR_OCINVALIDMINT 0x90
/* MINT occurred on disabled slot */
#define EERR_OCINVALIDPINT 0x91
/* PINT occurred on disabled slot */
#define EERR_OCUNKMODERR 0x93
/* Unsupported module error */
#define EERR_OCMODRESET 0x94
/* Module has been inserted or reset */
#define EERR_OCSCANNERINT 0xF0
/* Scanner internal error */
/* ***** Scanner Status ***** */
/* These values are returned by the OC_GetScannerStatus() function. */
/* */
#define SCANSTS_POST 0x01
/* Scanner is executing Power-On Self Test */
#define SCANSTS_CRC 0x02
/* Scanner firmware failed CRC checksum */
#define SCANSTS_RAM 0x03
/* Scanner RAM test failed */
#define SCANSTS_BPIC 0x04
/* Scanner backplane IC test failed */
#define SCANSTS_DPR 0x05
/* Scanner Dual-Port Ram test failed */
#define SCANSTS_THERM 0x06
/* Scanner thermometer test failed */
#define SCANSTS_TIMER 0x07
/* Scanner timer test failed */
#define SCANSTS_INT 0x08
/* Scanner interrupt test failed */
#define SCANSTS_IDLE 0x11
/* Scanner has been initialized and is in Idle mode */
#define SCANSTS_WDOG 0x12
/* Scanner internal watchdog timeout - scanner halted */
#define SCANSTS_FAULT 0x13
/* Scanner is faulted */
#define SCANSTS_SCAN 0x20
/* Scanner is in Scan mode */
/* ***** Scan Time ***** */
/* These values are passed to the OC_SetScanTime() function. */
/* */
#define SCAN_DELAYED 0 /* Select delayed mode - next scan occurs time*10us after end of scan */