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

Page 152

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

C-4 Header File

/* ***** Switch Position ***** */

/* These values are returned by the OC_GetSwitchPosition() function. */

/* */

#define SWITCH_TOP 0xFF /* Switch is in the Top position */

#define SWITCH_MIDDLE 0x00 /* Switch is in the Middle position */

#define SWITCH_BOTTOM 0x01 /* Switch is in the Bottom position */

/* ***** Jumper State ***** */

/* These values are returned by the OC_GetUserJumperState() function. */

/* */

#define JUMPER_PRESENT 0 /* User jumper is installed */

#define JUMPER_ABSENT 1 /* User jumper is not installed */

/* ***** Watchdog Settings ***** */

/* These values are passed to the OC_SetHostWatchdog() function. */

/* */

#define WATCHDOG_IGNORE 0 /* Host watchdog is disabled */

#define WATCHDOG_IDLE 1 /* Scanner with change to Idle mode on host wdog timeout */

#define WATCHDOG_RESET 2 /* Scanner will issue a system reset on host wdog timeout */

/* ***** Reset Cause ***** */

/* These values are returned by the OC_GetResetCause() function. */

/* */

#define RESET_NOT_HOST_WD 0 /* Reset was not caused by the host watchdog */

#define RESET_HOST_WD 1 /* Reset was caused by the host watchdog */

/* ***** Module I/O Int Modes ***** */

/* These values are passed to the OC_SetModuleInterrupt() function. */

/* */

#define IOINT_ENABLE 1 /* Enable module interrupt */

#define IOINT_DISABLE 0 /* Disable module interrupt */

#define IOINT_ACK -1 /* Acknowledge module interrupt */

/* ***** Output Update Modes ***** */

/* These values are passed to the OC_SetOutputUpdateMode() function. */

/* */

#define OUTUPD_NEVER 0

/* Never scan outputs */

#define OUTUPD_CHANGE 1

/* Only scan outputs when output image chages */

#define OUTUPD_ALWAYS 2

/* Scan outputs every scan */

/* ***** Input Update Modes ***** */

/* These values are passed to the OC_SetInputUpdateMode() function. */

/* */

#define INUPD_NEVER 0 /* Never scan outputs */

#define INUPD_ALWAYS 1 /* Scan outputs every scan */

/* ***** EndOfScan Modes ***** */

/* These values are passed to the OC_EnableEOSNotify() function. */

/* */

#define EOSMSG_ENABLE 0 /* Enable end-of-scan notification messages */

#define EOSMSG_DISABLE 1 /* Disable end-of-scan notification messages */

/* ***** Wait Flags ***** */

#define OCNOWAIT 0 /* Return without waiting for operation to complete */

#define OCWAIT 1 /* Wait for operation to complete before returning */

Advertising
This manual is related to the following products: