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

Publication 1747-UM002A-US-P - June 2000
Header File C-11
#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_INIT 0x10 /* Scanner POST passed - waiting for initialization */
#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 */
#define SCAN_PERIODIC 1 /* Select periodic mode - next scan occurs every time*250us */
/* ***** Scan Mode ***** */
/* These values are passed to the OC_SetScanMode() function. */
/* */
#define SCAN_IDLE 0 /* Select Idle mode (not scanning I/O) */
#define SCAN_RUN 1 /* Select Scan mode (scanning I/O) */
/* ***** IO Idle State ***** */
/* These values are passed to the OC_SetIOIdleState() function. */
/* */
#define IDLESTATE_RESET 0 /* I/O bus is reset in Idle mode */
#define IDLESTATE_HOLD 1 /* I/O is held in last state in Idle mode */