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

Page 161

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

Header File C-13

#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 */

/* ***** Module File Types ***** */

/* These values are passed to the OC_WriteModuleFile() and OC_ReadModuleFile() */

/* functions. */

/* */

#define FILTYP_G 0x05 /* Module G file */

#define FILTYP_M0 0x08 /* Module M0 file */

#define FILTYP_M1 0x09 /* Module M1 file */

/* ***** I/O Configuration Definitions ***** */

#define OCMAXSLOT 31 /* Maximum number of slots (slot 0 is reserved for PCIL) */

#define OCEMPTYTYPE 0xFF /* Mix and type codes for empty slots and slot 0 */

#define OCEMPTYMIX 0xFF

#define OCWILDTYPE 0xFF /* Wildcard type code - matches any module type */

Advertising
This manual is related to the following products: